/* ==================================================
   Angry Monkey — Portfolio "en vivo" (galería tipo showroom)
   Muro de demos en movimiento, filtros con contador, búsqueda, tarjetas con foco de luz e
   inclinación 3D, demo en vivo al pasar el ratón y vista previa a pantalla completa.
   Lógica en js/pf-gallery.js · carga después de enhancements.css (que sigue dando la cabecera).
   ================================================== */

.pf-zone {
	--pf-bg: #0a0a0a;
	--pf-fg: #f5f5f0;
	--pf-muted: #a7a3ad;
	--pf-line: #2a2630;
	--pf-card: #141217;
	--pf-mono: 'Space Mono', ui-monospace, monospace;
	--pf-display: 'Archivo', 'Poppins', sans-serif;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-bottom: clamp(64px, 8vw, 128px);
	background: var(--pf-bg) !important;
	color: var(--pf-fg);
	border-top: 3px solid #0a0a0a;
}
/* Rejilla técnica de fondo + halo que sigue al ratón (lo mueve el JS con --gx/--gy) */
.pf-zone::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.pf-zone::after {
	content: '';
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	width: 900px;
	height: 900px;
	margin: -450px 0 0 -450px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(95, 26, 164, .38), rgba(95, 26, 164, .12) 55%, transparent);
	transform: translate3d(var(--gx, 50vw), var(--gy, 300px), 0);
	pointer-events: none;
	transition: opacity .6s;
}

/* ---------- 1 · Muro de demos en movimiento ---------- */
.pf-wall {
	position: relative;
	height: clamp(420px, 58vw, 720px);
	overflow: hidden;
	perspective: 1600px;
	border-bottom: 3px solid var(--accent, #ffe000);
}
.pf-wall__plane {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 170%;
	display: grid;
	gap: clamp(12px, 1.4vw, 20px);
	/* todo con variables: GSAP anima --wrx/--wrz/--ws (scroll) y --wx/--wy (ratón) sin pisar el transform */
	transform: translate(calc(-50% + var(--wx, 0px)), calc(-50% + var(--wy, 0px))) rotateX(var(--wrx, 24deg)) rotateZ(var(--wrz, -8deg)) scale(var(--ws, 1));
	transform-style: preserve-3d;
	will-change: transform;
}
.pf-wall__row {
	display: flex;
	gap: clamp(12px, 1.4vw, 20px);
	width: max-content;
	will-change: transform;
}
.pf-wall__tile {
	position: relative;
	flex: 0 0 auto;
	width: clamp(220px, 22vw, 380px);
	aspect-ratio: 16 / 9;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 12px;
	background: var(--pf-card);
	cursor: pointer;
	transition: transform .4s var(--ease, ease), border-color .25s, box-shadow .25s;
}
.pf-wall__tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	pointer-events: none;
}
.pf-wall__tile:hover,
.pf-wall__tile:focus-visible {
	z-index: 2;
	transform: translateZ(40px) scale(1.06);
	border-color: var(--accent, #ffe000);
	box-shadow: 0 0 0 2px var(--accent, #ffe000), 0 30px 60px -20px rgba(0, 0, 0, .8);
	outline: none;
}
/* Viñeta: oscurece el centro y los bordes para que el texto se lea sobre las imágenes */
.pf-wall__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 52% 46% at 50% 50%, rgba(10, 10, 10, .92), rgba(10, 10, 10, .55) 60%, transparent 100%),
		linear-gradient(to bottom, var(--pf-bg) 0, transparent 18%, transparent 82%, var(--pf-bg) 100%);
}
.pf-wall__hud {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(14px, 2vw, 24px);
	padding: 0 var(--gutter, 24px);
	text-align: center;
	pointer-events: none;
}
.pf-wall__hud > * { pointer-events: auto; }
.pf-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 14px;
	font: 700 12px/1 var(--pf-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #0a0a0a;
	background: var(--accent, #ffe000);
	border: 2px solid #0a0a0a;
	box-shadow: 4px 4px 0 var(--brand, #5F1AA4);
}
.pf-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #e3262f;
	box-shadow: 0 0 0 0 rgba(227, 38, 47, .7);
	animation: pf-pulse 1.6s infinite;
}
@keyframes pf-pulse {
	0% { box-shadow: 0 0 0 0 rgba(227, 38, 47, .7); }
	70% { box-shadow: 0 0 0 10px rgba(227, 38, 47, 0); }
	100% { box-shadow: 0 0 0 0 rgba(227, 38, 47, 0); }
}
.pf-big {
	margin: 0;
	max-width: 14ch;
	font-family: var(--pf-display);
	font-weight: 900;
	font-size: clamp(44px, 8.4vw, 132px);
	line-height: .86;
	letter-spacing: -.05em;
	text-transform: uppercase;
	color: var(--pf-fg);
	text-wrap: balance;
}
.pf-big em {
	font-style: normal;
	color: var(--accent, #ffe000);
	-webkit-text-stroke: 0;
}
.pf-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}
.pf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	font: 700 13px/1 var(--pf-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	color: #0a0a0a;
	background: var(--accent, #ffe000);
	border: 2px solid #0a0a0a;
	box-shadow: 5px 5px 0 var(--pf-fg);
	cursor: pointer;
	transition: translate .12s linear, box-shadow .12s linear, background-color .15s, color .15s;
}
.pf-btn:hover { translate: -2px -2px; box-shadow: 7px 7px 0 var(--pf-fg); color: #0a0a0a; }
.pf-btn:active { translate: 3px 3px; box-shadow: 0 0 0 var(--pf-fg); }
.pf-btn:focus-visible { outline: 3px solid var(--pf-fg); outline-offset: 3px; }
.pf-btn--ghost {
	color: var(--pf-fg);
	background: rgba(10, 10, 10, .6);
	border-color: var(--pf-fg);
	box-shadow: 5px 5px 0 var(--brand, #5F1AA4);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.pf-btn--ghost:hover { color: #0a0a0a; background: var(--pf-fg); box-shadow: 7px 7px 0 var(--brand, #5F1AA4); }

/* ---------- 2 · Barra: filtros con contador + búsqueda ---------- */
.pf-zone .container { padding-top: clamp(36px, 5vw, 64px) !important; }
.pf-zone #portfolio-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px 24px;
	padding-bottom: clamp(24px, 3.5vw, 40px);
}
.pf-zone #filter { flex: 1 1 600px; padding: 0; gap: 8px; }
.pf-zone #filter li a {
	min-height: 40px;
	padding: 8px 14px;
	gap: 8px;
	color: var(--pf-fg);
	border: 1.5px solid var(--pf-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .03);
	box-shadow: none;
	translate: none;
}
.pf-zone #filter li a:hover { color: var(--pf-fg); background: rgba(255, 255, 255, .08); border-color: var(--pf-muted); }
.pf-zone #filter li a.current {
	color: #0a0a0a;
	background: var(--accent, #ffe000);
	border-color: var(--accent, #ffe000);
	box-shadow: 0 0 0 4px rgba(255, 224, 0, .16);
}
.pf-zone #filter li a:focus-visible { outline: 3px solid var(--accent, #ffe000); outline-offset: 2px; }
.pf-n {
	min-width: 22px;
	padding: 3px 6px;
	font-size: 10px;
	line-height: 1;
	text-align: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	color: inherit;
}
.pf-zone #filter li a.current .pf-n { background: #0a0a0a; color: var(--accent, #ffe000); }

.pf-search {
	position: relative;
	flex: 0 1 300px;
	min-width: 220px;
}
.pf-search input {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 44px 0 16px;
	font: 400 14px/1 var(--pf-mono);
	color: var(--pf-fg);
	background: rgba(255, 255, 255, .04);
	border: 1.5px solid var(--pf-line);
	border-radius: 999px;
	box-shadow: none;
	transition: border-color .2s, background-color .2s;
}
.pf-search input::placeholder { color: var(--pf-muted); opacity: 1; }
.pf-search input:focus { outline: none; border-color: var(--accent, #ffe000); background: rgba(255, 255, 255, .07); }
.pf-search svg {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 18px;
	height: 18px;
	translate: 0 -50%;
	color: var(--pf-muted);
	pointer-events: none;
}

/* ---------- 3 · Rejilla de tarjetas ---------- */
#projects-grid.pf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: clamp(28px, 3vw, 44px) clamp(16px, 1.8vw, 28px);
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 var(--gutter, 24px);
	overflow: visible;
	text-align: left;
	background: none;
	border: 0;
}
#projects-grid.pf-grid::after { content: none; }
#projects-grid.pf-grid > a {
	display: block;
	min-width: 0;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}
#projects-grid.pf-grid > a.pf-hide { display: none; }
#projects-grid.pf-grid > a:focus-visible { outline: none; }
#projects-grid.pf-grid .portfolio-box-1 {
	float: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: auto;
	margin: 0;
	overflow: visible;
	border: 0;
	background: none;
	transform: none;
	perspective: 1000px;
}
#projects-grid.pf-grid .portfolio-box-1::before,
#projects-grid.pf-grid .portfolio-box-1::after { content: none; }

.pf-media {
	--rx: 0deg;
	--ry: 0deg;
	--mx: 50%;
	--my: 50%;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--pf-line);
	border-radius: 14px;
	background: var(--pf-card);
	transform: rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform .5s var(--ease, ease), border-color .25s, box-shadow .35s;
	will-change: transform;
}
#projects-grid.pf-grid .pf-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	filter: none;
	transition: transform 1.2s var(--ease, ease), opacity .5s;
}
/* Sombra inferior (reutiliza el .mask del tema) */
#projects-grid.pf-grid .pf-media .mask {
	z-index: 1;
	opacity: 0;
	background: linear-gradient(to top, rgba(10, 10, 10, .85), rgba(10, 10, 10, 0) 55%);
	mix-blend-mode: normal;
	transition: opacity .3s;
}
/* Foco de luz que sigue al ratón dentro de la tarjeta */
.pf-media::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
	background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 224, 0, .22), transparent 45%);
	opacity: 0;
	transition: opacity .3s;
	pointer-events: none;
	mix-blend-mode: screen;
}
/* Barra de carga mientras llega la demo en vivo */
.pf-media::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 5;
	width: 100%;
	height: 3px;
	background: var(--accent, #ffe000);
	transform: scaleX(0);
	transform-origin: 0 50%;
	opacity: 0;
}
.pf-media.is-loading::before { opacity: 1; animation: pf-load 2.4s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes pf-load { from { transform: scaleX(0); } to { transform: scaleX(.9); } }

#projects-grid.pf-grid > a:hover .pf-media,
#projects-grid.pf-grid > a:focus-visible .pf-media {
	border-color: var(--accent, #ffe000);
	box-shadow: 0 0 0 1px var(--accent, #ffe000), 0 34px 70px -28px rgba(95, 26, 164, .85), 0 18px 40px -24px rgba(0, 0, 0, .9);
}
#projects-grid.pf-grid > a:hover .pf-media::after,
#projects-grid.pf-grid > a:hover .pf-media .mask,
#projects-grid.pf-grid > a:focus-visible .pf-media .mask { opacity: 1; }
#projects-grid.pf-grid > a:hover .pf-media img { transform: scale(1.06); }

/* Demo en vivo dentro de la tarjeta (un solo iframe que se mueve de tarjeta en tarjeta) */
.pf-live-frame {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 1440px;
	height: 810px;
	border: 0;
	transform-origin: 0 0;
	transform: scale(var(--pf-s, .25));
	pointer-events: none;
	opacity: 0;
	transition: opacity .6s;
	background: #0a0a0a;
}
.pf-media.is-live .pf-live-frame { opacity: 1; }
.pf-media.is-live img { opacity: 0; }

/* Capa de controles sobre la imagen */
.pf-ui {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 12px;
	pointer-events: none;
}
.pf-ui__top, .pf-ui__bottom { display: flex; align-items: center; gap: 8px; }
.pf-ui__top { justify-content: space-between; }
.pf-ui__bottom { justify-content: flex-end; }
.pf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 9px;
	font: 700 11px/1 var(--pf-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pf-fg);
	background: rgba(10, 10, 10, .78);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 999px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.pf-chip--num { color: var(--accent, #ffe000); }
.pf-chip--free { color: #0a0a0a; background: var(--accent, #ffe000); border-color: #0a0a0a; }
.pf-chip--live { display: none; }
.pf-chip--live .pf-dot { width: 7px; height: 7px; }
.pf-media.is-live .pf-chip--live { display: inline-flex; }
.pf-ui__badges { display: flex; gap: 6px; margin-left: auto; }
.pf-act {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	font: 700 12px/1 var(--pf-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #0a0a0a;
	background: var(--accent, #ffe000);
	border: 2px solid #0a0a0a;
	border-radius: 999px;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .25s, transform .35s var(--ease, ease);
}
.pf-act--icon { width: 40px; padding: 0; justify-content: center; font-size: 16px; color: var(--pf-fg); background: rgba(10, 10, 10, .8); border-color: rgba(255, 255, 255, .25); }
#projects-grid.pf-grid > a:hover .pf-act,
#projects-grid.pf-grid > a:focus-visible .pf-act { opacity: 1; transform: none; }
#projects-grid.pf-grid > a:hover .pf-act--icon { transition-delay: .05s; }

/* Título bajo la imagen */
#projects-grid.pf-grid .portfolio-box-1 h3 {
	position: static;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0 4px;
	font-family: var(--pf-display);
	font-weight: 800;
	font-size: clamp(18px, 1.35vw, 22px);
	line-height: 1.1;
	letter-spacing: -.015em;
	text-transform: none;
	text-align: left;
	color: var(--pf-fg);
	background: none;
	border: 0;
	opacity: 1;
	clip-path: none;
	transition: color .2s;
}
#projects-grid.pf-grid .portfolio-box-1 h3 span {
	margin: 0;
	font: 700 11px/1.2 var(--pf-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pf-muted);
}
/* Algunas tarjetas traen el título traducible en un segundo <span>: ese es título, no categoría */
#projects-grid.pf-grid .portfolio-box-1 h3 span ~ span {
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	color: inherit;
}
#projects-grid.pf-grid > a:hover h3 { color: var(--accent, #ffe000); }

.pf-empty {
	max-width: 1600px;
	margin: 0 auto;
	padding: 48px var(--gutter, 24px);
	font: 400 15px/1.6 var(--pf-mono);
	color: var(--pf-muted);
	text-align: center;
}

/* El cursor gigante "Ver demo" tapaba la demo en vivo: ahora el botón vive dentro de la tarjeta */
.pf-zone ~ .pf-cursor, .pf-cursor { display: none !important; }
.has-pf-cursor #projects-grid.pf-grid a { cursor: pointer; }

/* Táctil: controles siempre visibles, sin inclinación */
@media (hover: none) {
	.pf-act { opacity: 1; transform: none; }
	.pf-act--label { display: none; }
	.pf-media { transform: none !important; }
}

/* ---------- 4 · Vista previa a pantalla completa ---------- */
.pf-modal {
	position: fixed;
	inset: 0;
	z-index: 12000;
	display: grid;
	grid-template-rows: auto 1fr;
	color: var(--pf-fg, #f5f5f0);
	--pf-fg: #f5f5f0;
	--pf-muted: #a7a3ad;
	--pf-line: #2a2630;
	--pf-mono: 'Space Mono', ui-monospace, monospace;
	--pf-display: 'Archivo', 'Poppins', sans-serif;
}
.pf-modal[hidden] { display: none; }
.pf-modal__backdrop {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(10, 10, 10, .94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.pf-modal__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 10px clamp(12px, 2vw, 24px);
	background: #0a0a0a;
	border-bottom: 1px solid var(--pf-line);
}
.pf-modal__info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.pf-modal__idx { font: 700 12px/1 var(--pf-mono); color: var(--accent, #ffe000); white-space: nowrap; }
.pf-modal__title {
	margin: 0;
	overflow: hidden;
	font: 800 clamp(16px, 1.6vw, 22px)/1.1 var(--pf-display);
	letter-spacing: -.01em;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--pf-fg);
}
.pf-modal__cat { font: 700 11px/1 var(--pf-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pf-muted); white-space: nowrap; }
.pf-seg {
	display: inline-flex;
	padding: 4px;
	border: 1px solid var(--pf-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .04);
}
.pf-seg button, .pf-ibtn {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	color: var(--pf-fg);
	background: transparent;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.pf-seg button svg, .pf-ibtn svg { width: 18px; height: 18px; }
.pf-seg button:hover, .pf-ibtn:hover { background: rgba(255, 255, 255, .1); }
.pf-seg button[aria-pressed="true"] { color: #0a0a0a; background: var(--accent, #ffe000); }
.pf-seg button:focus-visible, .pf-ibtn:focus-visible, .pf-modal__open:focus-visible, .pf-modal__cta a:focus-visible { outline: 3px solid var(--accent, #ffe000); outline-offset: 2px; }
.pf-ibtn { width: 40px; padding: 0; border: 1px solid var(--pf-line); }
.pf-modal__tools { display: flex; align-items: center; gap: 8px; }
.pf-modal__tools > * { flex: none; }          /* sin encogerse: en móvil "Abrir demo" quedaba como una raya */
.pf-modal__open svg { flex: none; width: 18px; height: 18px; }
.pf-modal__open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	font: 700 12px/1 var(--pf-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	color: #0a0a0a;
	background: var(--accent, #ffe000);
	border: 2px solid #0a0a0a;
	border-radius: 999px;
	white-space: nowrap;
}
.pf-modal__open:hover { color: #0a0a0a; background: #fff; }
.pf-modal__stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 0;
	padding: clamp(10px, 2vw, 28px);
	overflow: hidden;
}
.pf-device {
	position: relative;
	width: 100%;
	max-width: 1600px;
	height: 100%;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, .18);
	border-radius: 16px;
	background: #0a0a0a;
	box-shadow: 0 40px 120px -30px rgba(95, 26, 164, .7);
	transition: width .5s var(--ease, ease), height .5s var(--ease, ease), border-radius .5s;
}
.pf-device[data-mode="tablet"] { width: min(100%, 820px); height: min(100%, 1180px); border-radius: 28px; border-width: 10px; border-color: #1d1a21; }
.pf-device[data-mode="mobile"] { width: min(100%, 390px); height: min(100%, 844px); border-radius: 44px; border-width: 10px; border-color: #1d1a21; }
.pf-device iframe { display: block; width: 100%; height: 100%; border: 0; background: #0a0a0a; }
.pf-device__load {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	gap: 14px;
	justify-items: center;
	font: 700 12px/1 var(--pf-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pf-muted);
	background: #0a0a0a;
	transition: opacity .4s;
}
.pf-device__load i {
	display: block;
	width: 160px;
	height: 6px;
	border: 2px solid var(--pf-fg);
	background: linear-gradient(var(--accent, #ffe000), var(--accent, #ffe000)) 0 0 / 30% 100% no-repeat;
	animation: pf-bar 1s steps(8) infinite;
}
@keyframes pf-bar { from { background-position: -30% 0; } to { background-position: 130% 0; } }
.pf-device.is-ready .pf-device__load { opacity: 0; pointer-events: none; }
.pf-modal__cta {
	position: absolute;
	left: 50%;
	bottom: clamp(18px, 3vw, 40px);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	translate: -50% 0;
}
.pf-modal__cta[hidden] { display: none; }
.pf-modal__cta a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	font: 700 12px/1 var(--pf-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: #0a0a0a;
	background: var(--accent, #ffe000);
	border: 2px solid #0a0a0a;
	box-shadow: 4px 4px 0 #0a0a0a;
}
.pf-modal__cta a[hidden] { display: none; }   /* "Úsala gratis" solo en plantillas del Armador */
.pf-modal__cta a.pf-ghost { color: var(--pf-fg); background: rgba(10, 10, 10, .85); border-color: var(--pf-fg); box-shadow: 4px 4px 0 var(--brand, #5F1AA4); }
html.pf-lock, html.pf-lock body { overflow: hidden; }

@media (max-width: 900px) {
	.pf-seg, .pf-modal__cat { display: none; }
	.pf-modal__open span { display: none; }
	.pf-modal__open { width: 40px; padding: 0; justify-content: center; }
	/* En móvil los botones van en una barra propia bajo la demo: no tapan los botones ni el WhatsApp de la plantilla */
	.pf-modal__stage { display: flex; flex-direction: column; padding: 0; }
	.pf-device { flex: 1 1 auto; height: auto; min-height: 0; border-radius: 0; border-width: 0; }
	.pf-modal__cta {
		position: static;
		translate: none;
		flex-wrap: nowrap;
		gap: 8px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: #0a0a0a;
		border-top: 1px solid var(--pf-line);
	}
	.pf-modal__cta a {
		flex: 1 1 0;
		justify-content: center;
		min-height: 44px;
		padding: 6px 10px;
		font-size: 11px;
		line-height: 1.25;
		text-align: center;
		white-space: normal;
		box-shadow: none;
	}
}
@media (max-width: 600px) {
	.pf-wall { height: 460px; }
	.pf-wall__plane { width: 260%; }
	.pf-zone #portfolio-filter { flex-direction: column-reverse; }
	.pf-search { flex: 1 1 auto; width: 100%; }
	/* flex: none — en columna, la base de 600px se convertía en 600px de alto vacío */
	.pf-zone #filter { flex: none; flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 6px; scrollbar-width: none; }
	.pf-zone #filter li a { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
	.pf-media, .pf-media img, .pf-act, .pf-wall__tile, .pf-device { transition: none; }
	.pf-dot, .pf-device__load i { animation: none; }
	.pf-zone::after { display: none; }
}
