/* Vicfe Rótulos — demo «Encendé tu rótulo»
   Una calle de Nicoya de noche donde los rótulos se encienden.
   Bungee (rótulos y títulos) + Archivo (texto), autohospedadas. */

@font-face {
  font-family: 'Bungee';
  src: url('/fonts/bungee-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bungee';
  src: url('/fonts/bungee-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Respaldos con métricas ajustadas (medidas con canvas): evitan que el texto salte al llegar la fuente */
@font-face { font-family: 'Bungee Respaldo'; src: local('Arial Black'), local('ArialBlack'); size-adjust: 98%; ascent-override: 104%; descent-override: 30.6%; line-gap-override: 0%; }
@font-face { font-family: 'Archivo Respaldo'; src: local('Arial'), local('ArialMT'), local('Roboto'); size-adjust: 97.8%; ascent-override: 90%; descent-override: 21.5%; line-gap-override: 0%; }

/* Intensidad de luz de un rótulo: 0 apagado, 1 encendido. Registrada para poder animarla. */
@property --luz { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --noche: #0B0F1A;
  --noche-2: #121829;
  --naranja: #FF8A00;
  --amarillo: #FFE14D;
  --cian: #2BB7FF;
  --blanco: #FFFFFF;
  --texto: #E8ECF4;
  --texto-2: #C5CCDB;
  --whatsapp: #25D366;
  --f-rotulo: 'Bungee', 'Bungee Respaldo', 'Arial Black', Impact, sans-serif;
  --f-texto: 'Archivo', 'Archivo Respaldo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --borde: rgba(255, 255, 255, .14);
  --barra: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--barra) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--noche); color: var(--texto);
  font: 400 1rem/1.6 var(--f-texto);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .7rem 1rem; background: var(--amarillo); color: var(--noche); font-weight: 700; border-radius: 8px; text-decoration: none; }
.saltar:focus { top: 1rem; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.35rem; border: 0; border-radius: 999px;
  background: var(--naranja); color: var(--noche);
  font: 700 1rem/1.2 var(--f-texto); text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, background-color .25s ease;
}
.boton:active { transform: scale(.97); }
@media (hover: hover) {
  .boton:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px rgba(255, 255, 255, .15), 0 0 28px color-mix(in srgb, currentColor 0%, var(--naranja) 60%); }
}
.boton-chico { min-height: 42px; padding: .5rem 1.05rem; font-size: .95rem; }
.boton-grande { width: 100%; min-height: 56px; font-size: 1.05rem; }
.boton-linea { background: transparent; color: var(--luz-c, var(--naranja)); box-shadow: inset 0 0 0 2px currentColor; align-self: flex-start; }
@media (hover: hover) {
  .boton-linea:hover { background: var(--luz-c, var(--naranja)); color: var(--noche); box-shadow: 0 0 24px color-mix(in srgb, var(--luz-c, var(--naranja)) 55%, transparent); }
}
.icono-wa { width: 1.35em; height: 1.35em; flex: none; }

/* ---------- Barra ---------- */
.barra {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--barra);
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-left));
  padding-inline: clamp(1rem, 4vw, 3rem);
  background: linear-gradient(rgba(11, 15, 26, .78), rgba(11, 15, 26, 0));
  transition: background-color .3s ease, box-shadow .3s ease;
}
.barra.solida { background: rgba(11, 15, 26, .94); box-shadow: 0 1px 0 var(--borde); }
.barra-marca { display: block; line-height: 0; border-radius: 6px; }
.wordmark { height: 42px; width: auto; overflow: visible; }
.wordmark text { font-family: var(--f-rotulo); font-size: 64px; }
.wm-borde text { fill: none; stroke: #fff; stroke-width: 15; stroke-linejoin: round; }
.wm-relleno text { stroke: var(--noche); stroke-width: 7; stroke-linejoin: round; paint-order: stroke; }
.wm-vicfe { fill: var(--naranja); }
.wm-otulos { fill: #fff; }
.wm-placa { fill: #121212; stroke: #fff; stroke-width: 5; }
.wordmark .wm-r { font-size: 92px; fill: #F1F1F1; stroke: #8E8E8E; stroke-width: 2.5; paint-order: stroke; }
.barra-nav { display: none; margin-left: auto; gap: 1.6rem; }
.barra-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--texto); padding: .4rem 0; }
@media (hover: hover) { .barra-nav a:hover { color: var(--amarillo); } }
.barra > .boton { margin-left: auto; }
@media (min-width: 960px) {
  .barra-nav { display: flex; }
  .barra > .boton { margin-left: 0; }
}

/* ---------- 1 · Hero ---------- */
.hero {
  --c: var(--naranja);
  position: relative; height: max(100svh, 600px); overflow: hidden;
  container-type: size; isolation: isolate; background: var(--noche);
}
.hero[data-color='amarillo'] { --c: var(--amarillo); }
.hero[data-color='cian'] { --c: var(--cian); }

.hero-escena { position: absolute; inset: 0; z-index: 0; --luz: 0; animation: encender 1.25s steps(1, end) .45s both; }
.hero-escena.encendida { --luz: 1; }
.hero-escena.chispa-a { animation: chispa-a .36s steps(1, end) both; }
.hero-escena.chispa-b { animation: chispa-b .36s steps(1, end) both; }
@keyframes encender {
  0% { --luz: 0; } 10% { --luz: .85; } 15% { --luz: .05; } 24% { --luz: 1; } 29% { --luz: .12; }
  35% { --luz: .7; } 41% { --luz: .08; } 56% { --luz: 1; } 62% { --luz: .72; } 70% { --luz: 1; } 100% { --luz: 1; }
}
@keyframes chispa-a { 0% { --luz: .3; } 22% { --luz: 1; } 44% { --luz: .5; } 66% { --luz: 1; } 100% { --luz: 1; } }
@keyframes chispa-b { 0% { --luz: .3; } 22% { --luz: 1; } 44% { --luz: .5; } 66% { --luz: 1; } 100% { --luz: 1; } }

.escenario {
  /* Coordenadas del rótulo en % de la foto (franja oscura sobre la puerta). */
  --rx: 53.6%; --ry: 13.6%; --rw: 37%; --giro: -9deg; --refy: 78%;
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: max(100cqw, 177.78cqh); aspect-ratio: 1672 / 941;
}
@media (max-aspect-ratio: 1/1) {
  .escenario { --rx: 52.4%; --ry: 21%; --rw: 60%; --giro: -7deg; --refy: 63%; width: max(100cqw, 56.25cqh); aspect-ratio: 941 / 1672; }
}
.escenario picture, .escenario-foto { position: absolute; inset: 0; width: 100%; height: 100%; }
.escenario-foto { object-fit: cover; }
/* Oscurece apenas la foto para que el rótulo sea lo más brillante de la calle */
.escenario::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 30%, transparent 40%, rgba(11, 15, 26, .55)); pointer-events: none; }

.rotulo {
  position: absolute; z-index: 2; left: var(--rx); top: var(--ry); width: var(--rw);
  aspect-ratio: 2172 / 724; translate: -50% 0;
  transform: perspective(1100px) rotateY(var(--giro));
}
.rotulo-caja { width: 100%; height: 100%; filter: brightness(calc(.17 + .83 * var(--luz))) saturate(calc(.35 + .65 * var(--luz))); }
.rotulo-halo {
  position: absolute; inset: -95% -28%; z-index: -1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 70%, transparent) 30%, color-mix(in srgb, var(--c) 22%, transparent) 62%, transparent);
  opacity: calc(.95 * var(--luz));
}
.rotulo-cara { position: absolute; left: 5.7%; right: 5.7%; top: 21.2%; bottom: 16.6%; overflow: hidden; container-type: inline-size; }
.rotulo-tinte { position: absolute; inset: 0; background: var(--c); mix-blend-mode: multiply; opacity: calc(.24 * var(--luz)); }
.rotulo-texto {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 0 2.5%;
  font-family: var(--f-rotulo); font-size: var(--fs, 6.6cqw); line-height: 1.04; text-align: center;
  white-space: pre-line; text-transform: uppercase; letter-spacing: .01em;
}
.rotulo-apagado { color: #4a443c; opacity: calc(1 - var(--luz)); }
.rotulo-encendido {
  color: var(--c);
  -webkit-text-stroke: max(1.5px, calc(var(--fs, 20px) * .075)) var(--noche); paint-order: stroke fill;
  text-shadow: 0 0 calc(var(--fs, 20px) * .45) color-mix(in srgb, var(--c) 75%, transparent);
  opacity: var(--luz);
}

/* Reflejo en el asfalto mojado */
.reflejo {
  position: absolute; z-index: 1; left: var(--rx); top: var(--refy); width: calc(var(--rw) * 1.15);
  aspect-ratio: 3 / 1.5; translate: -50% 0; pointer-events: none;
  opacity: calc(.9 * var(--luz)); mix-blend-mode: screen;
  -webkit-mask: linear-gradient(#000 10%, transparent 92%); mask: linear-gradient(#000 10%, transparent 92%);
}
.reflejo-luz {
  position: absolute; inset: 0;
  background:
    radial-gradient(46% 30% at 50% 14%, color-mix(in srgb, var(--c) 62%, transparent), transparent 78%),
    radial-gradient(5% 62% at 27% 34%, color-mix(in srgb, var(--c) 40%, transparent), transparent),
    radial-gradient(4% 70% at 50% 38%, color-mix(in srgb, var(--c) 46%, transparent), transparent),
    radial-gradient(5% 58% at 73% 32%, color-mix(in srgb, var(--c) 38%, transparent), transparent);
}
.reflejo-texto {
  position: absolute; left: 0; right: 0; top: 16%; margin: 0; text-align: center;
  font-family: var(--f-rotulo); font-size: var(--fs, 2rem); line-height: 1.04; white-space: pre-line; text-transform: uppercase;
  color: var(--c); transform: scaleY(-1.8) skewX(-4deg); transform-origin: 50% 50%; opacity: .58; filter: blur(3px);
}

.hero-panel {
  position: absolute; z-index: 3; left: clamp(1rem, 4vw, 4rem); bottom: clamp(1rem, 5.5cqh, 3.5rem);
  width: min(440px, calc(100% - 2rem));
  padding: 1.15rem 1.3rem 1.3rem; border-radius: 18px;
  background: rgba(11, 15, 26, .84); border: 1px solid var(--borde);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
@media (hover: hover) and (pointer: fine) {
  .hero-panel { background: rgba(11, 15, 26, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.hero-titulo { font: 600 .74rem/1.4 var(--f-texto); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-2); }
.hero-gancho { margin: .45rem 0 .9rem; font: 400 clamp(1.15rem, 1.9vw, 1.45rem)/1.2 var(--f-rotulo); color: #fff; }
.resalte { color: var(--c); text-shadow: 0 0 16px color-mix(in srgb, var(--c) 55%, transparent); }
.probador { display: grid; gap: .85rem; margin: 0; }
.campo label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--texto); }
.campo-fila { position: relative; }
.campo input {
  width: 100%; height: 50px; padding: 0 4.2rem 0 1rem; border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, .28); background: rgba(5, 8, 15, .75); color: #fff;
  font: 600 1.05rem var(--f-texto); transition: border-color .2s, box-shadow .2s;
}
.campo input::placeholder { color: #9AA3B5; font-weight: 500; }
.campo input:focus { outline: none; border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 28%, transparent); }
.contador { position: absolute; right: .9rem; top: 50%; translate: 0 -50%; font-size: .8rem; color: #AEB6C7; font-variant-numeric: tabular-nums; }
.colores { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .5rem; }
.colores legend { float: left; width: 100%; font-weight: 600; font-size: .92rem; margin: 0 0 .4rem; padding: 0; }
.colores legend + * { clear: left; }
.color { position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .3rem .8rem .3rem .45rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .22); cursor: pointer; font-size: .9rem; font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.color input { appearance: none; -webkit-appearance: none; margin: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 2px rgba(11, 15, 26, .9), 0 0 10px color-mix(in srgb, var(--sw) 70%, transparent); cursor: pointer; }
.color input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.color-naranja { --sw: var(--naranja); }
.color-amarillo { --sw: var(--amarillo); }
.color-cian { --sw: var(--cian); }
.color:has(input:checked) { border-color: var(--sw); box-shadow: 0 0 16px color-mix(in srgb, var(--sw) 45%, transparent), inset 0 0 10px color-mix(in srgb, var(--sw) 18%, transparent); }
.hero .boton-grande { background: var(--c); }
@media (hover: hover) { .hero .boton-grande:hover { box-shadow: 0 0 34px color-mix(in srgb, var(--c) 65%, transparent); } }

@media (max-aspect-ratio: 1/1), (max-width: 640px) {
  .hero-panel {
    left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; border: 0;
    padding: 2.4rem max(1rem, env(safe-area-inset-left)) calc(1rem + env(safe-area-inset-bottom));
    background: linear-gradient(rgba(11, 15, 26, 0), rgba(11, 15, 26, .82) 2.4rem, rgba(11, 15, 26, .94));
    box-shadow: none;
  }
  .hero-gancho { margin: .3rem 0 .7rem; }
  .hero .boton-grande { font-size: .97rem; gap: .45rem; padding-inline: .9rem; }
}
@media (min-aspect-ratio: 1.0001/1) and (max-height: 660px) {
  .hero-panel { padding: .9rem 1.1rem 1rem; }
  .hero-gancho { display: none; }
  .probador { gap: .6rem; }
}

/* ---------- Secciones ---------- */
.seccion { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.contenedor { width: min(1200px, 100% - 2 * clamp(1rem, 4vw, 3rem)); margin-inline: auto; }
.pared { background-color: #0d1220; }
.pared.cerca {
  background-image: linear-gradient(rgba(11, 15, 26, .5), rgba(11, 15, 26, .78)), url('/img/ambiente/pared-960.webp');
  background-size: cover; background-position: center;
}
@media (min-width: 1000px) {
  .pared.cerca { background-image: linear-gradient(rgba(11, 15, 26, .5), rgba(11, 15, 26, .78)), url('/img/ambiente/pared-1672.webp'); }
}
.encabezado { max-width: 760px; }
.antetitulo { margin: 0; font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--naranja); }
.encabezado h2 {
  margin: .5rem 0 .9rem; font: 400 clamp(1.9rem, 4.8vw, 3.6rem)/1.04 var(--f-rotulo); color: #fff;
  text-shadow: 0 0 26px rgba(255, 138, 0, .28); text-wrap: balance;
}
.bajada { margin: 0; max-width: 58ch; font-size: 1.08rem; color: var(--texto-2); }
.bajada strong { color: #fff; }

img[data-src] { opacity: 0; }
img.cargada { opacity: 1; transition: opacity .5s ease; }

/* ---------- 2 · Servicios: la calle de rótulos ---------- */
.calle {
  list-style: none; padding: 0; margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(3rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2.25rem);
}
.caja-servicio { --luz: 0; display: flex; flex-direction: column; gap: .55rem; }
.caja-servicio.encendida { --luz: 1; animation: encender 1.15s steps(1, end) var(--retraso, 0s) both; }
.caja-marco {
  position: relative; padding: 9px; border-radius: 10px;
  background: linear-gradient(#30343c, #17191f 60%, #101216);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 22px 44px rgba(0, 0, 0, .55),
    0 0 calc(46px * var(--luz)) color-mix(in srgb, var(--luz-c) calc(var(--luz) * 55%), transparent);
}
.caja-marco::before, .caja-marco::after {
  content: ''; position: absolute; top: -16px; width: 14px; height: 18px; border-radius: 3px 3px 0 0;
  background: linear-gradient(#3a3e46, #22252b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.caja-marco::before { left: 16%; }
.caja-marco::after { right: 16%; }
.caja-letrero {
  margin: 0 0 8px; padding: .6rem .5rem; border-radius: 5px; text-align: center;
  background: #07090e; font: 400 clamp(1rem, 1.5vw, 1.2rem)/1.1 var(--f-rotulo);
  color: color-mix(in srgb, var(--luz-c) calc(58% + var(--luz) * 42%), #6b6b6b);
  text-shadow: 0 0 calc(16px * var(--luz)) color-mix(in srgb, var(--luz-c) calc(var(--luz) * 85%), transparent);
}
.caja-foto { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #0f1118; }
.caja-foto img { width: 100%; height: 100%; object-fit: cover; filter: brightness(calc(.26 + .74 * var(--luz))) saturate(calc(.3 + .7 * var(--luz))); }
.caja-foto img.cargada { transition: opacity .5s ease; }
.etiqueta-real { position: absolute; left: 8px; bottom: 8px; padding: .2rem .5rem; border-radius: 4px; background: rgba(11, 15, 26, .88); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.caja-servicio h3 { margin-top: .5rem; font: 700 1.25rem/1.25 var(--f-texto); color: #fff; }
.caja-servicio p:not(.caja-letrero) { margin: 0 0 .35rem; color: var(--texto-2); }

/* ---------- 3 · Trabajos reales ---------- */
.trabajos { background: radial-gradient(90% 60% at 50% 0%, #131a2c, var(--noche) 70%); }
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.2rem 0 1.5rem; }
.filtro {
  min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .26); background: transparent; color: var(--texto);
  font-weight: 600; font-size: .95rem; transition: background-color .2s, color .2s, box-shadow .2s, border-color .2s;
}
@media (hover: hover) { .filtro:hover { border-color: var(--amarillo); } }
.filtro[aria-pressed='true'] { background: var(--amarillo); color: var(--noche); border-color: var(--amarillo); box-shadow: 0 0 20px rgba(255, 225, 77, .35); }
.galeria { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 12px; }
.pieza[hidden] { display: none; }
.pieza.estrella { grid-column: span 2; grid-row: span 2; }
.pieza-boton {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 10px;
  overflow: hidden; background: #11151f; cursor: zoom-in; color: inherit;
}
.estrella .pieza-boton { aspect-ratio: auto; height: 100%; box-shadow: 0 0 0 1px rgba(43, 183, 255, .35), 0 0 46px rgba(43, 183, 255, .16); }
.pieza-boton img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .5s ease; }
@media (hover: hover) { .pieza-boton:hover img { transform: scale(1.04); } }
.pieza-tag { position: absolute; left: 8px; bottom: 8px; padding: .22rem .5rem; border-radius: 4px; background: rgba(11, 15, 26, .86); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .03em; }
@media (max-width: 699px) {
  .galeria { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pieza.estrella { grid-row: auto; }
  .estrella .pieza-boton { aspect-ratio: 4 / 3; height: auto; }
  .pieza:not(.estrella) .pieza-tag { font-size: .62rem; left: 5px; bottom: 5px; padding: .15rem .35rem; }
}

/* Visor */
.visor { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 6, 11, .97); color: #fff; overscroll-behavior: contain; }
.visor::backdrop { background: rgba(0, 0, 0, .85); }
.visor-cuerpo { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 3.75rem 5rem 2rem; touch-action: pan-y; }
.visor-figura { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; max-width: 100%; }
.visor-figura img { width: auto; height: auto; max-width: min(960px, 100%); max-height: calc(100svh - 9.5rem); border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.visor-figura figcaption { max-width: 62ch; text-align: center; font-size: .92rem; color: var(--texto-2); }
.visor-tag { display: inline-block; margin-right: .35rem; padding: .15rem .45rem; border-radius: 4px; background: var(--amarillo); color: var(--noche); font-weight: 700; font-size: .75rem; }
.visor-cuenta { display: block; margin-top: .3rem; font-variant-numeric: tabular-nums; color: #AEB6C7; }
.visor-btn, .visor-cerrar {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(11, 15, 26, .8); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer; transition: border-color .2s, background-color .2s;
}
@media (hover: hover) { .visor-btn:hover, .visor-cerrar:hover { border-color: var(--amarillo); } }
.visor-btn { top: 50%; translate: 0 -50%; }
.visor-ant { left: 1rem; }
.visor-sig { right: 1rem; }
.visor-cerrar { top: .8rem; right: .8rem; font-size: 1.8rem; }
@media (max-width: 699px) {
  .visor-cuerpo { padding: 3.75rem .5rem 5.5rem; }
  .visor-btn { top: auto; bottom: 1rem; translate: none; }
  .visor-ant { left: calc(50% - 64px); }
  .visor-sig { right: calc(50% - 64px); }
}

/* ---------- 4 · Cómo trabajamos ---------- */
.proceso { overflow: hidden; isolation: isolate; background: var(--noche); padding-bottom: 80px; }
@media (max-width: 699px) { .proceso { padding-bottom: 56px; } }
.proceso-fondo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.proceso::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(11, 15, 26, .93), rgba(11, 15, 26, .8) 45%, rgba(11, 15, 26, .95)); }
.pasos-marco { --progreso: 0; position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); }
.neon-linea { position: absolute; left: 12.5%; right: 12.5%; top: 26px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.neon-linea span {
  position: absolute; inset: 0; border-radius: inherit; background: var(--naranja);
  box-shadow: 0 0 10px var(--naranja), 0 0 26px rgba(255, 138, 0, .7);
  transform-origin: left center; transform: scaleX(var(--progreso));
}
.pasos { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.paso { text-align: center; }
.paso-num {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.1rem; border-radius: 50%;
  font: 400 1.4rem var(--f-rotulo); background: #10141f; border: 2px solid rgba(255, 255, 255, .22); color: #8F98AB;
  transition: border-color .35s, color .35s, box-shadow .35s;
}
.paso.activo .paso-num { border-color: var(--naranja); color: var(--naranja); box-shadow: 0 0 20px rgba(255, 138, 0, .6), inset 0 0 12px rgba(255, 138, 0, .3); text-shadow: 0 0 10px rgba(255, 138, 0, .8); }
.paso h3 { font: 700 1.18rem/1.3 var(--f-texto); color: #fff; margin-bottom: .35rem; }
.paso p { margin: 0; color: var(--texto-2); }
.proceso-cta { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; text-align: center; }
@media (max-width: 799px) {
  .pasos { grid-template-columns: 1fr; gap: 2.1rem; }
  .paso { position: relative; text-align: left; padding-left: 76px; min-height: 56px; }
  .paso-num { position: absolute; left: 0; top: -4px; margin: 0; }
  .neon-linea { left: 26px; right: auto; top: 24px; bottom: var(--fin-linea, 40px); width: 4px; height: auto; }
  .neon-linea span { transform-origin: center top; transform: scaleY(var(--progreso)); }
}

/* ---------- 5 · Cierre: la valla ---------- */
.cierre { position: relative; background: var(--noche); }
.cierre-marco { position: relative; overflow: hidden; container-type: size; width: 100%; aspect-ratio: 1672 / 941; max-height: 100svh; }
.cierre-lienzo {
  --ancho: max(100cqw, 177.68cqh);
  position: absolute; top: 0; width: var(--ancho); aspect-ratio: 1672 / 941;
  left: clamp(calc(100cqw - var(--ancho)), calc(50cqw - .658 * var(--ancho)), 0px);
}
.cierre-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.valla-cara {
  position: absolute; left: 0; top: 0; width: 1000px; height: 400px; transform-origin: 0 0; transform: var(--matriz, none);
  display: flex; flex-direction: column; justify-content: center; padding: 30px 56px; opacity: 0; transition: opacity .6s ease;
}
.valla-cara.lista { opacity: 1; }
.valla-cara h2 { font: 400 74px/1.05 var(--f-rotulo); color: var(--noche); text-wrap: balance; letter-spacing: -.01em; }
.valla-cara em { font-style: normal; background: var(--naranja); color: var(--noche); padding: 0 .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.valla-firma { margin: 20px 0 0; font: 800 22px var(--f-texto); letter-spacing: .14em; text-transform: uppercase; color: #2E3340; }
.cierre-marco::after { content: ''; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, rgba(11, 15, 26, .88)); pointer-events: none; }
.cierre-accion { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(1rem, 5vh, 3.5rem); display: flex; justify-content: center; padding: 0 1rem; }
.cierre-accion .boton { flex: 0 1 470px; }
@media (max-width: 699px) {
  /* La cara de la valla ocupa ~94 % del ancho: el lienzo mide 1,73 veces el ancho de pantalla */
  .cierre-marco { aspect-ratio: auto; height: 97vw; }
  .cierre-marco::after { height: 22%; }
  .cierre-accion { position: static; padding: 1.25rem 1rem 0; background: var(--noche); }
  .cierre { padding-bottom: 1rem; }
}

/* ---------- 6 · Contacto ---------- */
.contacto-rejilla { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .contacto-rejilla { grid-template-columns: 1fr 1.05fr; } }
.datos { list-style: none; padding: 0; margin: 2rem 0 2rem; display: grid; gap: .85rem; }
.datos li { display: grid; grid-template-columns: 104px 1fr; gap: 1rem; align-items: baseline; padding-bottom: .85rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.datos li[hidden] { display: none; }
.dato-etq { font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amarillo); }
.dato-valor { color: #fff; font-size: 1.1rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
a.dato-valor { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; }
@media (hover: hover) { a.dato-valor:hover { text-decoration-color: var(--amarillo); } }
.contacto .boton-grande { max-width: 420px; }
/* Rótulo de ejemplo que rota (o el video, si config.videoUrl tiene valor) */
.muestra { --c: var(--naranja); display: flex; flex-direction: column; align-items: center; text-align: center; }
.muestra[data-color='amarillo'] { --c: var(--amarillo); }
.muestra[data-color='cian'] { --c: var(--cian); }
.muestra-escena {
  --luz: 1; position: relative; width: 100%; padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  border-radius: 18px; background: radial-gradient(80% 70% at 50% 45%, #141c30, #080b13 75%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.muestra-escena.parpadeo-a { animation: rotar-a .75s steps(1, end) both; }
.muestra-escena.parpadeo-b { animation: rotar-b .75s steps(1, end) both; }
@keyframes rotar-a { 0% { --luz: 1; } 12% { --luz: .15; } 22% { --luz: .8; } 32% { --luz: 0; } 52% { --luz: .9; } 60% { --luz: .2; } 72% { --luz: 1; } 100% { --luz: 1; } }
@keyframes rotar-b { 0% { --luz: 1; } 12% { --luz: .15; } 22% { --luz: .8; } 32% { --luz: 0; } 52% { --luz: .9; } 60% { --luz: .2; } 72% { --luz: 1; } 100% { --luz: 1; } }
.muestra-rotulo { position: relative; left: auto; top: auto; width: 100%; translate: none; transform: none; }
.muestra-rotulo .rotulo-halo { inset: -60% -10%; }
.muestra-pie { margin: 1.3rem 0 .9rem; font: 400 clamp(1.15rem, 2vw, 1.45rem)/1.2 var(--f-rotulo); color: #fff; }
.muestra-boton { background: var(--c); }
.muestra-video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; display: block; }
/* ---------- Pie y flotante ---------- */
.pie { padding: 2.2rem 0 6.5rem; border-top: 1px solid rgba(255, 255, 255, .08); color: #AEB6C7; font-size: .92rem; }
.pie-fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }
.pie p { margin: 0; }
.pie strong { color: #fff; }
.pie a { color: var(--amarillo); }

.flotante {
  position: fixed; z-index: 25; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: var(--noche); box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  will-change: transform; transform: translateY(18px) scale(.85); opacity: 0; visibility: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, visibility 0s linear .35s;
}
.flotante svg { width: 32px; height: 32px; }
@media (max-width: 699px) {
  .flotante { width: 56px; height: 56px; right: max(16px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); }
  .flotante svg { width: 30px; height: 30px; }
}
.flotante.visible { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
@media (hover: hover) { .flotante:hover { transform: scale(1.06); } }

/* ---------- Movimiento reducido: rótulos ya encendidos, sin parpadeos ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .hero-escena, .caja-servicio, .muestra-escena { --luz: 1 !important; animation: none !important; }
  .pasos-marco { --progreso: 1 !important; }
}
