/* ============================================================
   ZAIONS Landing — ESTILOS
   ============================================================
   Rediseño del 04/10/2026, con la onda del pitch:
   negro, una frase grande por pantalla, el azul del humo como
   único color fuerte, mucho aire.

     1. Tokens (colores, letra, espacios)
     2. Base
     3. Piezas comunes (botones, títulos, marca)
     4. Navegación y promo
     5. Portada (el humo)
     6. "Complejo." → la frase
     7. El asiento
     8. Las preguntas (gráfico al bajar)
     9. Proyección
     10. La escalera
     11. Planes
     12. Lo que viene
     13. Quién + preguntas frecuentes
     14. Cierre y pie
     15. Cartelito "Te abrimos la cuenta"
     16. Apariciones y accesibilidad
   ============================================================ */

/* ============ 1. TOKENS ============ */
:root {
  --bg:      #0D0D0D;
  --sup:     #151515;
  --sup-2:   #1C1C1C;
  --borde:   #262626;
  --borde-2: rgba(255, 255, 255, 0.16);

  --tx:   #F0F0F0;
  --tx-2: #A6A6A6;
  --tx-3: #7D7D7D;     /* 4.5:1 sobre el fondo */
  --tx-4: #4A4A4A;     /* solo decorativo */

  --az:      #2F6BFF;
  --az-h:    #2558D6;
  --az-cl:   #5B8CFF;  /* azul para texto chico: 6:1 */
  --az-xl:   #3D7BFF;  /* azul para texto grande, como en el pitch */
  --verde:   #34D399;
  --ambar:   #F59E0B;

  --f:       "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --f-marca: "Playfair Display", Georgia, serif;

  --ancho:   1200px;
  --gutter:  clamp(16px, 4vw, 40px);
  --bloque:  clamp(104px, 16vh, 200px);
  --nav-h:   64px;

  --curva:   cubic-bezier(0.2, 0.7, 0.2, 1);
  --radio:   22px;
}

/* ============ 2. BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 17px/1.55 var(--f);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.sin-scroll { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.num, table { font-variant-numeric: tabular-nums; }

.env {
  width: 100%;
  max-width: calc(var(--ancho) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.bloque { padding: var(--bloque) 0; }

/* ============ 3. PIEZAS COMUNES ============ */

/* Títulos: Inter pesado y apretado, como el pitch.
   <em> = la parte en gris · <b> = la parte en azul */
.titulo-xl, .titulo, .titulo-m {
  font-weight: 700;
  color: var(--tx);
  text-wrap: balance;
}
.titulo-xl { font-size: clamp(44px, 7.6vw, 116px); line-height: 0.98; letter-spacing: -0.048em; }
.titulo    { font-size: clamp(36px, 5.2vw, 72px);  line-height: 1.02; letter-spacing: -0.042em; }
.titulo-m  { font-size: clamp(28px, 3.1vw, 42px);  line-height: 1.08; letter-spacing: -0.034em; }
:is(.titulo-xl, .titulo, .titulo-m, .cierre-frase) em { font-style: normal; color: var(--tx-3); }
:is(.titulo-xl, .titulo, .titulo-m, .cierre-frase) b  { font-weight: inherit; color: var(--az-xl); }

.bajada {
  color: var(--tx-2);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.6;
  max-width: 34em;
  margin-top: 24px;
  text-wrap: pretty;
}

/* Nombres de marca: Playfair solo acá (Branding/BRAND.md) */
.marca { font-family: var(--f-marca); font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.z { color: var(--az); }

.botones { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.btn-primario { background: var(--az); color: #fff; }
.btn-primario:hover { background: var(--az-h); }
.btn-fantasma { border: 1px solid var(--borde-2); color: var(--tx); }
.btn-fantasma:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }
.btn-chico { height: 36px; padding: 0 16px; font-size: 14px; }

.pie-foto { margin-top: 14px; font-size: 13px; color: var(--tx-3); }

.enlace { color: var(--az-cl); font-weight: 600; }
.enlace:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============ 4. NAVEGACIÓN Y PROMO ============ */
.promo {
  display: block;
  padding: 10px var(--gutter);
  text-align: center;
  font-size: 13.5px;
  color: var(--tx-2);
  background: #0F1626;
  position: relative;
  z-index: 60;
}
.promo u { text-decoration: none; color: var(--az-cl); font-weight: 600; margin-left: 6px; }
.promo:hover u { text-decoration: underline; text-underline-offset: 3px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 240ms ease, backdrop-filter 240ms ease;
}
/* Vidrio solo cuando hay contenido pasando por abajo */
.nav.pegado {
  background: rgba(13, 13, 13, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.nav.pegado::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -16px;
  height: 16px;
  background: linear-gradient(rgba(13, 13, 13, 0.35), transparent);
  pointer-events: none;
}
.nav-int { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.nav-logo img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a, .nav-ingresar { font-size: 14px; color: var(--tx-2); transition: color 140ms ease; }
.nav-links a:hover, .nav-ingresar:hover { color: var(--tx); }
.nav-acciones { display: flex; align-items: center; gap: 20px; }

.nav-menu-btn { display: none; width: 40px; height: 40px; position: relative; margin-right: -8px; }
.nav-menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--tx); border-radius: 2px;
  transition: transform 220ms var(--curva);
}
.nav-menu-btn span:first-child { top: 16px; }
.nav-menu-btn span:last-child  { top: 23px; }
.nav-menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.menu-movil {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px var(--gutter);
  background: rgba(13, 13, 13, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 260ms var(--curva), visibility 0s 260ms;
}
.menu-movil.abierto { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-movil a { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; padding: 10px 0; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-acciones { margin-left: auto; }
  .nav-menu-btn { display: block; }
}
@media (max-width: 520px) {
  .nav-ingresar { display: none; }
}

/* ============ 5. PORTADA ============
   Tres capas: humo de atrás, la palabra, jirones del mismo humo
   por delante. app.js escribe --p (0 a 1, cuánto se bajó) y
   --mx / --my (cursor, de -1 a 1); cada capa lo usa a su ritmo.
   Así se ve profundidad sin tocar el layout. */
.hero {
  --p: 0; --mx: 0; --my: 0;
  --W: min(1180px, 104vw);
  position: relative;
  min-height: 100svh;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + 4vh) var(--gutter) 9vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-escena {
  position: relative;
  width: var(--W);
  aspect-ratio: 2048 / 768;
  display: grid;
  place-items: center;
}
.hero-capa {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-capa img { width: 100%; height: 100%; }

.hero-humo[data-capa="atras"] {
  transform:
    translate3d(calc(var(--mx) * -14px), calc(var(--p) * 16vh + var(--my) * -8px), 0)
    scale(calc(1 + var(--p) * 0.14));
  opacity: calc(1 - var(--p) * 0.75);
}
.hero-humo-frente {
  z-index: 2;
  transform:
    translate3d(calc(var(--mx) * 24px), calc(var(--p) * -12vh + var(--my) * 12px), 0)
    scale(calc(1 + var(--p) * 0.4));
  opacity: calc(1 - var(--p) * 1.7);
}
.hero-palabra {
  position: relative;
  z-index: 1;
  font-size: calc(var(--W) * 0.205);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #F2F2F2;
  margin-top: -0.04em;
  transform: translate3d(0, calc(var(--p) * 9vh), 0);
  opacity: calc(1 - var(--p) * 0.9);
  will-change: transform, opacity;
}
.hero-pie {
  position: relative;
  z-index: 3;
  margin-top: clamp(4px, 1.5vh, 20px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate3d(0, calc(var(--p) * -5vh), 0);
  opacity: calc(1 - var(--p) * 2);
}
.hero-frase {
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
}
.hero-frase .marca { font-size: 1.08em; }
.hero-bajada {
  margin-top: 12px;
  color: var(--tx-2);
  font-size: clamp(16px, 1.25vw, 18px);
  max-width: 32em;
  text-wrap: balance;
}
.hero-pie .botones { justify-content: center; margin-top: 30px; }

/* Entrada al cargar: el humo llega, después la palabra, después los
   jirones de adelante. Se anima la imagen de adentro, no la capa,
   para no pisar el transform del scroll. */
@keyframes humo-llega { from { opacity: 0; transform: scale(0.92); filter: blur(14px); } }
@keyframes sube       { from { opacity: 0; transform: translateY(18px); } }
.hero-humo[data-capa="atras"] img { animation: humo-llega 1.6s var(--curva) both; }
.hero-humo-frente img             { animation: humo-llega 1.6s var(--curva) 0.5s both; }
.hero-palabra > span:first-child  { display: inline-block; animation: sube 1.1s var(--curva) 0.25s both; }
.hero-pie > *                     { animation: sube 1s var(--curva) both; }
.hero-pie > :nth-child(1) { animation-delay: 0.7s; }
.hero-pie > :nth-child(2) { animation-delay: 0.8s; }
.hero-pie > :nth-child(3) { animation-delay: 0.9s; }

@media (max-width: 700px) {
  .hero { --W: 108vw; justify-content: center; padding-bottom: 7vh; }
  .hero-palabra { font-size: calc(var(--W) * 0.2); }
  .hero-pie .botones { flex-direction: column; width: 100%; max-width: 340px; }
}

/* ============ 6. "COMPLEJO." → LA FRASE ============
   Es el momento más largo de la página (a propósito): la escena
   queda pegada mientras se bajan varias pantallas. */
.complejo { position: relative; height: 340vh; }
.complejo-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.complejo-campo { position: absolute; inset: 0; }
.jerga {
  position: absolute;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-12deg);
  will-change: transform, opacity;
  user-select: none;
}
.j-g { font-size: clamp(24px, 2.9vw, 44px); color: #8C8C8C; font-weight: 700; }
.j-m { font-size: clamp(16px, 1.7vw, 26px); color: #636363; }
.j-c { font-size: clamp(13px, 1.15vw, 17px); color: #4D4D4D; }

.complejo-palabra {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-size: clamp(60px, 9.5vw, 150px);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: #B8B8B8;
  white-space: nowrap;
  will-change: transform, opacity, filter;
}
.complejo-final {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
}
.complejo-final .bajada { margin-left: auto; margin-right: auto; max-width: 30em; }

@media (max-width: 700px) {
  .complejo { height: 300vh; }
}

/* ============ 6b. TODO EN UN SOLO LUGAR ============
   A la izquierda, la secuencia del pitch; a la derecha, una réplica
   dibujada de la caja que hace una venta sola. El verbo que se
   enciende es el que está pasando en la caja (app.js). */
.gestion-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 5vw, 80px);
  margin-top: clamp(40px, 8vh, 88px);
  align-items: center;
}
/* Los cinco pasos se leen siempre enteros: la animación solo destaca el
   que está pasando. (Antes la descripción se desplegaba únicamente en el
   paso activo y nadie llegaba a leerla.) */
.gestion-fila { padding: 14px 0; }
.gestion-fila h3 {
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
  color: #8E8E8E;
  transition: color 350ms ease;
}
.gestion-fila.azul h3 { color: rgba(61, 123, 255, 0.55); }
.gestion-fila.activo h3 { color: var(--tx); }
.gestion-fila.azul.activo h3 { color: var(--az-xl); }
.gf-desc > p { margin-top: 8px; color: var(--tx-3); font-size: 16px; line-height: 1.5; max-width: 25em; transition: color 350ms ease; }
.gestion-fila.activo .gf-desc > p { color: var(--tx-2); }

.gestion-demo { display: flex; flex-direction: column; align-items: center; min-width: 0; width: 100%; }
.demo-marco {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--borde);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.demo-marco.demo-cel { border: 0; border-radius: 44px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.demo-escala { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.gestion-demo .pie-foto { text-align: center; }
.demo-paso { display: none; }

/* ---------- La caja (tamaño de diseño fijo; se escala entera) ---------- */
.pos {
  position: relative;
  overflow: hidden;
  background: #0D0D0D;
  color: #F0F0F0;
  font: 400 13px/1.4 var(--f);
  text-align: left;
  user-select: none;
}
.pos * { box-sizing: border-box; }
.pos h4 { margin: 0; }
.pos p { margin: 0; }
.pos button { color: inherit; font: inherit; border: 0; background: none; cursor: default; }
.pos [hidden] { display: none !important; }
.pos .num { font-variant-numeric: tabular-nums; }
.pos.reinicia, .pos.reinicia * { transition: none !important; animation: none !important; }

.pos-barra { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #151515; border-bottom: 1px solid #262626; }
.pos-barra i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c2c; }
.pos-barra span { margin-left: 14px; padding: 3px 14px; border-radius: 6px; background: #0D0D0D; color: #7D7D7D; font-size: 11.5px; }

.pos-cuerpo { display: flex; height: calc(100% - 34px); }
.pos-cel .pos-cuerpo { height: 100%; flex-direction: column; }
.pos-prods { flex: 1; min-width: 0; padding: 16px; overflow: hidden; }
.pos-busca { padding: 10px 14px; border-radius: 12px; border: 1px solid #262626; background: #151515; color: #7D7D7D; font-size: 13px; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }

.pt {
  display: flex; flex-direction: column; text-align: left;
  border-radius: 12px; border: 1px solid #262626; background: #151515; overflow: hidden;
  transition: transform 120ms ease-out, border-color 200ms ease, background-color 200ms ease;
}
.pt-img {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: hsl(var(--t) 34% 32%); color: rgba(255,255,255,0.9); font-size: 26px; font-weight: 600;
}
.pt-nombre { padding: 8px 10px 0; font-size: 13px; font-weight: 500; line-height: 1.25; min-height: 2.5em; }
.pt-pie { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 2px 10px 10px; }
.pt-precio { font-size: 15px; font-weight: 600; }
.pt-stock { font-size: 10.5px; color: #7D7D7D; padding: 1px 6px; border-radius: 99px; transition: color 300ms, background-color 300ms; }
.pt-stock.flash { color: #F59E0B; background: rgba(245, 158, 11, 0.14); }
.pt.en-carrito { border-color: #2F6BFF; background: rgba(47, 107, 255, 0.1); }
.pt-badge {
  position: absolute; top: 6px; right: 6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 99px; background: #2F6BFF; color: #fff; font-size: 11.5px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.pt.en-carrito .pt-badge { display: flex; }
.pt-badge.late { animation: late 320ms var(--curva); }
@keyframes late { from { transform: scale(1.4); } }

.pos-carrito {
  position: relative;
  width: 280px; flex: none;
  display: flex; flex-direction: column;
  margin: 16px 16px 16px 0;
  border-radius: 16px; border: 1px solid #262626; background: #151515; overflow: hidden;
}
.pc-cab { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-size: 14px; }
.pc-cab span { color: #7D7D7D; font-size: 12px; }
.pc-items { flex: 1; border-top: 1px solid #262626; padding: 14px 16px; }
.pc-vacio { color: #7D7D7D; font-size: 12px; text-align: center; padding: 40px 10px; }
.pc-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.pc-nom { font-size: 13px; font-weight: 500; }
.pc-sub { grid-column: 1 / -1; color: #A6A6A6; font-size: 12.5px; }
.pc-cant { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 8px; background: #1C1C1C; }
.pc-cant i { width: 22px; height: 22px; display: grid; place-items: center; color: #A6A6A6; font-style: normal; }
.pc-cant b { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pc-pie { padding: 14px 16px 16px; border-top: 1px solid #262626; }
.pc-iva { min-height: 1.3em; color: #7D7D7D; font-size: 11.5px; }
.pc-total { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 12px; color: #7D7D7D; font-size: 12px; }
.pc-total b { color: #F0F0F0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.pc-cobrar {
  width: 100%; padding: 13px; border-radius: 12px; font-size: 15px; font-weight: 600;
  background: #1C1C1C; color: #7D7D7D; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background-color 250ms ease, color 250ms ease, transform 100ms ease-out;
}
.pc-cobrar.activo { background: #2F6BFF; color: #fff; }
.pc-cobrar-total { display: none; }
.pos-tecla { font: 500 10px var(--f); opacity: 0.6; }

/* Venta cobrada: el carrito se reemplaza por el resumen (y la factura) */
.pc-ok {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 20px; text-align: center; background: #151515;
  opacity: 0; visibility: hidden; transition: opacity 400ms ease, visibility 0s 400ms;
}
.pos-carrito.cobrada .pc-ok { opacity: 1; visibility: visible; transition-delay: 0s; }
.pc-ok-tilde { color: #34D399; margin-bottom: 6px; }
.pc-ok-tilde svg { width: 38px; height: 38px; }
.pc-ok h4 { font-size: 16px; font-weight: 600; }
.pc-ok p { color: #A6A6A6; font-size: 12.5px; }
.pc-fact {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; width: 100%;
  border-radius: 12px; border: 1px solid #262626; background: #0D0D0D; text-align: left; color: #34D399;
  opacity: 0; transform: translateY(10px) scale(0.97);
  transition: opacity 500ms var(--curva), transform 600ms var(--curva);
}
.pc-fact.on { opacity: 1; transform: none; }
.pc-fact > span { display: flex; flex-direction: column; min-width: 0; color: #F0F0F0; font-size: 12.5px; }
.pc-fact i { font-style: normal; color: #7D7D7D; font-size: 11.5px; }
.pos-qr { margin-left: auto; width: 40px; height: 40px; flex: none; color: #A6A6A6; }

/* Cobrar: la hoja del medio de pago */
.pos-velo { position: absolute; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; visibility: hidden; transition: opacity 260ms ease, visibility 0s 260ms; }
.pos.modal .pos-velo { opacity: 1; visibility: visible; transition-delay: 0s; }
.pos-hoja {
  position: absolute; left: 50%; top: 50%; width: 380px; padding: 22px;
  border-radius: 18px; border: 1px solid #262626; background: #151515; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: translate(-50%, -46%) scale(0.97); opacity: 0; visibility: hidden;
  transition: transform 340ms var(--curva), opacity 260ms ease, visibility 0s 340ms;
}
.pos.modal .pos-hoja { transform: translate(-50%, -50%); opacity: 1; visibility: visible; transition-delay: 0s; }
.pos-hoja h4 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 16px; }
.pm-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm { padding: 12px; border-radius: 12px; border: 1px solid #262626; background: #0D0D0D; font-size: 13.5px; font-weight: 500; transition: border-color 200ms, background-color 200ms; }
.pm.sel { border-color: #2F6BFF; background: rgba(47, 107, 255, 0.12); color: #5B8CFF; }
.pm-detalle { color: #A6A6A6; font-size: 12px; max-height: 0; opacity: 0; margin: 0; overflow: hidden; transition: max-height 300ms var(--curva), opacity 300ms ease, margin 300ms ease; }
.pos.con-detalle .pm-detalle { max-height: 40px; opacity: 1; margin-top: 12px; }
.pm-confirmar {
  position: relative; width: 100%; margin-top: 16px; padding: 13px; border-radius: 12px;
  background: #2F6BFF; color: #fff; font-size: 14.5px; font-weight: 600; transition: background-color 250ms ease;
}
.pm-c2 { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; }
.pm-confirmar.ok { background: #059669; }
.pm-confirmar.ok .pm-c1 { opacity: 0; }
.pm-confirmar.ok .pm-c2 { opacity: 1; }

/* Facturar: la pastilla flotante de la caja real */
.pos-pildora {
  position: absolute; left: 50%; bottom: 22px; display: flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 99px; background: #2F6BFF; color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(47,107,255,0.35);
  transform: translate(-50%, 20px); opacity: 0; visibility: hidden;
  transition: transform 400ms var(--curva), opacity 300ms ease, visibility 0s 400ms;
}
.pos.pildora .pos-pildora { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }

/* El asiento llega solo, como una notificación */
.pos-asiento {
  position: absolute; top: 50px; left: 16px; width: 400px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid rgba(47,107,255,0.6); background: #141822; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: translateY(-14px); opacity: 0; visibility: hidden;
  transition: transform 500ms var(--curva), opacity 400ms ease, visibility 0s 500ms;
}
.pos-asiento.on { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.pa-tit { display: flex; align-items: center; gap: 8px; color: #5B8CFF; font-size: 13px; margin-bottom: 8px; }
.pa-fila { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: #A6A6A6; font-size: 12px; border-top: 1px solid #262626; }
.pa-pie { display: flex; justify-content: space-between; padding-top: 8px; margin-top: 4px; border-top: 1px solid #262626; font-size: 12.5px; color: #34D399; }
.pa-pie b { color: #F0F0F0; }
.pos.fuera .pos-cuerpo, .pos.fuera .pos-asiento { opacity: 0; transition: opacity 600ms ease; }

/* El cursor (en celular es un dedo) y la onda del clic */
.pos-cursor {
  position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none;
  transition: transform 800ms cubic-bezier(0.45, 0.05, 0.25, 1), opacity 500ms ease;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.5));
}
.pos-cursor svg { display: block; transition: transform 120ms ease-out; transform-origin: 3px 2px; }
.pos-cursor.baja svg { transform: scale(0.82); }
.pos-cursor.sin-trans { transition: none; }
.pos-onda {
  position: absolute; z-index: 19; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7); pointer-events: none; animation: onda 600ms ease-out forwards;
}
@keyframes onda { to { transform: scale(4.5); opacity: 0; } }

/* ---------- Versión de teléfono ---------- */
.pos-cel { border: 7px solid #1c1c1c; border-radius: 44px; background: #0D0D0D; }
.pos-cel .pos-prods { padding: 44px 12px 8px; flex: 1; }
.pos-cel .pos-busca { padding: 9px 12px; font-size: 12px; }
.pos-cel .pos-grid { grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.pos-cel .pt-img { aspect-ratio: 16 / 9; font-size: 20px; }
.pos-cel .pt-nombre { font-size: 11.5px; padding: 6px 8px 0; min-height: 2.5em; }
.pos-cel .pt-pie { padding: 2px 8px 8px; }
.pos-cel .pt-precio { font-size: 13px; }
.pos-cel .pt-stock { white-space: nowrap; font-size: 9.5px; padding: 1px 4px; }
.pos-cel .pt-pie { flex-wrap: nowrap; }
.pos-cel .pt:nth-child(n+5) { display: none; }
.pos-cel .pos-carrito { width: auto; margin: 0 10px 12px; flex: none; border-radius: 16px; overflow: visible; }
.pos-cel .pc-cab, .pos-cel .pc-items, .pos-cel .pc-iva, .pos-cel .pc-total { display: none; }
.pos-cel .pc-pie { padding: 8px; border: 0; }
.pos-cel .pc-cobrar { padding: 14px; background: #1C1C1C; }
.pos-cel .pc-cobrar.activo { background: #2F6BFF; }
.pos-cel .pc-cobrar-total { display: inline; }
.pos-cel .pos-tecla { display: none; }
.pos-cel .pc-ok { inset: auto 0 0 0; border-radius: 16px; border: 1px solid #262626; padding: 22px 16px 16px; z-index: 3; box-shadow: 0 -20px 50px rgba(0,0,0,0.5); }
.pos-cel .pos-hoja { left: 0; right: 0; top: auto; bottom: 0; width: auto; padding: 20px 16px 22px; border-radius: 22px 22px 0 0; transform: translateY(24px); }
.pos-cel.modal .pos-hoja { transform: none; }
.pos-cel .pos-hoja h4 { font-size: 20px; }
.pos-cel .pos-pildora { bottom: 250px; }
.pos-cel .pos-asiento { top: 38px; left: 12px; right: 12px; width: auto; }
.pos-cel .pos-cursor { transition-duration: 560ms; }
.pos-cel .pos-cursor svg { display: none; }
.pos-cel .pos-cursor::before {
  content: ""; display: block; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: rgba(255,255,255,0.28); border: 2px solid rgba(255,255,255,0.7); transition: transform 120ms ease-out;
}
.pos-cel .pos-cursor.baja::before { transform: scale(0.75); }

.quieto .pos-cursor { display: none; }

@media (max-width: 900px) {
  .gestion-grid { grid-template-columns: 1fr; gap: 28px; }
  .gestion-demo { order: -1; }
  .demo-paso {
    display: block; min-height: 1.2em; margin-bottom: 14px; text-align: center;
    font-size: 26px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1;
  }
  .demo-paso.azul { color: var(--az-xl); }
  .gestion-fila { padding: 8px 0; }
  .gestion-fila h3 { font-size: clamp(30px, 8.6vw, 44px); }
}

/* ============ 7. EL ASIENTO ============ */
.asiento .env {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.trans-etiqueta { display: block; font-size: 13px; color: var(--tx-3); margin-bottom: 12px; }
.trans-frase {
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  min-height: 2.6em;
}
.trans-cursor {
  display: inline-block;
  width: 2px; height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--az);
  animation: titila 1s steps(1) infinite;
}
.transformacion.listo .trans-cursor { animation: none; opacity: 0; }
@keyframes titila { 50% { opacity: 0; } }

.trans-salida {
  margin-top: 32px;
  padding: 24px 26px 20px;
  background: var(--sup);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--curva), transform 700ms var(--curva);
}
.transformacion.listo .trans-salida { opacity: 1; transform: none; }
.trans-tabla { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.trans-tabla th {
  text-align: left; font-weight: 500; font-size: 12.5px; color: var(--tx-3);
  padding: 0 0 10px; border-bottom: 1px solid var(--borde);
}
.trans-tabla th:not(:first-child), .trans-tabla .num { text-align: right; }
.trans-tabla td { padding: 11px 0; border-bottom: 1px solid var(--borde); }
.trans-tabla td.num { padding-left: 16px; white-space: nowrap; }
.trans-tabla tfoot td { border-bottom: 0; font-weight: 600; padding-top: 14px; }
.trans-fila { opacity: 0; transform: translateX(-6px); transition: opacity 400ms ease, transform 500ms var(--curva); }
.trans-fila.visible { opacity: 1; transform: none; }
.trans-pie { margin-top: 14px; font-size: 13px; color: var(--verde); }

@media (max-width: 900px) {
  .asiento .env { grid-template-columns: 1fr; }
  .trans-tabla { font-size: 13px; }
  .trans-salida { padding: 18px 16px 16px; }
}

/* ============ 8. LAS PREGUNTAS ============ */
.secuencia {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(40px, 8vh, 96px);
}
.sec-media {
  grid-column: 2; grid-row: 1;
  position: sticky;
  top: calc(var(--nav-h) + 12vh);
  align-self: start;
}
.sec-pasos { grid-column: 1; grid-row: 1; padding: 6vh 0 22vh; }
.sec-paso {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.28;
  transition: opacity 400ms ease;
}
.sec-paso.activo { opacity: 1; }
.sec-paso h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.sec-paso p { margin-top: 14px; color: var(--tx-2); max-width: 26em; }

@media (max-width: 900px) {
  .secuencia { display: block; }
  .sec-media {
    position: sticky;
    top: var(--nav-h);
    z-index: 2;
    background: var(--bg);
    padding: 12px 0 8px;
    margin: 0 calc(var(--gutter) * -1);
    padding-left: var(--gutter); padding-right: var(--gutter);
  }
  .sec-paso { min-height: 46vh; }
}

/* ============ 9. PROYECCIÓN ============ */
.proyeccion-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 900px) { .proyeccion-grid { grid-template-columns: 1fr; } }

/* ============ 9b. Y ADEMÁS ============
   Una lista, no una grilla de tarjetas con íconos. */
.ademas-lista {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(36px, 6vh, 64px);
  border-bottom: 1px solid var(--borde);
}
.ademas-lista li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--borde);
}
.ademas-lista h3 { font-size: clamp(21px, 1.9vw, 26px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.ademas-lista p { margin-top: 6px; color: var(--tx-3); font-size: 15.5px; line-height: 1.5; max-width: 28em; }
.ademas-cierre { margin-top: 32px; color: var(--tx-2); font-size: 16px; }
.ademas-cierre .enlace { margin-left: 18px; }
.ademas-cierre .enlace:first-of-type { margin-left: 10px; }
.viene-sugerir { margin-top: 32px; color: var(--tx-2); font-size: 16px; }
.viene-sugerir .enlace { margin-left: 10px; }
@media (max-width: 800px) {
  .ademas-lista { grid-template-columns: 1fr; }
  .ademas-lista li:last-child { border-bottom: 0; }
}

/* ============ 10. LA ESCALERA ============
   Como en el pitch: cada paso un poco más corrido a la derecha,
   con el número grande y apagado por detrás. */
.empezar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.empezar-grid .btn { margin-top: 32px; }
.escalera { display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 26px); }
.escalera li {
  position: relative;
  font-size: clamp(28px, 3.3vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.escalera li:nth-child(2) { margin-left: 0.7em; }
.escalera li:nth-child(3) { margin-left: 1.4em; }
.escalera li:nth-child(4) { margin-left: 2.1em; }
.escalera li > span:last-child { position: relative; }
.esc-num {
  position: absolute;
  left: -0.5em; top: 0.1em;
  font-size: 1.55em;
  font-weight: 800;
  line-height: 1;
  color: #333;
}
@media (max-width: 900px) {
  .empezar-grid { grid-template-columns: 1fr; }
  .escalera { padding-left: 0.6em; }
}

/* ============ 11. PLANES ============ */
.planes-cab { text-align: center; display: flex; flex-direction: column; align-items: center; }
.planes-cab .bajada { margin-left: auto; margin-right: auto; }

/* Segmentado con pastilla que se desliza */
.toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 32px;
  padding: 4px;
  background: var(--sup-2);
  border: 1px solid var(--borde);
  border-radius: 999px;
}
.toggle button {
  position: relative; z-index: 1;
  padding: 9px 22px;
  font-size: 14px; font-weight: 600;
  color: var(--tx-2);
  border-radius: 999px;
  transition: color 200ms ease;
}
.toggle button[aria-checked="true"] { color: var(--tx); }
.toggle-pastilla {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: #2E2E2E;
  border-radius: 999px;
  transition: transform 320ms var(--curva);
}
.toggle[data-modo-activo="anual"] .toggle-pastilla { transform: translateX(100%); }
.nota-anual { margin-top: 12px; font-size: 13.5px; color: var(--verde); min-height: 1.5em; }

.planes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  background: var(--sup);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}
.plan.destacado { background: #141822; border-color: rgba(47, 107, 255, 0.55); }
.plan-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan .nombre { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.etiqueta-dest { font-size: 12px; font-weight: 600; color: var(--az-cl); }
.plan .resumen { margin-top: 6px; color: var(--tx-3); font-size: 14.5px; line-height: 1.5; min-height: 3em; }
.bloque-precio { margin-top: 24px; min-height: 118px; }
.antes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.tachado { color: var(--tx-3); text-decoration: line-through; font-size: 14px; }
.ahorro {
  font-size: 12px; font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--verde);
  background: rgba(52, 211, 153, 0.12);
}
.ahorro.promo { color: var(--az-cl); background: rgba(47, 107, 255, 0.14); }
.precio { display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.precio .moneda { font-size: 24px; font-weight: 600; color: var(--tx-2); }
.precio .monto  { font-size: clamp(40px, 3.6vw, 50px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.precio .periodo { font-size: 15px; color: var(--tx-3); margin-left: 4px; }
.precio-nota { margin-top: 8px; font-size: 13px; color: var(--tx-3); }
.features { margin: 22px 0 28px; flex: 1; }
.features li { padding: 9px 0; border-top: 1px solid var(--borde); color: var(--tx-2); font-size: 15px; }
.plan .btn { width: 100%; }

.planes-todos { margin-top: 28px; text-align: center; color: var(--tx-2); font-size: 15px; }
.planes-extra {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.extra {
  flex: 1 1 260px;
  max-width: 380px;
  padding: 18px 22px;
  border: 1px solid var(--borde);
  border-radius: 18px;
}
.extra .nombre { font-weight: 600; font-size: 15px; }
.precio-extra { margin-top: 2px; font-size: 15px; color: var(--tx); }
.extra .detalle { margin-top: 6px; font-size: 14px; color: var(--tx-3); line-height: 1.5; }
.extra-medida { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.extra-medida .detalle { margin-top: 0; color: var(--tx-2); }
.planes-aclaracion { margin-top: 24px; text-align: center; font-size: 13px; color: var(--tx-3); }

@media (max-width: 960px) {
  .planes-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .plan .resumen, .bloque-precio { min-height: 0; }
}

/* ============ 12. LO QUE VIENE ============ */
.viene-lista { margin-top: clamp(40px, 7vh, 80px); }
.viene-lista li {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 24px 48px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--borde);
}
.viene-lista li:last-child { border-bottom: 1px solid var(--borde); }
.viene-marca { font-size: 15px; color: var(--tx-2); margin-bottom: 6px; }
.viene-lista h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.viene-txt { color: var(--tx-2); max-width: 34em; }
.estado {
  font-size: 12.5px; font-weight: 600;
  color: var(--tx-2);
  border: 1px solid var(--borde-2);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .viene-lista li { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .estado { justify-self: start; grid-row: 1; }
}

/* ============ 13. QUIÉN + PREGUNTAS FRECUENTES ============ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(56px, 8vw, 120px);
  align-items: start;
}
.quien { position: sticky; top: calc(var(--nav-h) + 48px); }
.faq-lista { margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--borde); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mas { position: relative; flex: none; width: 14px; height: 14px; }
.faq-mas::before, .faq-mas::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px;
  background: var(--tx-3); border-radius: 2px; transition: transform 260ms var(--curva);
}
.faq-mas::after { transform: rotate(90deg); }
.faq-item[open] .faq-mas::after { transform: rotate(0deg); }
.faq-resp { padding: 0 0 22px; color: var(--tx-2); max-width: 38em; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .quien { position: static; }
}

/* ============ 14. CIERRE Y PIE ============
   Como la última diapositiva: "Simple." en azul, el logo de
   ZContable y la frase. */
.cierre {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--bloque) 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cierre-humo {
  position: absolute;
  left: 50%; top: 50%;
  width: min(1100px, 120vw);
  transform: translate(-50%, -62%);
  opacity: 0.2;
  filter: saturate(1.4);
  z-index: -1;
  pointer-events: none;
}
.cierre-int { display: flex; flex-direction: column; align-items: center; }
.cierre-palabra {
  font-size: clamp(84px, 13vw, 200px);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 0.95;
  color: var(--az-xl);
}
.cierre-logo { width: min(320px, 68vw); margin: clamp(20px, 3vh, 32px) auto clamp(28px, 4vh, 40px); }
.cierre-frase {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}
.cierre .botones { justify-content: center; margin-top: 36px; }
.cierre-contacto {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  margin-top: 28px; font-size: 15px; color: var(--tx-2);
}
.cierre-contacto a:hover { color: var(--tx); }

.pie { border-top: 1px solid var(--borde); padding: 28px 0; font-size: 13.5px; color: var(--tx-3); }
.pie-int { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.pie .marca { color: var(--tx); font-size: 16px; margin-right: auto; }
.pie a:hover { color: var(--tx); }

/* ============ 15. CARTELITO "TE ABRIMOS LA CUENTA" ============
   En escritorio flota al centro; en celular sube desde abajo,
   como una hoja. */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 240ms ease;
}
.overlay.visible { opacity: 1; }
.overlay-hoja {
  position: relative;
  width: min(440px, 100%);
  padding: 34px 30px 28px;
  background: var(--sup);
  border: 1px solid var(--borde);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.98);
  transition: transform 340ms var(--curva);
}
.overlay.visible .overlay-hoja { transform: none; }
.overlay h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.035em; }
.overlay .sub { margin-top: 8px; color: var(--tx-2); font-size: 15.5px; }
.overlay-botones { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.campo {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;      /* 16px evita el zoom automático en iPhone */
  line-height: 1.5;
  color: var(--tx);
  background: var(--bg);
  border: 1px solid var(--borde-2);
  border-radius: 14px;
  resize: vertical;
  min-height: 112px;
}
.campo::placeholder { color: var(--tx-3); }
.campo:focus { outline: 0; border-color: var(--az-cl); }
.campo-aviso { margin-top: 8px; font-size: 13.5px; color: var(--ambar); }
.overlay-ingresar { margin-top: 20px; font-size: 14px; color: var(--tx-3); text-align: center; }
.overlay-ingresar a { color: var(--az-cl); }
.overlay-cerrar {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--tx-2);
  background: var(--sup-2);
}
.overlay-cerrar:hover { color: var(--tx); }
@media (max-width: 600px) {
  .overlay { place-items: end center; padding: 0; }
  .overlay-hoja {
    width: 100%;
    border-radius: 26px 26px 0 0;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
}

/* ============ 16. APARICIONES Y ACCESIBILIDAD ============ */
.rev { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--curva), transform 1000ms var(--curva); }
.rev.visible { opacity: 1; transform: none; }
.rev[data-stagger] { opacity: 1; transform: none; }
.rev[data-stagger] > *, .rev [data-stagger] > * {
  opacity: 0; transform: translateX(-18px);
  transition: opacity 700ms var(--curva), transform 800ms var(--curva);
}
.rev.visible[data-stagger] > *, .rev.visible [data-stagger] > * { opacity: 1; transform: none; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px; background: var(--az); color: #fff; font-weight: 600;
}
.saltar:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--az-cl); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: 999px; }

/* Menos movimiento: nada de parallax ni campo que se vuela.
   "Complejo." queda como una pantalla quieta con la frase arriba. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}
.quieto .hero-capa, .quieto .hero-palabra, .quieto .hero-pie { transform: none; opacity: 1; }
.quieto .complejo { height: auto; }
.quieto .complejo-pin { position: relative; height: auto; min-height: 100svh; display: grid; place-items: center; }
.quieto .jerga { opacity: 0.22; }
.quieto .complejo-palabra { display: none; }
.quieto .complejo-final { position: relative; opacity: 1; visibility: visible; padding: 20vh var(--gutter); }

@media (prefers-reduced-transparency: reduce) {
  .nav.pegado, .menu-movil, .overlay { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
