/* ============================================================
   MapGestión landing — identidad de la app (ESTILO.md + css/shell.css)
   Tema claro de trabajo (#eef3f9 / tarjetas blancas / slate) con acento azul #3b82f6,
   azul marino del login (#0b1020) para hero, CTA y footer. Tipografía única: Inter.
   ============================================================ */
:root {
  color-scheme: light;
  /* Superficies (css/shell.css) */
  --bg: #eef3f9;            /* --sh-body-bg */
  --bg-soft: #f1f5f9;       /* --bg / slate-100 */
  --surface: #ffffff;
  --surface-2: #f8fafc;     /* slate-50: cabeceras de tabla */
  --text: #1e293b;          /* slate-800 */
  --text-strong: #0f172a;   /* slate-900 */
  --muted: #475569;         /* slate-600 (AA sobre #eef3f9) */
  --muted-2: #64748b;       /* slate-500, solo sobre blanco */
  --border: #e2e8f0;
  --border-md: #cbd5e1;
  /* Acento (Blue — ESTILO.md) */
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-strong: #2563eb; /* fondo de botón y links: AA con texto blanco */
  --accent-light: #93c5fd;  /* texto/íconos sobre fondo oscuro */
  --accent-pale: rgba(59, 130, 246, .12);
  /* Marca / login */
  --navy: #0b1020;          /* login.html theme-color y fondo */
  --navy-2: #07111f;        /* --brand-dark (sidebar oscuro) */
  --navy-surface: rgba(15, 23, 42, .94);
  --navy-line: rgba(255, 255, 255, .16);
  /* Estados de unidad (fleet) */
  --st-listo: #10b981;  --st-listo-bg: #dcfce7;  --st-listo-txt: #166534;
  --st-prep: #f59e0b;   --st-prep-bg: #fef9c3;   --st-prep-txt: #854d0e;
  --st-taller: #ef4444; --st-taller-bg: #fee2e2; --st-taller-txt: #991b1b;
  --st-patio: #3b82f6;  --st-patio-bg: rgba(59, 130, 246, .12); --st-patio-txt: #1e40af;
  /* Radios y sombras (ESTILO.md) */
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .16);
  --shadow-dock: 0 10px 30px rgba(23, 42, 71, .16), 0 2px 6px rgba(23, 42, 71, .07);
  --maxw: 1120px;
  --ease: cubic-bezier(.16, 1, .3, 1);          /* expo-out suave (movimiento tipo Apple) */
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
  --nav-clear: 5.5rem;                           /* alto del nav flotante + aire */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], header[id], div[id="anywhere"] { scroll-margin-top: 84px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.material-symbols-outlined { font-size: 24px; line-height: 1; }

.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.section-title {
  font-size: clamp(2rem, 1.1rem + 3.4vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.035em;
  text-align: center;
  line-height: 1.06;
  color: var(--text-strong);
  text-wrap: balance;
}
.section-title .grad { display: block; }
.section-sub {
  color: var(--muted);
  text-align: center;
  margin: 1rem auto 0;
  max-width: 56ch;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}
/* Antes era un degradado; ahora texto en el azul de la app */
.grad { color: var(--accent-strong); }


/* Hero: el H1 (LCP) entra línea por línea SOLO con transform (nunca opacity:0, no retrasa el LCP).
   Marca, descripción y botones sí hacen fade + subida. Todo en CSS: no depende de JS. */
@keyframes heroLine { from { transform: translate3d(0, .6em, 0); } to { transform: none; } }
@keyframes heroFade { from { opacity: 0; transform: translate3d(0, 1.25rem, 0); } to { opacity: 1; transform: none; } }
.hero__line { display: block; animation: heroLine 1.1s var(--ease) both; }
.hero__line:nth-child(1) { animation-delay: .05s; }
.hero__line:nth-child(2) { animation-delay: .14s; }
.hero__line:nth-child(3) { animation-delay: .23s; }
.hero__content .gsap-fade { animation: heroFade 1s var(--ease) both; }
.hero__content .hero__brand { animation-delay: 0s; }
.hero__content .hero__desc { animation-delay: .32s; }
.hero__content .hero__actions { animation-delay: .42s; }

/* Titulares partidos en palabras por app.js (solo con JS y sin reduced-motion) */
.w { display: inline-block; will-change: transform, opacity; }

/* ===== Botones (login "Entrar" / ESTILO.md) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.5rem; border-radius: var(--radius-lg); border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: .875rem; border-radius: var(--radius-md); font-weight: 600; }
.btn--lg { min-height: 52px; padding: 0 2rem; font-size: 1rem; }
.btn--primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
}
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-md);
}
.btn:active { transform: scale(.98); }
@media (hover: hover) {
  .btn--primary:hover { background: #1d4ed8; box-shadow: 0 6px 18px rgba(37, 99, 235, .34); }
  .btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
}
/* Variante sobre fondo oscuro (hero / CTA) */
.hero .btn--ghost,
.cta .btn--ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: var(--navy-line);
}
@media (hover: hover) {
  .hero .btn--ghost:hover,
  .cta .btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255,255,255,.3); }
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Nav — como el header de la app (claro, borde suave) ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: .75rem 1rem 0;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  width: min(100%, var(--maxw));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .6rem .5rem 1rem;
  border-radius: var(--radius-xl);
  background: rgba(242, 246, 251, .92);       /* --sh-header-bg */
  border: 1px solid rgba(113, 131, 156, .18);  /* --sh-header-border */
  box-shadow: var(--shadow-dock);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
/* El logo es blanco (para fondo oscuro): sobre claro se invierte conservando el tono azul */
.nav__brand img,
.nav__drawerHead img { height: 26px; width: auto; filter: invert(1) hue-rotate(180deg) brightness(.3) saturate(1.6); }
.nav__links { display: none; white-space: nowrap; gap: 1.5rem; color: var(--muted); font-size: .875rem; font-weight: 600; }
.nav__links a { padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav__links a:hover { color: var(--text-strong); border-bottom-color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }

.nav__menuBtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 auto;
  background: transparent; border: 0; border-radius: var(--radius-md);
  color: var(--text); cursor: pointer;
}
.nav__menuBtn:hover { background: rgba(255, 255, 255, .7); }
.nav__menuBtn .material-symbols-outlined { font-size: 24px; }

/* Drawer móvil — como el sidebar claro de la app */
.nav__overlay {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(15, 23, 42, .45);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.nav__overlay.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.nav__drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 70;
  width: min(300px, 84vw);
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1rem 1rem 1.5rem;
  background: #eaf1fb;                          /* --sh-sidebar-bg */
  border-right: 1px solid rgba(113, 131, 156, .18);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s linear .3s;
  overflow-y: auto;
}
.nav__drawer.is-open { transform: translateX(0); visibility: visible; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.nav__drawerHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.nav__drawer > a {
  display: block; padding: .75rem .75rem;
  font-size: 1rem; font-weight: 600; color: #263148;  /* --sh-sidebar-strong */
  border-radius: var(--radius-lg);
}
.nav__drawer > a:hover { background: rgba(255, 255, 255, .7); color: var(--accent-strong); }
.nav__drawerActions { display: grid; gap: .5rem; margin-top: 1.25rem; }
html.menu-open { overflow: hidden; }

@media (min-width: 1000px) {
  .nav__menuBtn { display: none; }
  .nav__links { display: flex; }
  .nav__drawer, .nav__overlay { display: none; }
}
@media (max-width: 380px) {
  .nav__pill { gap: .5rem; padding-left: .5rem; }
  .nav__actions .btn--sm { padding: 0 .75rem; font-size: .8125rem; }
}

/* ============================================================
   §1 Hero — foto + velo azul marino del login
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  justify-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: #f8fafc;
  padding-top: var(--nav-clear);   /* el texto nunca queda bajo el nav (320×568, 844×390) */
}
.hero__media { position: absolute; inset: -6% 0 -4%; z-index: 0; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__media img.hero__img--index { object-position: center 50%; }
@media (max-height: 520px) {
  .hero__scroll { display: none; }
  .hero__desc { margin: .75rem 0 1rem; }
}
@media (max-width: 700px) {
  .hero__media img.hero__img--index { object-position: 50% 42%; }
  .hero__content { width: min(100% - 2rem, 100%); margin: 0 1rem clamp(1rem, 4svh, 1.5rem) auto; padding: 0; text-align: left; }
  .hero__title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .32) 0%, rgba(11, 16, 32, .12) 38%, rgba(11, 16, 32, .6) 70%, rgba(11, 16, 32, .9) 100%),
    linear-gradient(250deg, rgba(11, 16, 32, .8) 0%, rgba(11, 16, 32, .35) 30%, transparent 56%);
}
.hero__content { position: relative; z-index: 2; width: min(100% - 2rem, 500px); margin: 0 1.25rem clamp(1.25rem, 7svh, 3.5rem) auto; text-align: left; will-change: transform, opacity; }
@media (min-width: 900px) {
  .hero__content { width: min(42vw, 560px); margin: 0 max(1.5rem, calc((100% - var(--maxw)) / 2)) clamp(1.5rem, 9svh, 4.5rem) auto; }
}
.hero__brand {
  display: inline-flex; align-items: center;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #dbeafe;
  background: rgba(59, 130, 246, .22);
  border: 1px solid rgba(147, 197, 253, .35);
  padding: .3rem .75rem; border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.hero__title .grad { color: var(--accent-light); }
.hero__desc { color: #cbd5e1; margin: 1rem 0 1.75rem; max-width: 42ch; font-size: 1.0625rem; }
.hero__next { display: block; margin-top: .5rem; font-size: .9375rem; color: #bfdbfe; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__scroll {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 2px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-lg); z-index: 2;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
  background: #fff; border-radius: 2px; transform: translateX(-50%);
  animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 50% { opacity: 1; } 100% { opacity: 0; top: 20px; } }

/* ============================================================
   §2 Historia (chat → Excel → tabla MapGestión)
   ============================================================ */
.story { position: relative; z-index: 1; padding: 0 0 2rem; background: var(--bg); }
.chaos { position: relative; z-index: 1; overflow: visible; }
/* Modo por defecto (sin JS, reduced-motion, pantallas bajas): las 3 escenas en columna, cada una con su título. */
.chaos__pin { position: relative; padding: clamp(4.5rem, 10svh, 6.75rem) 0 clamp(1.5rem, 5svh, 2.5rem); background: var(--bg); }
.chaos__head {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  width: 100%; margin: 0 0 clamp(1rem, 3svh, 1.5rem); padding: 0 1rem; position: relative; z-index: 3;
}
.chaos__cap {
  text-align: center; font-weight: 700;
  font-size: clamp(1.4rem, 1rem + 2.2vw, 2.6rem);
  letter-spacing: -.025em; color: var(--text-strong);
  max-width: 42rem; line-height: 1.2;
}
.chaos__sub {
  text-align: center; color: var(--muted);
  font-size: clamp(.9375rem, .85rem + .4vw, 1.0625rem);
  max-width: 36rem; line-height: 1.45;
}
.chaos__stage {
  position: relative; width: min(100% - 2rem, 1100px); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: clamp(2.5rem, 7svh, 4rem);
}
.chaos__layer { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.chaos__label { text-align: center; padding: 0 .5rem; }
.chaos__label h3 { font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--text-strong); }
.chaos__label p { color: var(--muted); margin-top: .35rem; }
.chaos__table .mgtable { width: 100%; }

/* Modo escena fija (app.js añade .is-pinned solo si cabe: alto ≥ 600px y sin reduced-motion).
   Las 3 capas comparten la misma celda de grid: el escenario mide lo que la capa más alta (sin huecos). */
.chaos.is-pinned .chaos__pin {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--nav-clear) 0 clamp(1rem, 4svh, 2.5rem);
}
.chaos.is-pinned .chaos__cap { min-height: 2.4em; display: flex; align-items: flex-end; justify-content: center; }
.chaos.is-pinned .chaos__sub { min-height: 2.9em; }
.chaos.is-pinned .chaos__head { will-change: transform, opacity; }
.chaos.is-pinned .chaos__stage { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.chaos.is-pinned .chaos__layer { grid-area: 1 / 1; min-width: 0; will-change: transform, opacity; }
.chaos.is-pinned .chaos__label { display: none; }
/* Pantallas grandes (1920+, 2560): la escena crece con la pantalla en vez de quedar diminuta */
@media (min-width: 1800px) and (min-height: 1000px) { .chaos.is-pinned .chaos__stage { zoom: 1.2; } }
@media (min-width: 2400px) and (min-height: 1300px) { .chaos.is-pinned .chaos__stage { zoom: 1.4; } }


@media (max-width: 767px) {
  .chaos__table .mgtable { font-size: .8125rem; }
  .mgtable__grid { font-size: .78rem; }
  .mgtable__grid th, .mgtable__grid td { padding: .45rem .4rem; }
}
@media (max-width: 420px) {
  .xls { font-size: .6875rem; }
  .xls__grid { table-layout: fixed; }
  .xls__grid th, .xls__grid td { padding: .3rem .3rem; overflow-wrap: anywhere; }
  .xls__grid thead th:first-child, .xls__grid tbody th { width: 1.5rem; }
}

/* Excel */
.xls {
  width: min(100%, 780px); margin: 0 auto;
  background: #fff; color: #1f2937; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border-md);
  box-shadow: var(--shadow-lg); font-size: .8125rem;
}
.xls__bar { background: #e5e7eb; padding: .5rem .75rem; display: flex; align-items: center; gap: .4rem; color: #4b5563; font-size: .75rem; }
.xls__bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.xls__grid { width: 100%; border-collapse: collapse; }
.xls__grid th, .xls__grid td { border: 1px solid #e5e7eb; padding: .4rem .6rem; text-align: left; }
.xls__grid thead th { background: #f3f4f6; color: #4b5563; font-weight: 600; }
.xls__grid tbody th { background: #f3f4f6; color: #4b5563; font-weight: 600; text-align: center; width: 2rem; }

/* Tabla MapGestión — como Cuadre / Gestión de flota */
.mgtable {
  width: 100%; max-width: none; margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mgtable__toolbar { display: flex; flex-wrap: wrap; gap: .75rem; padding: 1rem; border-bottom: 1px solid var(--border); }
.mgtable__search {
  display: flex; align-items: center; gap: .5rem; flex: 1 1 240px;
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: var(--radius-md); padding: 0 .75rem; min-height: 40px; color: var(--muted-2);
}
.mgtable__search .material-symbols-outlined { font-size: 20px; }
.mgtable__search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 500 .875rem 'Inter', sans-serif; }
.mgtable__search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-pale); }
.mgtable__filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.mgchip {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 32px; padding: 0 .75rem; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font: 600 .75rem/1 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .03em; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.mgchip:hover { border-color: var(--border-md); color: var(--text-strong); }
.mgchip.is-active { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.mgdot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mgtable__body { overflow-x: auto; overscroll-behavior-x: contain; }
.mgtable__grid { width: 100%; border-collapse: collapse; font-size: .875rem; }
.mgtable__grid th {
  background: var(--surface-2);
  text-align: left; padding: .75rem .875rem; color: var(--muted);
  font-weight: 600; font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.mgtable__grid td { padding: .75rem .875rem; border-top: 1px solid var(--border); white-space: nowrap; color: var(--text); font-weight: 500; }
.mgtable__grid tbody tr:hover { background: var(--surface-2); }
.mg-mva { color: var(--text-strong); font-weight: 700; }
.mg-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; color: var(--text); }
.mg-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.mgtable__foot { padding: .75rem 1rem; color: var(--muted); font-size: .8125rem; border-top: 1px solid var(--border); background: var(--surface-2); }
.mgtable__empty td { text-align: center; color: var(--muted); padding: 2rem; }
.mgsel {
  display: block; margin-top: .35rem; max-width: 150px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-md);
  border-radius: var(--radius-md); padding: .25rem .4rem;
  font: 600 .6875rem 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .03em; cursor: pointer;
}
.mgsel:focus { outline: none; border-color: var(--accent); }
.mg-fuel-lbl { display: inline-flex; min-width: 1.75rem; justify-content: center; padding: .1rem .35rem; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--accent-strong); font-weight: 700; font-variant-numeric: tabular-nums; }
.mg-km { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.mg-note { max-width: 16rem; color: var(--muted); font-size: .8125rem; white-space: normal; text-transform: uppercase; font-weight: 600; }
.mg-note-empty { color: var(--muted-2); }
.mg-sort { display: inline-flex; align-items: center; gap: .2rem; background: none; border: 0; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; }
.mg-sort:hover { color: var(--text-strong); }
.mg-sort__ic { font-size: 16px; opacity: .6; }
.mg-sort[data-dir="1"] .mg-sort__ic,
.mg-sort[data-dir="-1"] .mg-sort__ic { opacity: 1; color: var(--accent-strong); }

/* Mapa con unidades animadas (colores de estado de la app) */
.map-sim { container-type: inline-size; position: relative; margin: 0 auto; max-width: 960px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-md); box-shadow: var(--shadow-lg); background: #1e293b; }
.map-sim__img { width: 100%; display: block; }
.map-sim__layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.spot {
  position: absolute; left: var(--x); top: var(--y);
  width: 6%; height: 15.6%;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  padding: 2px 1px;
  font: 700 min(1.3cqi, 12px)/1.05 'Inter', sans-serif;   /* escala con el ancho del mapa */
  color: #fff; text-align: center; letter-spacing: -.02em;
  background: var(--c);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  transform: translate(-50%, -50%);
  will-change: transform, opacity; pointer-events: none;
}
.map-sim__legend {
  position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: .4rem .875rem;
  background: rgba(255, 255, 255, .95); color: var(--text);
  padding: .4rem .75rem; border-radius: var(--radius-md); font-size: .75rem; font-weight: 600;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); z-index: 2;
}
.map-sim__legend span { display: inline-flex; align-items: center; gap: .35rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--avail { background: var(--st-listo); } .dot--prep { background: var(--st-prep); }
.dot--patio { background: var(--st-patio); } .dot--taller { background: var(--st-taller); }
@media (max-width: 600px) {
  .map-sim__legend { font-size: .6875rem; left: 8px; bottom: 8px; }
}
/* ============================================================
   §7b Preguntas frecuentes
   ============================================================ */
.faq { padding-block: clamp(4.5rem, 9vw, 7.5rem); background: var(--bg); }
.faq__list { display: grid; gap: .75rem; max-width: 780px; margin-inline: auto; }
.faq__item { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; font-weight: 600; color: var(--text-strong); cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }

/* ============================================================
   §8 CTA + formulario — azul marino del login
   ============================================================ */
.cta { padding-block: clamp(4.5rem, 9vw, 7.5rem); background: var(--navy); color: #f8fafc; }
.cta__inner { text-align: center; max-width: 720px; }
.cta__inner h2 { font-size: clamp(2rem, 1.1rem + 3.4vw, 3.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; color: #fff; text-wrap: balance; }
.cta__inner h2 .grad { display: block; color: var(--accent-light); }
.cta__inner > p { color: #cbd5e1; margin: .75rem auto 0; max-width: 44ch; }
.cform { text-align: left; margin-top: 2rem; display: grid; gap: 1rem; padding: 1.5rem; border-radius: var(--radius-xl); background: var(--navy-surface); border: 1px solid var(--navy-line); }
.cform__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .cform__row { grid-template-columns: 1fr 1fr; } }
.cform__field { display: grid; gap: .375rem; font-size: .8125rem; color: #cbd5e1; font-weight: 600; }
.cform__field input,
.cform__field select,
.cform__field textarea {
  width: 100%; min-height: 48px; padding: .75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-line);
  background: rgba(255, 255, 255, .04);
  color: #f8fafc; font: 400 1rem 'Inter', sans-serif;
}
.cform__field input::placeholder,
.cform__field textarea::placeholder { color: #94a3b8; }
.cform__field input:focus,
.cform__field select:focus,
.cform__field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); outline: none; }
.cform__field textarea { min-height: 96px; resize: vertical; }
.cform__field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.cform__field select option { color: #0f172a; }
.cform .btn { width: 100%; margin-top: .25rem; }
.cform__status { min-height: 1.4em; font-size: .875rem; text-align: center; }
.cform__status.ok { color: #6ee7b7; }
.cform__status.err { color: #fca5a5; }
.cform__alt { margin-top: 1.25rem; color: #cbd5e1; font-size: .9375rem; }
.cform__alt a { color: var(--accent-light); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   §9 Footer — sidebar oscuro de la app
   ============================================================ */
.foot { padding: 2.5rem 0 2rem; background: var(--navy-2); color: rgba(255, 255, 255, .82); border-top: 1px solid rgba(255, 255, 255, .08); }
.foot__inner { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.foot__logo { height: 26px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; color: rgba(255, 255, 255, .78); font-size: .875rem; }
.foot__links a:hover { color: #fff; }
.foot__copy { width: min(100% - 2rem, var(--maxw)); margin: 1.5rem auto 0; color: rgba(255, 255, 255, .6); font-size: .8125rem; }
@media (min-width: 720px) { .foot__inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ============================================================
   v3 — estructura común de secciones
   ============================================================ */
.skip { position: absolute; left: 1rem; top: -120px; z-index: 100; background: var(--accent-strong); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-md); font-weight: 600; }
.skip:focus { top: 1rem; }

.ops, .ia, .vf, .net, .sec, .how { position: relative; z-index: 2; padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.ops { background: var(--surface); }
.ia { background: var(--bg); }
.vf { background: var(--surface); }
.sec { background: var(--bg); }
.how { background: var(--surface); }
.shead { text-align: center; margin: 0 auto clamp(2.25rem, 5vw, 4rem); max-width: 60rem; }
.shead--compact { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.eyebrow {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .45rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 1rem;
}
.eyebrow .material-symbols-outlined { font-size: 20px; }
.eyebrow--dark { color: var(--accent-light); }

/* Badges de estado: "Próximamente" (código listo) y "En desarrollo" (plan) */
.soon {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 .6rem;
  border-radius: var(--radius-full); font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #1e40af; background: var(--accent-pale); border: 1px solid rgba(59, 130, 246, .25); vertical-align: middle; white-space: nowrap;
}
.soon--dev { color: #92400e; background: #fef3c7; border-color: #fde68a; }
.soon--dark { color: #fde68a; background: rgba(245, 158, 11, .14); border-color: rgba(253, 230, 138, .35); }

/* Etiquetas de la UI (colores sobrios del plan: neutral, verde, ámbar, rojo, azul) */
.tag {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 .6rem; border-radius: var(--radius-full);
  font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent;
}
.tag--ok { background: #dcfce7; color: #166534; }
.tag--rev { background: #fef3c7; color: #92400e; }
.tag--no { background: #fee2e2; color: #991b1b; }
.tag--info { background: #dbeafe; color: #1e40af; }
.tag--neutral { background: #f1f5f9; color: #334155; border-color: var(--border); }

.tick { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; transition: background-color .3s ease, border-color .3s ease; }
.tick--ok { background: var(--st-listo); }
.tick--ok::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.tick--warn { background: var(--st-prep); }
.tick--warn::after { content: "!"; color: #fff; font: 700 12px/1 'Inter', sans-serif; }
.tick--na { border: 2px solid #94a3b8; }
.tick--na::after { content: ""; width: 8px; height: 2px; border-radius: 2px; background: #94a3b8; }
.tick--wait { border: 2px solid var(--border-md); border-top-color: var(--accent); background: transparent; animation: spin .8s linear infinite; }
.tick--wait::after { content: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Carrusel deslizable (rail): scroll-snap nativo; app.js añade chips/flechas
   ============================================================ */
.rail { position: relative; --gutter: max(1rem, calc((100% - var(--maxw)) / 2)); }
.rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: clamp(3.5rem, 8vw, 6rem); margin-bottom: 1rem; }
.rail__title { font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; color: var(--text-strong); }
.rail__arrows { display: none; gap: .5rem; flex: 0 0 auto; }
.rail__arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border-md); background: var(--surface); color: var(--text);
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.rail__arrow:hover { border-color: var(--accent); color: var(--accent-strong); }
.rail__arrow:disabled { opacity: .35; cursor: default; }
.rail__nav { display: none; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .25rem 0 1rem; }
.rail__nav::-webkit-scrollbar { display: none; }
.rail--ready .rail__nav { display: flex; }
@media (min-width: 700px) { .rail--ready .rail__arrows { display: flex; } }
.rail__chip {
  flex: 0 0 auto; min-height: 40px; padding: 0 1rem; border-radius: var(--radius-full); cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font: 600 .875rem/1 'Inter', sans-serif; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.rail__chip:hover { color: var(--text-strong); border-color: var(--border-md); }
.rail__chip[aria-current="true"] { background: var(--text-strong); border-color: var(--text-strong); color: #fff; }
.rail__track {
  display: flex; gap: clamp(.75rem, 2vw, 1.5rem);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { flex: 0 0 auto; scroll-snap-align: start; }
.rail__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* Carruseles a sangre: el primer elemento se alinea con el contenedor */
.rail--shots .rail__track,
.rail__track--scenes { padding: .5rem var(--gutter) 1.5rem; scroll-padding-inline: var(--gutter); }

/* Pantallas del sistema */
.shot { width: min(88vw, 820px); margin: 0; }
.shot__frame {
  display: flex; flex-direction: column; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-soft); box-shadow: var(--shadow-md);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.shot__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #eef2f7; border-bottom: 1px solid var(--border); flex: none; }
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.shot__bar i:nth-child(1) { background: #f87171; } .shot__bar i:nth-child(2) { background: #fbbf24; } .shot__bar i:nth-child(3) { background: #34d399; }
.shot__bar::after { content: 'app.mapgestion.com'; margin: 0 auto; padding: 2px 14px; border-radius: var(--radius-full); background: #fff; font-size: .6875rem; font-weight: 500; color: var(--muted); transform: translateX(-21px); }
.shot__frame picture { display: block; aspect-ratio: 3 / 2; }
.shot__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.shot figcaption { display: grid; gap: .2rem; padding: 1rem .25rem 0; max-width: 60ch; }
.shot strong { font-size: 1.0625rem; font-weight: 700; color: var(--text-strong); }
.shot span { color: var(--muted); font-size: .9375rem; }
.rail--ready .shot:not(.is-active) .shot__frame { opacity: .55; transform: scale(.965); }

/* Desde donde sea */
.anywhere { padding-top: clamp(4rem, 9vw, 7rem); }
.anywhere__title { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--text-strong); }
.scene { width: min(72vw, 340px); border-radius: var(--radius-xl); overflow: hidden; background: var(--bg); border: 1px solid var(--border); }
.scene__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-soft); }
.scene__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.scene__copy { padding: 1rem 1.15rem 1.25rem; }
.scene__copy h3 { font-size: 1.125rem; font-weight: 700; color: var(--text-strong); margin-bottom: .2rem; }
.scene__copy p { color: var(--muted); font-size: .9375rem; }
@media (min-width: 1000px) {
  .rail__track--scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .scene { width: auto; }
}
.specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); column-gap: 2.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.specs li { display: flex; align-items: center; gap: .75rem; padding: .9rem 0; border-top: 1px solid var(--border); font-weight: 600; color: var(--text-strong); }
.specs .material-symbols-outlined { color: var(--accent-strong); font-size: 22px; }

/* ============================================================
   IA — usos rápidos (carrusel en móvil; historia con scroll en escritorio)
   ============================================================ */
.qu__nav { justify-content: flex-start; }
.qu__list { margin-inline: -1rem; padding: .25rem 1rem 1.25rem; scroll-padding-inline: 1rem; }
.qu__step {
  width: min(84vw, 380px); display: flex; flex-direction: column; gap: .75rem;
  padding: 1.25rem; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm);
}
.qu__where { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.qu__where .material-symbols-outlined { font-size: 18px; color: var(--accent-strong); }
.qu__prompt { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--text-strong); }
.qu__answer { margin-top: auto; }
.qu__stage { display: none; }
@media (min-width: 1000px) {
  .qu__nav { display: none !important; }
  .qu__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .qu__step { width: auto; }
}
/* Modo historia (app.js: escritorio con alto suficiente y sin reduced-motion) */
.qu.is-story .qu__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.qu.is-story .qu__list { display: block; }
.qu.is-story .qu__step { background: none; border: 0; box-shadow: none; padding: 0; min-height: 46vh; justify-content: center; }
.qu.is-story .qu__prompt { font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem); letter-spacing: -.03em; color: var(--muted-2); transition: color .5s var(--ease); }
.qu.is-story .qu__step.is-active .qu__prompt { color: var(--text-strong); }
.qu.is-story .qu__answer { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qu.is-story .qu__stage {
  display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(50vh - 12rem);
  min-height: 25rem; padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: 28px;
  background: #0b1020; border: 1px solid #1e293b; box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .45);
}
.qu__cards { display: grid; flex: 1; align-items: end; }
.qu__cards > * { grid-area: 1 / 1; opacity: 0; transform: translate3d(0, 1.25rem, 0) scale(.98); transition: opacity .55s var(--ease), transform .8s var(--ease); }
.qu__cards > .is-active { opacity: 1; transform: none; }
.qu__input {
  display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: 0 .5rem 0 1rem; border-radius: var(--radius-full);
  background: #0f172a; border: 1px solid rgba(255, 255, 255, .14); color: #e2e8f0; font-size: .9375rem; font-weight: 500;
}
.qu__input span:first-child { color: #94a3b8; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qu__input .material-symbols-outlined { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-size: 18px; }

.aicard { border-radius: var(--radius-lg); padding: 1rem; background: #0f172a; border: 1px solid #1e293b; color: #e2e8f0; }
.qu__stage .aicard { background: #111a2e; }
.qu__bar { display: flex; align-items: center; gap: .4rem; padding-bottom: .9rem; border-bottom: 1px solid #1e293b; font-size: .8125rem; color: #cbd5e1; }
.qu__bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.qu__bar b { margin-left: .5rem; font-weight: 600; color: #f1f5f9; }
.qu__bar span { margin-left: auto; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #93c5fd; white-space: nowrap; }
.qu__turn { display: flex; flex-direction: column; gap: .75rem; }
.qu__bubble { align-self: flex-end; max-width: 85%; padding: .6rem .9rem; border-radius: 18px 18px 4px 18px; background: var(--accent-strong); color: #fff; font-size: .9375rem; font-weight: 500; }
.aicard__who { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: #93c5fd; margin-bottom: .5rem; }
.aicard__who .material-symbols-outlined { font-size: 18px; color: #38bdf8; }
.aicard__text { font-size: .9375rem; line-height: 1.5; color: #f1f5f9; }
.aicard__text b { color: #fff; }
.aicard__facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.aicard__facts div { flex: 1 1 auto; background: #1e293b; border-radius: var(--radius-md); padding: .5rem .6rem; min-width: 0; }
.aicard__facts dt { font-size: .6875rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.aicard__facts dd { font-size: .8125rem; font-weight: 600; color: #f1f5f9; white-space: nowrap; }
.aicard__facts .tag { padding: 0 .4rem; }
.aicard__log { display: flex; align-items: flex-start; gap: .4rem; margin-top: .75rem; font-size: .8125rem; line-height: 1.45; color: #cbd5e1; }
.aicard__log .material-symbols-outlined { font-size: 18px; color: #93c5fd; }
.aicard__bars { display: flex; gap: 2px; height: 10px; margin-top: .75rem; border-radius: var(--radius-full); overflow: hidden; }
.aicard__bars i { width: var(--w); background: var(--c); }
.aicard__checks li { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: .875rem; color: #e2e8f0; }
.aicard__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .8125rem; color: #cbd5e1; }

.rules { display: grid; gap: 0 2.5rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.rules li { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem 0; border-top: 1px solid var(--border-md); color: var(--muted); font-size: .9375rem; }
.rules b { color: var(--text-strong); }
.rules .material-symbols-outlined { color: var(--accent-strong); font-size: 22px; }
@media (min-width: 800px) { .rules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ============================================================
   Clientes y verificación 110 (mock en HTML/CSS)
   ============================================================ */
.flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; max-width: 1000px; margin: 0 auto clamp(2.25rem, 5vw, 3.5rem); }
@media (min-width: 800px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow li { position: relative; display: flex; flex-direction: column; gap: .15rem; padding-top: 1rem; border-top: 2px solid var(--border); }
.flow li::before { content: ""; position: absolute; left: 0; top: -2px; width: 2.5rem; height: 2px; background: var(--accent-strong); }
.flow__n { font-size: .75rem; font-weight: 700; color: var(--accent-strong); }
.flow b { color: var(--text-strong); font-size: 1rem; }
.flow li > span:last-child { color: var(--muted); font-size: .875rem; }

.vfapp {
  max-width: 1080px; margin: 0 auto; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-md); border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .28), var(--shadow-md);
}
.vfapp__bar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: .875rem; color: var(--text-strong); }
.vfapp__bar em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.vfapp__dots, .code__dots { display: inline-flex; gap: 6px; }
.vfapp__dots i, .code__dots i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.vfapp__dots i:nth-child(2), .code__dots i:nth-child(2) { background: #fbbf24; }
.vfapp__dots i:nth-child(3), .code__dots i:nth-child(3) { background: #34d399; }
.vfapp__body { display: grid; grid-template-columns: minmax(0, 1fr); }
.vfapp__capture, .vfapp__run, .vfapp__result { padding: clamp(1rem, 2.5vw, 1.5rem); border-bottom: 1px solid var(--border); min-width: 0; }
@media (min-width: 700px) and (max-width: 1019px) {
  .vfapp__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vfapp__capture { border-right: 1px solid var(--border); }
  .vfapp__result { grid-column: 1 / -1; }
}
@media (min-width: 1020px) {
  .vfapp__body { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.25fr); }
  .vfapp__capture, .vfapp__run { border-right: 1px solid var(--border); border-bottom: 0; }
  .vfapp__result { border-bottom: 0; }
}
.vfapp__label { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .75rem; }
.vfapp__scan {
  display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; margin-bottom: 1rem;
  border: 1.5px dashed var(--accent); border-radius: var(--radius-lg); background: rgba(59, 130, 246, .06);
  color: var(--accent-strong); font-weight: 600; font-size: .9375rem;
}
.vfapp__fields { display: grid; gap: .5rem; }
@media (max-width: 999px) {
  .vfapp__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vfapp__fields div:first-child { grid-column: 1 / -1; }
  .checks li { padding: .45rem 0; }
}
.vfapp__fields div { display: grid; gap: .1rem; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius-md); }
.vfapp__fields dt { font-size: .6875rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.vfapp__fields dd { font-size: .9375rem; font-weight: 600; color: var(--text-strong); }
.vfapp__purpose { display: flex; align-items: center; gap: .4rem; margin-top: .75rem; font-size: .8125rem; color: var(--muted); }
.vfapp__purpose .material-symbols-outlined { font-size: 18px; color: var(--muted-2); }
.checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .65rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--border); }
.checks li:first-child { border-top: 0; }
.checks li > span:nth-child(2) { font-size: .875rem; font-weight: 600; color: var(--text-strong); }
.checks em { grid-column: 2; font-style: normal; font-size: .8125rem; color: var(--muted); }
.vfapp__seg { gap: .25rem; padding: .25rem; border-radius: var(--radius-lg); background: var(--bg-soft); }
.vfapp__seg .rail__chip { min-height: 34px; padding: 0 .75rem; border: 0; background: transparent; font-size: .8125rem; }
.vfapp__seg .rail__chip[aria-current="true"] { background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow-sm); }
.vfapp__states { margin-top: .5rem; gap: 1rem; }
.state { flex: 0 0 100%; width: 100%; padding: 1rem 1.1rem; border-radius: var(--radius-lg); border: 1px solid var(--border); border-left-width: 4px; background: var(--surface); }
.state--ok { border-left-color: var(--st-listo); }
.state--rev { border-left-color: var(--st-prep); }
.state--no { border-left-color: var(--st-taller); }
.state h3 { margin: .6rem 0 .15rem; font-size: 1.125rem; font-weight: 700; color: var(--text-strong); }
.state__meta { font-size: .875rem; color: var(--muted); }
.state__meta b { color: var(--text-strong); }
.match { margin: .75rem 0; }
.match li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--border); font-size: .875rem; }
.match span { color: var(--muted); }
.match b { color: var(--text-strong); font-weight: 600; text-align: right; }
.match b.no { color: var(--text); font-weight: 500; }
.match b.na { color: var(--muted); font-weight: 500; }
.state__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.fakebtn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9rem; border-radius: var(--radius-md); border: 1px solid var(--border-md); font-size: .8125rem; font-weight: 600; color: var(--text); background: var(--surface); }
.fakebtn--primary { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.state__note { margin-top: .75rem; font-size: .8125rem; color: var(--muted); }
.vfapp__foot { padding: .6rem 1rem; border-top: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: .75rem; text-align: center; }

.vfcards { margin-top: clamp(2.5rem, 6vw, 4rem); }
.vfcards__track { margin-inline: -1rem; padding: .25rem 1rem 1rem; scroll-padding-inline: 1rem; }
.vfcard { width: min(84vw, 360px); display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; border-radius: 20px; background: var(--bg); border: 1px solid var(--border); }
.vfcard h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; color: var(--text-strong); }
.vfcard > p { color: var(--muted); font-size: .9375rem; }
@media (min-width: 1000px) {
  .vfcards__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .vfcard { width: auto; }
}
.cust, .kv, .tl { margin-top: auto; padding: 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.cust__head { display: flex; align-items: center; gap: .75rem; }
.cust__head strong { display: block; color: var(--text-strong); }
.cust__head strong + span { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
.cust__av { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-strong); color: #fff; font-weight: 700; font-size: .875rem; }
.cust__stats { margin: .75rem 0 .6rem; font-size: .8125rem; color: var(--muted-2); }
.cust__prefs { display: flex; flex-wrap: wrap; gap: .35rem; }
.cust__prefs li { padding: .2rem .6rem; border-radius: var(--radius-full); background: var(--bg-soft); font-size: .75rem; font-weight: 600; color: var(--text); }
.levels { display: flex; flex-wrap: wrap; gap: .4rem; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .875rem; }
.kv div + div { border-top: 1px solid var(--border); }
.kv dt { color: var(--muted-2); }
.kv dd { font-weight: 600; color: var(--text-strong); }
.tl li { position: relative; padding: .45rem 0 .45rem 1.1rem; font-size: .875rem; color: var(--text); }
.tl li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tl time { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }

/* ============================================================
   Red entre arrendadoras / API (fondo azul marino)
   ============================================================ */
.net { background: var(--navy); color: #e2e8f0; overflow: hidden; }
.net .section-title { color: #fff; }
.net .section-title .grad { color: var(--accent-light); }
.net .section-sub { color: #cbd5e1; }
.net__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1000px) { .net__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3.5rem; } }
.netmap { margin: 0; }
.netmap__svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; overflow: visible; }
.netmap__lines path { stroke: rgba(148, 163, 184, .35); }
.netmap__pulses path { stroke: var(--accent-light); stroke-dasharray: 16 220; stroke-dashoffset: 236; opacity: 0; }
.netmap__nodes circle { fill: #0f172a; stroke: rgba(147, 197, 253, .55); stroke-width: 2; }
.netmap__nodes .netmap__hub { fill: var(--accent-strong); stroke: #93c5fd; }
.netmap__labels text { fill: #cbd5e1; font: 600 11px 'Inter', sans-serif; }
.netmap__labels text:nth-child(-n+2) { fill: #fff; font-size: 10px; }
.netmap__ini text { fill: #e2e8f0; font: 700 12px 'Inter', sans-serif; }
.netmap__nodes circle:last-child { stroke: #34d399; }
.netmap figcaption { max-width: 42ch; margin: .75rem auto 0; text-align: center; font-size: .875rem; color: #cbd5e1; }
@media (prefers-reduced-motion: no-preference) {
  .netmap__pulses path { opacity: 1; animation: netPulse 3.6s var(--ease) infinite; }
  .netmap__pulses path:nth-child(2) { animation-delay: .9s; }
  .netmap__pulses path:nth-child(3) { animation-delay: 1.8s; }
  .netmap__pulses path:nth-child(4) { animation-delay: 2.7s; }
}
@keyframes netPulse { 0% { stroke-dashoffset: 236; opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

.code { min-width: 0; border-radius: 16px; overflow: hidden; background: #0f172a; border: 1px solid #1e293b; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.code__bar { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; border-bottom: 1px solid #1e293b; color: #cbd5e1; font: 600 .8125rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code__pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; color: #e2e8f0; font: 500 clamp(.72rem, .68rem + .2vw, .8125rem)/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }
.code__pre:focus-visible { outline: 2px solid var(--accent-light); outline-offset: -2px; }
.c-k { color: #93c5fd; } .c-s { color: #86efac; } .c-n { color: #fca5a5; } .c-c { color: #94a3b8; }
.code__foot { padding: .6rem 1rem; border-top: 1px solid #1e293b; color: #94a3b8; font-size: .75rem; }

.guard { display: grid; column-gap: 2.5rem; margin-top: clamp(3rem, 7vw, 5rem); counter-reset: g; }
@media (min-width: 700px) { .guard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .guard { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guard li { counter-increment: g; display: grid; gap: .3rem; align-content: start; padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.guard li::before { content: counter(g, decimal-leading-zero); font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--accent-light); }
.guard b { color: #fff; font-size: 1.0625rem; }
.guard:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
@media (max-width: 699px) {
  .guard {
    display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -1rem; padding: .25rem 1rem 1rem; scroll-padding-inline: 1rem;
  }
  .guard::-webkit-scrollbar { display: none; }
  .guard li { flex: 0 0 min(80%, 300px); scroll-snap-align: start; padding: 1.25rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); }
}
.guard span { color: #cbd5e1; font-size: .9375rem; }
.pipe {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  margin-top: clamp(2rem, 5vw, 3rem); padding: 1.25rem 1.5rem; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
}
.pipe__title { font-weight: 700; color: #fff; }
.pipe__steps { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pipe__steps li + li::before { content: "→"; margin-right: .5rem; color: #94a3b8; }
.pipe__alt { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .875rem; color: #cbd5e1; }
.net__note { margin-top: 1.5rem; text-align: center; font-size: .875rem; color: #94a3b8; }

/* ============================================================
   Seguridad y privacidad
   ============================================================ */
.sec__grid { display: grid; gap: 1.25rem; max-width: 1040px; margin: 0 auto; }
@media (min-width: 800px) { .sec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sec__col { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.sec__col h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: 1.1875rem; font-weight: 700; color: var(--text-strong); }
.checklist li { position: relative; padding: .7rem 0 .7rem 1.75rem; border-top: 1px solid var(--border); font-size: .9375rem; color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: .3rem; top: 1rem; width: 6px; height: 11px; border: solid var(--st-listo); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sec__col--dev .checklist li::before { border-color: var(--accent); }
.mask { display: inline-flex; margin-left: .35rem; padding: .05rem .45rem; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); font: 600 .75rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }

/* ============================================================
   Implementación — línea de tiempo
   ============================================================ */
.how__steps { display: grid; gap: 0 2rem; max-width: 1040px; margin: 0 auto; }
@media (min-width: 600px) { .how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .how__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.how__steps li { position: relative; padding: 1.25rem 0; border-top: 2px solid var(--border); }
.how__steps li::before { content: ""; position: absolute; left: 0; top: -2px; width: 2.5rem; height: 2px; background: var(--accent-strong); }
.how__n { display: block; margin-bottom: .4rem; font-size: .8125rem; font-weight: 700; color: var(--accent-strong); }
.how__steps h3 { margin-bottom: .25rem; font-size: 1.125rem; font-weight: 700; color: var(--text-strong); }
.how__steps p { color: var(--muted); font-size: .9375rem; }

/* ============================================================
   Barra de acción fija en móvil
   ============================================================ */
.mbar {
  position: fixed; left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 45;
  display: none; gap: .5rem; padding: .5rem; border-radius: var(--radius-xl);
  background: rgba(242, 246, 251, .95); border: 1px solid rgba(113, 131, 156, .2); box-shadow: var(--shadow-dock);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translate3d(0, calc(100% + 1.5rem), 0); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.mbar.is-on { transform: none; visibility: visible; transition: transform .5s var(--ease); }
.mbar .btn { flex: 1 1 auto; min-height: 48px; }
.mbar .mbar__wa { flex: 0 0 auto; padding: 0 1rem; }
.mbar__wa .material-symbols-outlined { font-size: 20px; }
@media (max-width: 999px) {
  .mbar { display: flex; }
  .foot { padding-bottom: 6.5rem; }
}

/* Elevación al pasar el mouse. Usa `translate` (independiente del `transform` que anima GSAP). */
.scene, .vfcard, .sec__col, .qu__step, .shot__frame {
  transition: translate .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease), opacity .6s var(--ease), transform .6s var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .scene:hover, .vfcard:hover, .sec__col:hover, .qu:not(.is-story) .qu__step:hover { translate: 0 -4px; box-shadow: var(--shadow-md); border-color: var(--border-md); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__content .gsap-fade, .hero__line { animation: none; }
  .wa__typing span, .hero__scroll span, .tick--wait, .radio__led, .radio__wave i { animation: none; }
    .rail--ready .shot:not(.is-active) .shot__frame { transform: none; }
  .mbar, .qu__cards > * { transition: none; }
}

/* Móvil horizontal / pantallas bajas: la barra fija tapaba demasiado */
@media (max-height: 500px) { .mbar { display: none; } }
/* Hero en móvil: el titular pasa sobre partes claras de la foto */
@media (max-width: 767px) { .hero__title { text-shadow: 0 2px 18px rgba(11, 16, 32, .65); } }
/* Reserva el espacio del pin de #producto antes de que app.js lo cree (misma media query que `pinnable`).
   Sin esto, en el primer layout las capturas quedan a <2500px del pliegue y Chrome descarga sus imágenes
   lazy compitiendo con la fuente del h1 (LCP). app.js agrega .is-pinned y el pin-spacer toma su lugar. */
@media (prefers-reduced-motion: no-preference) and (min-height: 600px) {
  .js .chaos:not(.is-pinned) { padding-bottom: 360vh; }
}
/* Hero escritorio: dos líneas limpias ("Del patio al mostrador." / "Todo desde el celular.") */
@media (min-width: 900px) {
  .hero__content { width: min(48vw, 800px); }
  .hero__title { font-size: clamp(2.4rem, .5rem + 3.6vw, 4.5rem); }
  .hero__line { white-space: nowrap; }
}

/* ============================================================
   v4 — enlaces "Conoce más", mapa, celular, decisión 110, red corta
   ============================================================ */
.more {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; font-weight: 600; color: var(--accent-strong);
  text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .35); text-underline-offset: 4px;
}
.more .material-symbols-outlined { font-size: 18px; transition: translate .3s var(--ease); }
@media (hover: hover) { .more:hover { text-decoration-color: currentColor; } .more:hover .material-symbols-outlined { translate: 3px 0; } }
.more:focus-visible, .toc a:focus-visible, .faq__chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.btn .material-symbols-outlined { font-size: 20px; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
@media (hover: hover) { .btn--light:hover { background: #e0ecff; color: var(--navy); } }

.map-sim { max-width: 860px; background: #0a131f; }
.map-sim img { display: block; width: 100%; height: auto; }
.map-sim__legend { position: static; border-radius: 0; border: 0; border-top: 1px solid var(--border); box-shadow: none; padding: .65rem 1rem; justify-content: center; }
.map-sim__hint { color: var(--muted); font-weight: 500; }
@media (max-width: 600px) { .map-sim__hint { display: none; } .map-sim__legend { font-size: .75rem; } }

.shot__frame picture { aspect-ratio: 768 / 525; }
.shot--wide .shot__frame picture { aspect-ratio: auto; }
.shot--wide { width: min(88vw, 900px); }

/* Celular */
.rail__head--sm { margin-top: clamp(2.5rem, 6vw, 4rem); }
.rail--phones .rail__track, .rail__track--phones { padding: .5rem var(--gutter) 1.5rem; scroll-padding-inline: var(--gutter); }
.phone { width: min(58vw, 232px); margin: 0; }
.phone__frame { border-radius: 30px; overflow: hidden; border: 6px solid #0f172a; background: #0f172a; box-shadow: var(--shadow-lg); aspect-ratio: 390 / 844; }
.phone__frame img { width: 100%; height: 100%; object-fit: cover; }
.phone figcaption { display: grid; gap: .1rem; padding: .8rem .25rem 0; }
.phone strong { color: var(--text-strong); font-weight: 700; }
.phone span { color: var(--muted); font-size: .9375rem; }
@media (min-width: 1000px) {
  .rail__track--phones { display: grid; grid-template-columns: repeat(4, minmax(0, 232px)); justify-content: space-between; overflow: visible; max-width: var(--maxw); margin-inline: auto; padding-inline: 1rem; }
  .phone { width: auto; }
}

/* 110: cierre corto en la home */
.vf__decide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; max-width: 1080px; margin: clamp(2rem, 5vw, 3rem) auto 0; padding: 1.25rem 1.5rem; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.vf__decideTxt { display: flex; align-items: flex-start; gap: .75rem; flex: 1 1 22rem; color: var(--muted); }
.vf__decideTxt b { color: var(--text-strong); }
.vf__decideTxt .material-symbols-outlined { color: var(--accent-strong); font-size: 24px; margin-top: .1rem; }

/* Red corta */
.net__side { display: grid; gap: 1.5rem; justify-items: start; align-content: center; }
.net__points { display: grid; gap: .25rem; width: 100%; }
.net__points li { position: relative; padding: .8rem 0 .8rem 1.9rem; border-top: 1px solid rgba(255, 255, 255, .14); color: #cbd5e1; }
.net__points li::before { content: ""; position: absolute; left: .35rem; top: 1.05rem; width: 6px; height: 11px; border: solid var(--accent-light); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.net__points b { color: #fff; }
@media (max-width: 999px) { .net__side { justify-items: stretch; } .net__side .btn { white-space: normal; text-align: center; min-height: 52px; } }
.sec__col .more { margin-top: .75rem; }

/* ============================================================
   Pie: "Iniciar sesión" como enlace pequeño al final
   ============================================================ */
.foot__sep { margin-inline: .35rem; opacity: .6; }
.foot__login { display: inline-block; padding: .65rem .35rem; color: rgba(255, 255, 255, .78); text-decoration: underline; text-underline-offset: 3px; }
.foot__login:hover { color: #fff; }
.foot__login:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }

/* ============================================================
   FAQ animada (details nativo; sin JS abre y cierra igual, con JS anima)
   ============================================================ */
.faq__filters { display: none; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 780px; margin: 0 auto 1.5rem; }
.faq--ready .faq__filters { display: flex; }
.faq__chip {
  min-height: 44px; padding: 0 1.1rem; border-radius: var(--radius-full); cursor: pointer;
  border: 1px solid var(--border-md); background: var(--surface); color: var(--muted); font: 600 .875rem/1 'Inter', sans-serif;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.faq__chip:hover { color: var(--text-strong); border-color: var(--accent); }
.faq__chip[aria-pressed="true"] { background: var(--text-strong); border-color: var(--text-strong); color: #fff; }
.faq__item { position: relative; overflow: hidden; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.faq__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.faq__item[open]::before { transform: scaleY(1); }
.faq__item[open] { border-color: rgba(59, 130, 246, .45); box-shadow: var(--shadow-md); }
.faq__item summary { min-height: 56px; }
.faq__item summary:hover .faq__q { color: var(--accent-strong); }
.faq__q { flex: 1 1 auto; transition: color .3s var(--ease); }
.faq__item[open] .faq__q { color: var(--accent-strong); }
/* Ícono +/−: la barra vertical gira y se desvanece */
.faq__icon { position: relative; flex: 0 0 auto; width: 24px; height: 24px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--muted-2); transition: transform .4s var(--ease), background-color .3s var(--ease), opacity .3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--accent-strong); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); opacity: 0; }
.faq__item[open] .faq__icon::before { transform: rotate(180deg); }
.faq__a { overflow: hidden; }
.faq__aIn { padding: 0 1.25rem 1.125rem; display: grid; gap: .25rem; justify-items: start; }
.faq__aIn p { padding: 0; color: var(--muted); }
.faq__foot { max-width: 780px; margin: 1.25rem auto 0; text-align: center; color: var(--muted); }
.faq__item[hidden] { display: none; }
/* Entrada escalonada al llegar a la sección (solo con JS y movimiento permitido) */
@media (prefers-reduced-motion: no-preference) {
  .faq--ready .faq__item:not(.is-in) { opacity: 0; transform: translateY(16px); }
  .faq--ready .faq__item { transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); transition-delay: calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms), 0s, 0s; }
  .faq--ready .faq__item.is-in.is-settled { transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) { .faq__item::before, .faq__icon::before, .faq__icon::after { transition: none; } }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-lg); }
.faq__item.is-closing::before { transform: scaleY(0); }
.faq__item.is-closing { border-color: var(--border); box-shadow: var(--shadow-sm); }
.faq__item.is-closing .faq__q { color: var(--text-strong); }
.faq__item.is-closing .faq__icon::before, .faq__item.is-closing .faq__icon::after { background: var(--muted-2); }
.faq__item.is-closing .faq__icon::after { transform: rotate(90deg); opacity: 1; }
.faq__item.is-closing .faq__icon::before { transform: none; }
.vf__decide .btn { white-space: normal; text-align: center; height: auto; padding-block: .6rem; }
@media (max-width: 699px) { .vf__decide .btn { width: 100%; } }
.cform__alt a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .25rem; }

/* Objetivos táctiles ≥44px */
.nav__menuBtn { width: 44px; height: 44px; }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; }
.hero__scroll { min-width: 44px; min-height: 44px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
.vfapp__seg .rail__chip { min-height: 44px; }
.rx-crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.rail__nav .rail__chip { min-height: 44px; }
@media (pointer: coarse) { .nav__links a { display: inline-flex; align-items: center; min-height: 44px; } }
.vfapp__seg .rail__chip, .vfapp .rail__nav .rail__chip { min-height: 44px; }
@media (max-width: 999px), (pointer: coarse) { .nav__actions .btn--sm { min-height: 44px; } }
@media (pointer: coarse) { .toc a { min-height: 44px; } }

/* ============================================================
   Resumen extendido (resumen-extendido.html)
   ============================================================ */
.rx-hero { position: relative; padding: calc(var(--nav-clear) + clamp(1.5rem, 4vw, 3rem)) 0 clamp(2rem, 5vw, 3.5rem); background: var(--navy); color: #e2e8f0; }
.rx-hero__in { display: grid; gap: 1rem; max-width: 60rem; }
.rx-crumbs { display: flex; gap: .5rem; align-items: center; font-size: .875rem; color: #cbd5e1; }
.rx-crumbs a { text-decoration: underline; text-underline-offset: 3px; padding: .5rem 0; }
.rx-hero h1 { font-size: clamp(2.25rem, 1.2rem + 4vw, 4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: #fff; }
.rx-hero__sub { max-width: 46rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: #cbd5e1; }
.rx-legend { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: .5rem; }
.rx-legend li { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: #cbd5e1; }

/* Etiquetas de estado */
.st { display: inline-flex; align-items: center; min-height: 24px; padding: 0 .65rem; border-radius: var(--radius-full); font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; }
.st--hoy { color: #166534; background: #dcfce7; border-color: #bbf7d0; }
.st--soon { color: #1e40af; background: #dbeafe; border-color: #bfdbfe; }
.st--dev { color: #92400e; background: #fef3c7; border-color: #fde68a; }

.rx { background: var(--bg); padding-top: clamp(2rem, 5vw, 3.5rem); }
.rx-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.rx-layout > * { min-width: 0; }
@media (min-width: 1000px) { .rx-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; } }

/* Índice pegajoso */
.rx-toc { position: sticky; top: 4.75rem; z-index: 5; align-self: start; }
.rx-toc__t { display: none; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.toc { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .5rem; margin-inline: -.5rem; border-radius: var(--radius-xl); background: rgba(242, 246, 251, .94); border: 1px solid rgba(113, 131, 156, .18); box-shadow: var(--shadow-dock); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); scroll-snap-type: x proximity; }
.toc::-webkit-scrollbar { display: none; }
.toc li { flex: 0 0 auto; scroll-snap-align: start; }
.toc a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border-radius: var(--radius-full); font-size: .875rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease); }
.toc a span { font-size: .6875rem; color: var(--muted); font-weight: 700; }
.toc a:hover { color: var(--text-strong); background: rgba(255, 255, 255, .8); }
.toc a[aria-current="true"] { background: var(--text-strong); color: #fff; }
.toc a[aria-current="true"] span { color: #93c5fd; }
@media (min-width: 1000px) {
  .rx-toc { top: 6rem; max-height: calc(100vh - 7rem); overflow-y: auto; }
  .rx-toc__t { display: block; }
  .toc { display: grid; gap: 0; padding: .35rem; margin: 0; overflow: visible; background: var(--surface); box-shadow: var(--shadow-sm); border-color: var(--border); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .toc a { display: flex; width: 100%; border-radius: var(--radius-md); white-space: normal; min-height: 40px; }
}
@media (max-width: 999px) { .rx-toc { margin-inline: 0; } }
.rx-chap, .rx-cta { scroll-margin-top: 7.5rem; }
@media (min-width: 1000px) { .rx-chap { scroll-margin-top: 6rem; } }

.rx-body { min-width: 0; display: grid; gap: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.rx-chap { min-width: 0; padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 2px solid var(--border-md); position: relative; }
.rx-chap::before { content: ""; position: absolute; left: 0; top: -2px; width: 3rem; height: 2px; background: var(--accent-strong); }
.rx-chap__h { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.rx-chap__n { font-size: .8125rem; font-weight: 700; color: var(--accent-strong); letter-spacing: .06em; }
.rx-chap h2 { font-size: clamp(1.625rem, 1.1rem + 2vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; color: var(--text-strong); text-wrap: balance; flex: 1 1 14rem; }
.rx-lead { margin-top: .75rem; max-width: 46rem; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); color: var(--muted); }
.rx-chap > * + * { margin-top: clamp(1.25rem, 3vw, 2rem); }
.rx-chap > .rx-lead { margin-top: .75rem; }
.rx-h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); font-weight: 700; letter-spacing: -.02em; color: var(--text-strong); margin-top: clamp(2rem, 5vw, 3rem) !important; scroll-margin-top: 7.5rem; }
.rx-body h3 { color: var(--text-strong); }

.rx-split { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 760px) { .rx-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; } .rx-split--rev .rx-split__t { order: 2; } .rx-split--flat { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.rx-split__t { display: grid; gap: .9rem; min-width: 0; }
.rx-split__t p { color: var(--text); }
.rx-split__t h3 { font-size: 1.25rem; font-weight: 700; }
.rx-split__f { min-width: 0; }
.rx-split .shot { width: 100%; }
.rx-split .shot figcaption { padding-top: .6rem; }
.rx-list { display: grid; gap: .2rem; }
.rx-list li { position: relative; padding: .45rem 0 .45rem 1.5rem; color: var(--text); }
.rx-list li::before { content: ""; position: absolute; left: .25rem; top: 1rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rx-list--wide { max-width: 52rem; }
.rx-list--dark li { color: #cbd5e1; } .rx-list--dark b { color: #fff; }

/* En palabras simples */
.simple { padding: 1rem 1.15rem; border-radius: var(--radius-lg); background: #eff6ff; border: 1px solid #bfdbfe; border-left: 4px solid var(--accent); }
.simple__t { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1e40af; margin-bottom: .25rem; }
.simple__t .material-symbols-outlined { font-size: 18px; }
.simple p:last-child { color: #1e293b; }

.rx-tiles { display: grid; gap: 1rem; }
@media (min-width: 760px) { .rx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rx-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rx-tile { padding: 1.25rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--border-md); display: grid; gap: .6rem; align-content: start; }
.rx-tile--hoy { border-top-color: var(--st-listo); } .rx-tile--soon { border-top-color: var(--accent); } .rx-tile--dev { border-top-color: var(--st-prep); }
.rx-tile h3 { font-size: 1.125rem; font-weight: 700; }
.rx-tile p { color: var(--muted); }
.rx-mini li { position: relative; padding: .25rem 0 .25rem 1.2rem; color: var(--text); font-size: .9375rem; }
.rx-mini li::before { content: ""; position: absolute; left: .1rem; top: .75rem; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }

.rx-cards { display: grid; gap: 1rem; }
@media (min-width: 640px) { .rx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .rx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rx-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rx-card { padding: 1.25rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: .5rem; align-content: start; }
.rx-card .material-symbols-outlined { color: var(--accent-strong); font-size: 26px; }
.rx-card h3 { font-size: 1.0625rem; font-weight: 700; }
.rx-card p { color: var(--muted); font-size: .9375rem; }
.rx-callout { padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 1rem; }
.rx-callout--soft { background: #f8fafc; }
.rx-callout h3 { font-size: 1.1875rem; font-weight: 700; }
.rx-2col { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .rx-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
.rx-k { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rx-k--ok { color: #166534; } .rx-k--no { color: #991b1b; }
.rx-note { color: var(--muted); font-size: .9375rem; }
.rx-note b { color: var(--text-strong); }
.rx-dl div { display: grid; gap: .15rem; padding: .7rem 0; border-top: 1px solid var(--border); }
@media (min-width: 700px) { .rx-dl div { grid-template-columns: 14rem minmax(0, 1fr); gap: 1rem; } }
.rx-dl dt { font-weight: 700; color: var(--text-strong); } .rx-dl dd { color: var(--muted); }

.rx-steps { display: grid; gap: 0; counter-reset: s; max-width: 52rem; }
.rx-step { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--border-md); }
.rx-step__n { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent-strong); color: #fff; font-weight: 700; font-size: .9375rem; }
.rx-step h4 { font-size: 1.0625rem; font-weight: 700; color: var(--text-strong); }
.rx-step p { color: var(--muted); }
.rx-results { display: grid; gap: 1rem; }
@media (min-width: 800px) { .rx-results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rx-res { padding: 1.1rem 1.15rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border-md); display: grid; gap: .5rem; align-content: start; }
.rx-res--ok { border-left-color: var(--st-listo); } .rx-res--rev { border-left-color: var(--st-prep); } .rx-res--no { border-left-color: var(--st-taller); }
.rx-res p:last-child { color: var(--muted); }
.rx-res .tag { white-space: normal; min-height: 24px; height: auto; padding-block: .2rem; }
.rx-life { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.rx-life li + li::before { content: "→"; margin-right: .5rem; color: var(--muted-2); }
.rx-life-alt { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--muted); font-size: .9375rem; }
.rx-table { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.rx-table:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rx-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9375rem; }
.rx-table th, .rx-table td { text-align: left; padding: .8rem 1rem; border-top: 1px solid var(--border); vertical-align: top; }
.rx-table thead th { border-top: 0; background: var(--surface-2); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.rx-table tbody th { font-weight: 600; color: var(--text-strong); }
.rx-table td { color: var(--muted); }

.rx-phones { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.rx-phones .phone { width: min(44vw, 200px); }
@media (min-width: 900px) { .rx-phones .phone { width: 210px; } }
.rx-split .phone { margin-inline: auto; }

.rx-flow { margin: 0; padding: 1.25rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.rx-flow__row { display: grid; gap: .75rem; }
@media (min-width: 900px) { .rx-flow__row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rx-flow__row li { position: relative; display: grid; gap: .2rem; align-content: start; justify-items: start; padding: .9rem 1rem; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--border); }
.rx-flow__row li .material-symbols-outlined { color: var(--accent-strong); }
.rx-flow__row b { color: var(--text-strong); } .rx-flow__row small { color: var(--muted); font-size: .8125rem; }
.rx-flow__row code { font: 600 .8125rem ui-monospace, Menlo, Consolas, monospace; color: var(--text-strong); }
@media (min-width: 900px) { .rx-flow__row li:not(:last-child)::after { content: "→"; position: absolute; right: -.95rem; top: 50%; translate: 0 -50%; color: var(--muted-2); z-index: 1; } }
.rx-flow figcaption { margin-top: .9rem; color: var(--muted); font-size: .875rem; }
.rx-dark { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 24px; background: var(--navy); color: #e2e8f0; display: grid; gap: 1.5rem; min-width: 0; }
.rx-dark > * + * { margin-top: 0; }
.rx-dark h3 { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.rx-dark p { color: #cbd5e1; }
.rx-dark code { font: 600 .875em ui-monospace, Menlo, Consolas, monospace; color: #93c5fd; }
.rx-dark__grid { display: grid; gap: 1.5rem; min-width: 0; }
@media (min-width: 900px) { .rx-dark__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; } }
.rx-dark__h { margin-top: .5rem; }
.rx-dark__note { color: #94a3b8 !important; font-size: .875rem; }
.guard--rx { margin-top: 0; }
.rx-how { margin-inline: 0; max-width: none; }

.rx-gl { display: grid; gap: 0 2.5rem; }
@media (min-width: 800px) { .rx-gl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rx-gl div { display: grid; gap: .2rem; padding: .9rem 0; border-top: 1px solid var(--border-md); align-content: start; }
.rx-gl dt { font-weight: 700; color: var(--text-strong); }
.rx-gl dd { color: var(--muted); font-size: .9375rem; }
.faq--rx { background: transparent; padding-block: clamp(1.5rem, 3vw, 2rem) 0; }
.faq--rx .faq__list { max-width: none; margin-inline: 0; }
.faq--rx .faq__foot { margin-inline: 0; text-align: left; }
.rx-cta { padding-block: clamp(3rem, 7vw, 5rem); text-align: center; }
.rx-cta .cta__inner { text-align: center; }
.rx-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.nav__links a[aria-current="page"], .foot__links a[aria-current="page"] { color: var(--text-strong); border-bottom-color: var(--accent); }
.foot__links a[aria-current="page"] { color: #fff; }
@media (max-width: 699px) { .rx-cta__btns .btn { width: 100%; white-space: normal; } }

/* ============================================================
   v5 — más visual, menos texto
   ============================================================ */

/* ---- Barra de progreso del recorrido ---- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .progress { display: none; } }

/* ---- Resumen en 3 segundos ---- */
.s3 {
  position: relative; overflow: hidden; max-width: 860px; margin: calc(-1 * clamp(1rem, 2.5vw, 2rem)) auto clamp(2rem, 4vw, 3rem);
  padding: 1rem 1.25rem 1.1rem; border-radius: 16px; background: var(--bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); text-align: left;
}
.ia .s3, .sec .s3 { background: var(--surface); }
.s3__k { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .6875rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-strong); }
.s3__k .material-symbols-outlined { font-size: 18px; }
.s3__t { margin-top: .2rem; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--text-strong); }
.s3__l { display: flex; flex-wrap: wrap; gap: .5rem .5rem; margin-top: .8rem; }
.s3__l li { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: 0 .8rem 0 .6rem; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--border-md); font-size: .875rem; font-weight: 600; color: var(--text); }
.ia .s3__l li, .sec .s3__l li { background: var(--bg); }
.s3__l .material-symbols-outlined { font-size: 20px; color: var(--accent-strong); }
.s3__bar { position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .js .s3__bar { animation: s3bar 1.4s var(--ease) both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
}
@keyframes s3bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.s3--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.s3--dark .s3__k { color: var(--accent-light); }
.s3--dark .s3__t { color: #fff; }
.s3--dark .s3__l li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #e2e8f0; }
.s3--dark .s3__l .material-symbols-outlined { color: var(--accent-light); }
.s3--dark .s3__bar { background: var(--accent-light); }
.more-row { margin-top: 1rem; text-align: center; }
.rules li { align-items: center; }
.rules li > span:last-child { font-size: 1rem; }
.how__n { display: flex; align-items: center; gap: .5rem; }
.how__n .material-symbols-outlined { font-size: 22px; }

/* ---- Chat + radio (el "antes") ---- */
.comm { display: grid; gap: 1rem; width: 100%; justify-items: center; align-items: center; }
@media (min-width: 900px) { .comm { grid-template-columns: minmax(0, 390px) minmax(0, 350px); justify-content: center; gap: 2.25rem; } }
.wa {
  position: relative; width: min(100%, 390px); border-radius: 20px; overflow: hidden; background: #efeae2;
  border: 1px solid var(--border-md); box-shadow: var(--shadow-lg);
}
.wa__head { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; background: #1f2c34; border-bottom: 0; }
.wa__head > div { min-width: 0; flex: 1; }
.wa__av { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #3b82f6; color: #fff; font-weight: 700; font-size: .9375rem; }
.wa__head strong { display: block; font-size: .875rem; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa__head em { display: block; font-style: normal; font-size: .75rem; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa__badge { flex: 0 0 auto; padding: .15rem .5rem; border-radius: var(--radius-full); background: #fde68a; color: #78350f; font-size: .625rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.wa__thread {
  padding: .85rem .75rem .9rem; display: flex; flex-direction: column; gap: .4rem; min-height: 0;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(120, 100, 70, .08) 1px, transparent 1.2px); background-size: 14px 14px;
}
.wa__bubble {
  position: relative; max-width: 84%; padding: .4rem .65rem .3rem; border-radius: 10px; font-size: .875rem; line-height: 1.35; font-weight: 500;
  color: #111b21; box-shadow: 0 1px 1px rgba(11, 20, 26, .14); overflow-wrap: anywhere;
}
.wa__bubble--in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; border: 0; }
.wa__bubble--out { align-self: flex-end; background: #d9fdd3; color: #111b21; border-top-right-radius: 2px; }
.wa__who { display: block; font-size: .75rem; font-weight: 700; line-height: 1.2; }
.wa__who--1 { color: #0f766e; } .wa__who--2 { color: #6d28d9; } .wa__who--3 { color: #b45309; }
.wa__bubble time { display: inline-flex; align-items: center; gap: 2px; float: right; margin: .35rem 0 0 .6rem; font-size: .625rem; font-weight: 500; color: #475569; }
.wa__bubble time .material-symbols-outlined { font-size: 14px; color: #0369a1; }
.wa__typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: .5rem .75rem; border-radius: var(--radius-full); background: #fff; box-shadow: 0 1px 1px rgba(11, 20, 26, .14); }
.wa__typing span { width: 6px; height: 6px; border-radius: 50%; background: #64748b; animation: waDot 1.2s infinite ease-in-out; }
.wa__typing span:nth-child(2) { animation-delay: .15s; }
.wa__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes waDot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
/* Bubbles en zigzag (se contradicen): dos se resaltan */
.wa__bubble--flag::after { content: ""; position: absolute; inset: -2px; border-radius: 12px; border: 2px solid #ef4444; opacity: .0; pointer-events: none; }

.radio { display: flex; align-items: stretch; gap: .9rem; width: min(100%, 350px); padding: .9rem; border-radius: 20px; background: #0f172a; border: 1px solid #1e293b; box-shadow: var(--shadow-lg); }
.radio__set { position: relative; flex: 0 0 auto; width: 64px; padding-top: 22px; }
.radio__ant { position: absolute; top: 0; right: 10px; width: 8px; height: 28px; border-radius: 4px 4px 0 0; background: #334155; }
.radio__body { position: relative; height: 128px; border-radius: 14px; background: linear-gradient(160deg, #334155, #1e293b); border: 1px solid #475569; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 8px; }
.radio__led { position: absolute; top: 6px; left: 8px; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.radio__lcd { margin-top: 8px; width: 100%; padding: 3px 0; border-radius: 4px; background: #a7f3d0; color: #064e3b; font: 700 11px/1 ui-monospace, Menlo, Consolas, monospace; text-align: center; letter-spacing: .05em; }
.radio__grille { width: 100%; flex: 1; border-radius: 6px; background: repeating-linear-gradient(0deg, #0f172a 0 2px, transparent 2px 6px); opacity: .85; }
.radio__ptt { position: absolute; left: -5px; top: 44px; width: 6px; height: 34px; border-radius: 3px 0 0 3px; background: #ef4444; }
.radio__log { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .45rem; }
.radio__hd { display: flex; align-items: center; gap: .4rem; font-size: .6875rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #93c5fd; }
.radio__hd .material-symbols-outlined { font-size: 18px; }
.radio__msg { padding: .35rem .6rem; border-left: 3px solid #64748b; border-radius: 0 8px 8px 0; background: #1e293b; color: #e2e8f0; font: 500 .8125rem/1.35 ui-monospace, Menlo, Consolas, 'DejaVu Sans Mono', monospace; }
.radio__msg--b { border-left-color: #f59e0b; margin-left: .75rem; }
.radio__wave { display: flex; align-items: center; gap: 3px; height: 22px; margin-top: auto; }
.radio__wave i { flex: 1; max-width: 6px; min-height: 4px; border-radius: 3px; background: #38bdf8; opacity: .8; }
.radio__wave i:nth-child(1) { height: 30%; } .radio__wave i:nth-child(2) { height: 70%; } .radio__wave i:nth-child(3) { height: 45%; } .radio__wave i:nth-child(4) { height: 95%; }
.radio__wave i:nth-child(5) { height: 55%; } .radio__wave i:nth-child(6) { height: 80%; } .radio__wave i:nth-child(7) { height: 35%; } .radio__wave i:nth-child(8) { height: 60%; }
@media (prefers-reduced-motion: no-preference) {
  .radio__led { animation: ledBlink 1.6s ease-in-out infinite; }
  .radio__wave i { transform-origin: 50% 50%; animation: wave 1.1s ease-in-out infinite; }
  .radio__wave i:nth-child(2n) { animation-delay: .18s; } .radio__wave i:nth-child(3n) { animation-delay: .4s; }
}
@keyframes ledBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@media (max-width: 899px) {
  .radio { width: min(100%, 390px); padding: .7rem; gap: .7rem; }
  .radio__set { width: 48px; padding-top: 16px; }
  .radio__body { height: 84px; padding: 6px; gap: 4px; }
  .radio__ant { height: 20px; width: 6px; right: 8px; }
  .radio__lcd { margin-top: 6px; font-size: 9px; }
  .radio__ptt { top: 30px; height: 24px; }
  .radio__msg--c, .radio__wave { display: none; }
}

/* ---- Sistema viejo (ejemplo ilustrativo, sin marca) vs MapGestión ---- */
.cmp__side { margin: 0; display: grid; gap: .8rem; justify-items: center; width: 100%; }
.cmp__tag { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; padding: .3rem .8rem; border-radius: var(--radius-full); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cmp__tag span { padding: .1rem .5rem; border-radius: var(--radius-full); font-size: .6875rem; letter-spacing: .03em; }
.cmp__tag--old { background: #334155; color: #fff; }
.cmp__tag--old span { background: #fde68a; color: #78350f; }
.cmp__tag--new { background: var(--accent-strong); color: #fff; }
.cmp__tag--new span { background: rgba(15, 23, 42, .4); color: #fff; }
.lgc {
  width: min(100%, 520px); background: #c0c0c0; color: #000; border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 1px 1px 0 #000, var(--shadow-lg);
  font: 400 12px/1.25 Tahoma, Verdana, 'DejaVu Sans', sans-serif; text-align: left;
}
.lgc__title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 3px 4px 3px 6px; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-weight: 700; }
.lgc__title > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgc__btns { display: inline-flex; gap: 2px; }
.lgc__btns i { width: 16px; height: 14px; display: grid; place-items: center; font: 700 10px/1 Tahoma, sans-serif; font-style: normal; background: #c0c0c0; color: #000; border: 1px solid; border-color: #fff #404040 #404040 #fff; }
.lgc__menu { display: flex; gap: 12px; padding: 2px 6px; border-bottom: 1px solid #808080; }
.lgc__form { display: grid; gap: 5px; padding: 8px; }
.lgc__row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lgc__lb { flex: 0 0 auto; min-width: 58px; }
.lgc__row .lgc__lb + .lgc__in + .lgc__lb { min-width: 0; }
.lgc__in { flex: 1 1 auto; min-width: 0; padding: 2px 4px; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgc__in--s { flex: 0 1 90px; }
.lgc__in--warn { background: #ffffe1; color: #b00000; font-weight: 700; }
.lgc__in--old { color: #a00000; }
.lgc__in--dis { background: #d4d0c8; color: #4b4b4b; text-align: center; }
.lgc__pin { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #dc2626; color: #fff; font: 700 11px/1 Tahoma, sans-serif; }
.lgc__hist { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.lgc__hist th { padding: 2px 5px; background: #c0c0c0; text-align: left; font-weight: 400; border: 1px solid; border-color: #fff #808080 #808080 #fff; }
.lgc__hist td { padding: 2px 5px; border: 1px solid #d4d0c8; white-space: nowrap; }
.lgc__hist tr:nth-child(2) td:first-child, .lgc__hist tr:nth-child(3) td:first-child { color: #a00000; }
.lgc__sb { display: flex; justify-content: space-between; padding: 2px 6px; border-top: 1px solid #808080; font-size: 11px; }
.cmp__notes { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .9rem; }
.cmp__notes li { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 600; color: var(--text-strong); }
.cmp__notes b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #dc2626; color: #fff; font-size: .75rem; }
.cmp__body { display: grid; gap: 1rem; justify-items: center; align-items: center; width: 100%; }
@media (min-width: 700px) { .cmp__body { grid-template-columns: auto minmax(0, 250px); justify-content: center; gap: 1.5rem; } }
.cmp__shot { width: min(100%, 340px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid #1e293b; box-shadow: var(--shadow-lg); background: #0a131f; }
.cmp__shot img { width: 100%; height: auto; }
.cmp__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; width: min(100%, 340px); }
@media (min-width: 700px) { .cmp__facts { width: 100%; } }
.cmp__facts li { display: grid; grid-template-columns: auto 1fr; column-gap: .5rem; align-items: center; padding: .55rem .7rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--st-listo); }
.cmp__facts .material-symbols-outlined { grid-row: 1 / 3; font-size: 22px; color: var(--accent-strong); }
.cmp__facts small { font-size: .6875rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.cmp__facts b { font-size: 1rem; color: var(--text-strong); line-height: 1.2; }

/* Escena fija: 5 capas (chat/radio, Excel, sistema viejo, MapGestión, tabla) */
.js .chaos:not(.is-pinned) { padding-bottom: 0; }
@media (prefers-reduced-motion: no-preference) and (min-height: 600px) {
  .js .chaos:not(.is-pinned) { padding-bottom: 360vh; }
}
@media (max-height: 760px) {
  .chaos.is-pinned .chaos__sub { display: none; }
  .chaos.is-pinned .chaos__pin { padding-top: 4.75rem; }
  .chaos.is-pinned .chaos__cap { min-height: 1.8em; font-size: clamp(1.25rem, .9rem + 1.6vw, 2rem); }
  .wa__bubble--opt { display: none; }
  .lgc__menu, .lgc__row--opt { display: none; }
  .comm { gap: .6rem; }
  .cmp__side { gap: .5rem; }
}
@media (max-height: 700px) and (min-width: 900px) { .chaos.is-pinned .chaos__stage { zoom: .88; } }

/* ---- Clips ("Míralo en movimiento") ---- */
.clips { margin-top: clamp(3rem, 7vw, 5rem); }
.clips__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.clips__note { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: var(--radius-full); background: var(--bg); border: 1px solid var(--border-md); font-size: .8125rem; font-weight: 600; color: var(--muted); }
.clips__note .material-symbols-outlined { font-size: 18px; color: var(--accent-strong); }
.clips__grid { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -1rem; padding: .25rem 1rem 1rem; scroll-padding-inline: 1rem; }
.clips__grid::-webkit-scrollbar { display: none; }
.clips__grid .clip { flex: 0 0 min(82vw, 380px); scroll-snap-align: start; }
@media (min-width: 700px) {
  .clips__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 1.25rem; }
  .clips__grid .clip { grid-column: span 3; flex: none; }
  .clips__grid .clip:last-child { grid-column: 2 / span 4; }
}
@media (min-width: 1000px) {
  .clips__grid .clip { grid-column: span 2; }
  .clips__grid .clip:nth-child(4) { grid-column: 2 / span 2; }
  .clips__grid .clip:nth-child(5) { grid-column: 4 / span 2; }
}
.clip { margin: 0; }
.clip__frame { position: relative; aspect-ratio: 768 / 524; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-md); background: #0a131f; box-shadow: var(--shadow-md); }
.clip__poster, .clip__v { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.clip__v { opacity: 0; transition: opacity .35s ease; }
.clip.is-playing .clip__v, .clip.has-played .clip__v { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .clip__v { display: none; } }
.clip__btn { display: none; position: absolute; right: .5rem; bottom: .5rem; width: 44px; height: 44px; border-radius: 50%; place-items: center; cursor: pointer; border: 1px solid rgba(255, 255, 255, .35); background: rgba(15, 23, 42, .72); color: #fff; transition: background-color .2s ease, opacity .3s ease; }
.clip__btn:hover { background: rgba(15, 23, 42, .92); }
.clip__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--accent); }
.clips--ready .clip__btn { display: grid; }
.clips--ready .clip.is-playing .clip__btn { opacity: .55; }
.clips--ready .clip.is-playing:hover .clip__btn, .clips--ready .clip__btn:focus-visible { opacity: 1; }
.clip figcaption { display: grid; gap: .1rem; padding: .7rem .25rem 0; }
.clip figcaption strong { font-size: 1.0625rem; font-weight: 700; color: var(--text-strong); }
.clip figcaption span { color: var(--muted); font-size: .9375rem; }

/* ---- 110 en 4 pasos ---- */
.st4wrap { max-width: 1080px; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.st4__lab { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .75rem; margin-bottom: 1.25rem; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.st4 { --p: 1; position: relative; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); counter-reset: st; }
.st4__step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 1rem; row-gap: .25rem; align-items: start; padding: 1rem 1rem 1.1rem; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); transition: opacity .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease); }
.st4__ic { grid-row: 1 / 4; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-strong); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .28); transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.st4__ic .material-symbols-outlined { font-size: 28px; }
.st4__n { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); }
.st4__step h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; color: var(--text-strong); }
.st4__viz { grid-column: 2; margin-top: .5rem; }
.st4__viz--scan { position: relative; height: 56px; }
.st4__id { position: absolute; left: 0; top: 4px; width: 84px; height: 50px; padding: 8px; display: grid; align-content: center; gap: 5px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border-md); }
.st4__id i { height: 5px; border-radius: 3px; background: var(--border-md); } .st4__id i:first-child { width: 55%; background: var(--accent); }
.st4__id i:nth-child(3) { width: 70%; }
.st4__beam { position: absolute; left: -4px; top: 4px; width: 92px; height: 2px; border-radius: 2px; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
.st4__viz--src { display: grid; gap: .3rem; }
.st4__viz--src li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--text); }
.st4__viz--res, .st4__viz--dec { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag--strong { background: #1e40af; color: #fff; }
/* Con JS y movimiento: los pasos se van encendiendo con el scroll */
.st4--anim .st4__step:not(.is-on) { background: var(--surface); }
.st4--anim .st4__step:not(.is-on) .st4__ic { background: var(--surface); color: var(--muted-2); box-shadow: inset 0 0 0 2px var(--border-md); }
.st4--anim .st4__step.is-on { border-color: rgba(59, 130, 246, .5); box-shadow: var(--shadow-md); }
.st4--anim .st4__step.is-on .st4__ic { transform: scale(1.06); }
.st4--anim .st4__step:not(.is-on) .st4__viz--src li,
.st4--anim .st4__step:not(.is-on) .st4__viz--res .tag,
.st4--anim .st4__step:not(.is-on) .st4__viz--dec .fakebtn { opacity: 0; transform: translateY(6px); }
.st4--anim .st4__viz--src li, .st4--anim .st4__viz--res .tag, .st4--anim .st4__viz--dec .fakebtn { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.st4--anim .st4__viz--src li:nth-child(2), .st4--anim .st4__viz--res .tag:nth-child(2), .st4--anim .st4__viz--dec .fakebtn:nth-child(2) { transition-delay: .18s; }
.st4--anim .st4__viz--src li:nth-child(3), .st4--anim .st4__viz--res .tag:nth-child(3) { transition-delay: .36s; }
.st4--anim .st4__viz--src li:nth-child(4) { transition-delay: .54s; }
@media (prefers-reduced-motion: no-preference) {
  .st4--anim .st4__step.is-on .st4__beam { animation: beam 1.8s ease-in-out infinite alternate; }
}
@keyframes beam { from { transform: translateY(0); } to { transform: translateY(44px); } }
/* Línea que une los pasos (vertical en móvil) */
.st4::before { content: ""; position: absolute; left: calc(1rem + 27px); top: 40px; bottom: 40px; width: 2px; background: var(--border-md); }
.st4::after { content: ""; position: absolute; left: calc(1rem + 27px); top: 40px; bottom: 40px; width: 2px; background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--p)); }
@media (min-width: 900px) {
  .st4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
  .st4__step { grid-template-columns: minmax(0, 1fr); padding: 1.25rem 1.1rem 1.2rem; row-gap: .35rem; }
  .st4__ic { grid-row: auto; margin-bottom: .5rem; }
  .st4__viz { grid-column: 1; }
  .st4::before { left: 3rem; right: 3rem; top: calc(1.25rem + 28px); bottom: auto; width: auto; height: 2px; }
  .st4::after { left: 3rem; right: 3rem; top: calc(1.25rem + 28px); bottom: auto; width: auto; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--p)); }
  .st4__step { z-index: 1; }
  .st4::before, .st4::after { z-index: 0; }
}
.vfapp__foot { border-top: 1px solid var(--border); }

/* ---- Zoom a la zona destacada (pasa el mouse o toca) ---- */
.shot[data-zoom] .shot__frame { position: relative; cursor: zoom-in; }
.shot[data-zoom] .shot__frame img { transform-origin: var(--zx, 50%) var(--zy, 50%); transition: transform .9s var(--ease); }
.shot__hl { position: absolute; z-index: 1; left: var(--hx); top: var(--hy); width: var(--hw); height: var(--hh); border: 2px solid var(--accent); border-radius: 10px; box-shadow: 0 0 0 4px rgba(59, 130, 246, .25); pointer-events: none; transition: opacity .4s ease; }
.shot__zoom { position: absolute; right: .5rem; bottom: .5rem; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 23, 42, .72); color: #fff; pointer-events: none; }
.shot__zoom .material-symbols-outlined { font-size: 20px; }
.shot[data-zoom] .shot__frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shot.is-zoom .shot__frame img { transform: scale(var(--zs, 1.7)); }
.shot.is-zoom .shot__hl { opacity: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .shot[data-zoom]:hover .shot__frame img { transform: scale(var(--zs, 1.7)); }
  .shot[data-zoom]:hover .shot__hl { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) { .shot__hl { animation: hlPulse 2.4s ease-in-out infinite; } }
@keyframes hlPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, .25); } 50% { box-shadow: 0 0 0 9px rgba(59, 130, 246, .08); } }
@media (prefers-reduced-motion: reduce) { .shot[data-zoom] .shot__frame img { transition: none; } .clip__btn { transition: none; } }

/* Objetivos táctiles: chips del mock de la tabla */
@media (max-width: 999px), (pointer: coarse) { .mgchip { min-height: 44px; } .mgtable__search { min-height: 44px; } }
@media (max-width: 999px), (pointer: coarse) { .mgtable__filters { gap: .4rem; } }
.rail__nav .rail__chip, .vfapp__seg .rail__chip, .vfapp .rail__nav .rail__chip { min-height: 44px; }

/* Móvil: menos movimiento */
@media (max-width: 699px) and (prefers-reduced-motion: no-preference) {
  .shot[data-zoom]:hover .shot__frame img { transform: none; }
  .shot.is-zoom .shot__frame img { transform: scale(var(--zs, 1.7)); }
}
.shot__frame picture { overflow: hidden; }
.more-row .more { justify-content: center; }

/* ============================================================
   v5 — Resumen extendido: índice de íconos, "En 10 segundos" y paneles plegables
   ============================================================ */
.rx-idxwrap { position: relative; z-index: 4; margin-top: calc(-1 * clamp(1.25rem, 3vw, 2rem)); }
.rx-idx { padding: clamp(.9rem, 2vw, 1.25rem); border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-dock); }
.rx-idx__l { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.6rem, 1fr)); gap: .5rem; }
.rx-idx__l a { display: grid; justify-items: center; align-content: start; gap: .35rem; min-height: 44px; padding: .65rem .3rem .55rem; border-radius: var(--radius-lg); text-align: center; color: var(--text); transition: background-color .3s var(--ease), transform .3s var(--ease); }
.rx-idx__l a:hover { background: var(--bg); }
.rx-idx__l a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rx-idx__ic { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-pale); color: var(--accent-strong); }
.rx-idx__ic .material-symbols-outlined { font-size: 24px; }
.rx-idx__t { font-size: .8125rem; font-weight: 600; line-height: 1.2; color: var(--text-strong); text-wrap: balance; }
.rx-idx__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.rx-idx__ic .rx-idx__dot { position: absolute; right: -3px; top: -3px; box-shadow: 0 0 0 2px var(--surface); }
.rx-idx__dot--hoy { background: var(--st-listo); } .rx-idx__dot--soon { background: var(--accent); } .rx-idx__dot--dev { background: var(--st-prep); }
.rx-idx__lg { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1.1rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); font-size: .8125rem; color: var(--muted); }
.rx-idx__lg span { display: inline-flex; align-items: center; gap: .4rem; }
.rx-idx__all { min-height: 44px; padding: 0 1rem; border-radius: var(--radius-full); border: 1px solid var(--border-md); background: var(--surface); color: var(--text); font: 600 .8125rem 'Inter', sans-serif; cursor: pointer; }
.rx-idx__all:hover { border-color: var(--accent); color: var(--accent-strong); }
.rx-idx__all[hidden] { display: none; }

.rx-ten { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: .15rem .6rem; padding: .85rem 1.1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); box-shadow: var(--shadow-sm); }
.rx-ten .material-symbols-outlined { color: var(--accent-strong); font-size: 24px; }
.rx-ten b { font-size: .6875rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-strong); white-space: nowrap; }
.rx-ten span:last-child { font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); font-weight: 600; letter-spacing: -.01em; color: var(--text-strong); line-height: 1.35; }
@media (max-width: 599px) { .rx-ten { grid-template-columns: auto minmax(0, 1fr); } .rx-ten span:last-child { grid-column: 1 / -1; } }
.rx-clip { max-width: 640px; }
.rx-clip .clip { max-width: 100%; }

.rx-more { border-radius: 16px; }
.rx-more > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: 0 1.1rem; cursor: pointer; list-style: none;
  border-radius: 999px; width: fit-content; background: var(--surface); border: 1px solid var(--border-md); font-weight: 600; font-size: .9375rem; color: var(--text-strong);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.rx-more > summary::-webkit-details-marker { display: none; }
.rx-more > summary:hover { border-color: var(--accent); }
.rx-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rx-more__ic { position: relative; width: 14px; height: 14px; }
.rx-more__ic::before { content: ""; position: absolute; left: 2px; top: 2px; width: 8px; height: 8px; border: solid var(--accent-strong); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .4s var(--ease); }
.rx-more[open] > summary .rx-more__ic::before { transform: translateY(3px) rotate(-135deg); }
.rx-more[open] > summary span:first-child::after { content: ""; }
.rx-more__a { overflow: hidden; }
.rx-more__in { padding-top: clamp(1.25rem, 3vw, 1.75rem); }
.rx-more__in > * + * { margin-top: clamp(1.25rem, 3vw, 2rem); }
.rx-more__in > .rx-lead { margin-top: 0; }
.rx-more.is-closing > summary .rx-more__ic::before { transform: rotate(45deg); }
.js .rx-more > summary { margin-bottom: 0; }
.rx-chap > .rx-more { margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { .rx-more__ic::before, .rx-more > summary { transition: none; } }
/* Clips dentro del resumen: más grandes en pantallas amplias */
@media (min-width: 1000px) { .rx-clip { max-width: 720px; } }
.rx-chap.is-flash { animation: none; }

/* Ajustes v5 (320px y objetivos táctiles con la escala de entrada) */
.cmp__side, .cmp__body, .comm > * { min-width: 0; }
.chaos__layer { min-width: 0; }
.lgc { max-width: 100%; }
.lgc__form, .lgc__row { min-width: 0; }
.lgc__hist { table-layout: fixed; }
.lgc__hist td, .lgc__hist th { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) {
  .lgc { font-size: 11px; }
  .lgc__lb { min-width: 46px; }
  .lgc__form { padding: 6px; }
}
@media (max-width: 999px), (pointer: coarse) { .vfapp__seg .rail__chip, .vfapp .rail__nav .rail__chip { min-height: 48px; } }
.st4--anim .st4__step:not(.is-on) .st4__ic { opacity: .7; }
@media (max-width: 999px), (pointer: coarse) { .mgchip, .mgtable__search { min-height: 46px; } }
.radio__badge { margin-left: auto; padding: .1rem .45rem; border-radius: var(--radius-full); background: #fde68a; color: #78350f; font-size: .5625rem; letter-spacing: .03em; white-space: nowrap; }

/* ============================================================
   v6 — home corta: historia animada, escaparate de animaciones,
   IA con pestañas, 110 en 4 pasos, franja de confianza
   ============================================================ */
.anchor { display: block; position: relative; top: -84px; height: 0; visibility: hidden; pointer-events: none; }
.shead { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ia, .vf { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---- Historia (#producto): encabezado con un pie de una línea + puntos de progreso ---- */
.chaos__head { gap: .35rem; }
.chaos__kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-strong); }
.chaos__cap { max-width: 60rem; font-size: clamp(1.4rem, 1rem + 2vw, 2.5rem); }
.chaos__dots { display: none; }
/* Sin escena fija (sin JS, reduced-motion, pantallas bajas): cada capa trae su propio pie */
.chaos:not(.is-pinned) .chaos__cap { display: none; }
.chaos.is-pinned .chaos__cap { min-height: 2.5em; }
.chaos.is-pinned .chaos__dots { display: block; position: relative; z-index: 3; margin-top: clamp(.35rem, 1.5svh, 1rem); }
.chaos__dots ol { display: flex; justify-content: center; gap: .15rem .35rem; flex-wrap: wrap; }
.chaos__dots button {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; min-width: 44px; padding: 0 .65rem; border: 0; border-radius: var(--radius-full);
  background: transparent; color: var(--muted); font: 600 .8125rem 'Inter', sans-serif; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease);
}
.chaos__dots button:hover { background: var(--surface); color: var(--text-strong); }
.chaos__dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chaos__dots i { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-md); background: var(--surface); transition: transform .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease); }
.chaos__dots .is-on i { background: var(--accent); border-color: var(--accent); }
.chaos__dots [aria-current="true"] { background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow-sm); }
.chaos__dots [aria-current="true"] i { transform: scale(1.35); box-shadow: 0 0 0 4px rgba(59, 130, 246, .22); }
@media (max-width: 699px) {
  .chaos__dots button span { display: none; }
  .chaos__dots [aria-current="true"] span { display: inline; }
  .chaos__dots ol { flex-wrap: nowrap; }
}
@media (max-height: 760px) { .chaos.is-pinned .chaos__kicker { display: none; } .chaos.is-pinned .chaos__cap { min-height: 1.4em; font-size: clamp(1.2rem, .9rem + 1.5vw, 1.9rem); } }
/* Escena más grande en pantallas con alto de sobra */
@media (min-width: 1000px) and (min-height: 860px) { .chaos.is-pinned .chaos__stage { zoom: 1.12; } }
@media (min-width: 1000px) and (min-height: 960px) { .chaos.is-pinned .chaos__stage { zoom: 1.25; } }
@media (min-width: 1000px) and (min-height: 1100px) { .chaos.is-pinned .chaos__stage { zoom: 1.4; } }
@media (min-width: 1000px) and (min-height: 1300px) { .chaos.is-pinned .chaos__stage { zoom: 1.55; } }
@media (prefers-reduced-motion: no-preference) and (min-height: 600px) { .js .chaos:not(.is-pinned) { padding-bottom: 420vh; } }
.chaos__label h3 { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); }
.chaos:not(.is-pinned) .chaos__layer + .chaos__layer { margin-top: clamp(1.5rem, 5vw, 3rem); }

/* ---- Míralo en movimiento: un solo escaparate ---- */
.show { position: relative; z-index: 2; padding-block: clamp(3rem, 6vw, 5.5rem); background: var(--navy); color: #e2e8f0; overflow: hidden; }
.show .section-title { color: #fff; }
.show .section-title .grad { color: var(--accent-light); }
.show .shead { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.show__note { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; padding: .3rem .8rem; border-radius: var(--radius-full); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); font-size: .8125rem; font-weight: 600; color: #cbd5e1; }
.show__note .material-symbols-outlined { font-size: 18px; color: var(--accent-light); }
.show__wrap { width: min(100% - 2rem, 1240px); margin-inline: auto; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.show__main { min-width: 0; }
.show__stage { position: relative; aspect-ratio: 768 / 524; border-radius: 20px; overflow: hidden; background: #0a131f; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .65); }
.show__poster, .show__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.show__v { opacity: 0; }
.show__poster { opacity: 0; transition: opacity .35s ease; }
.show__poster.is-active { opacity: 1; }
.show__v.is-active { opacity: 1; }
.show__ctl { position: absolute; right: .6rem; bottom: .6rem; z-index: 2; display: none; gap: .5rem; }
.show__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255, 255, 255, .35); background: rgba(15, 23, 42, .75); color: #fff; transition: background-color .2s ease; }
.show__btn:hover { background: rgba(15, 23, 42, .95); }
.show__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--accent); }
.show--ready .show__ctl { display: flex; }
.show__cap { margin-top: .85rem; text-align: center; font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 700; letter-spacing: -.015em; color: #fff; }
.show__tabs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: .1rem 0 .25rem; }
.show__tabs::-webkit-scrollbar { display: none; }
.show__tab {
  position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1rem 0 .55rem; scroll-snap-align: start; overflow: hidden;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #cbd5e1; text-align: left; cursor: pointer;
  font: 600 .9375rem 'Inter', sans-serif; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.show__tab:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.show__tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.show__tab[aria-current="true"] { background: rgba(59, 130, 246, .26); border-color: var(--accent-light); color: #fff; }
.show__ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.show__tab[aria-current="true"] .show__ic { background: var(--accent); }
.show__ic .material-symbols-outlined { font-size: 20px; }
.show__tx { display: grid; line-height: 1.2; }
.show__tx small { display: none; font-size: .8125rem; font-weight: 500; color: #cbd5e1; }
.show__fill { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent-light); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); opacity: 0; }
.show__tab[aria-current="true"] .show__fill { opacity: 1; }
@media (min-width: 1000px) {
  .show__wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
  .show__tabs { flex-direction: column; overflow: visible; gap: .6rem; }
  .show__tab { min-height: 76px; padding: 0 1rem .0 .8rem; gap: .8rem; }
  .show__ic { width: 44px; height: 44px; }
  .show__ic .material-symbols-outlined { font-size: 24px; }
  .show__tx strong { font-size: 1.0625rem; }
  .show__tx small { display: block; }
  .show__cap { display: none; }
}
/* Sin JS: las 5 imágenes a la vista, sin pestañas */
.show__wrap:not(.show--ready) .show__stage { aspect-ratio: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: .75rem; background: none; border: 0; box-shadow: none; overflow: visible; }
.show__wrap:not(.show--ready) .show__poster { position: static; opacity: 1; height: auto; border-radius: 14px; aspect-ratio: 768 / 524; }
.show__wrap:not(.show--ready) .show__v, .show__wrap:not(.show--ready) .show__tabs, .show__wrap:not(.show--ready) .show__cap { display: none; }
.show__wrap:not(.show--ready) { grid-template-columns: minmax(0, 1fr); }
@media (prefers-reduced-motion: reduce) { .show__v, .show__ctl { display: none !important; } .show__poster, .show__tab, .show__fill { transition: none; } .show__fill { display: none; } }

/* ---- IA: pestañas con avance automático ---- */
.qu__tabs { display: none; }
.qu--ready .qu__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.qu__tab, .qu__ctl {
  position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: 0 1.05rem; overflow: hidden; cursor: pointer;
  border-radius: var(--radius-full); border: 1px solid var(--border-md); background: var(--surface); color: var(--text); font: 600 .9375rem 'Inter', sans-serif;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.qu__tab .material-symbols-outlined, .qu__ctl .material-symbols-outlined { font-size: 20px; }
.qu__tab:hover, .qu__ctl:hover { border-color: var(--accent); }
.qu__tab:focus-visible, .qu__ctl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qu__tab[aria-current="true"] { background: var(--text-strong); border-color: var(--text-strong); color: #fff; }
.qu__ctl { background: transparent; color: var(--muted); }
.qu__fill { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent-light); transform: scaleX(0); transform-origin: 0 50%; }
.qu--auto .qu__tab[aria-current="true"] .qu__fill { animation: quFill 6.5s linear forwards; }
@keyframes quFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.qu__list { margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.qu__step { width: auto; }
.qu--ready .qu__list { grid-template-columns: minmax(0, 1fr); gap: 0; padding: clamp(1.1rem, 3vw, 2.25rem); border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-dock); overflow: hidden; }
.qu--ready .qu__step {
  grid-area: 1 / 1; display: grid; gap: .6rem 2rem; align-content: center; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  opacity: 0; visibility: hidden; transform: translate3d(0, .75rem, 0); transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s .5s;
}
.qu--ready .qu__step.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.qu--ready .qu__prompt { font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); letter-spacing: -.03em; }
.qu--ready .qu__answer { margin-top: .5rem; }
.qu--ready .aicard { max-width: 520px; width: 100%; }
@media (min-width: 820px) {
  .qu--ready .qu__step { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; min-height: 15rem; }
  .qu--ready .qu__where { grid-column: 1; align-self: end; }
  .qu--ready .qu__prompt { grid-column: 1; align-self: start; }
  .qu--ready .qu__answer { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .qu__ctl, .qu__fill { display: none; } .qu--ready .qu__step { transition: none; transform: none; } }

.rules { margin-top: clamp(1.25rem, 3vw, 2rem); }
.rules li { padding: .7rem 0; }

/* ---- 110 en 4 pasos (compacto) ---- */
.st4wrap { display: grid; justify-items: center; gap: 0; }
.st4wrap .st4 { width: 100%; }
.st4__replay { display: none; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; margin-top: 1rem; padding: 0 1.1rem; border-radius: var(--radius-full); border: 1px solid var(--border-md); background: var(--surface); color: var(--text); font: 600 .875rem 'Inter', sans-serif; cursor: pointer; }
.st4--anim + .st4__replay { display: inline-flex; }
.st4__replay:hover { border-color: var(--accent); color: var(--accent-strong); }
.st4__replay:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st4__replay .material-symbols-outlined { font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .st4__replay { display: none !important; } }
.vf__net { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; max-width: 900px; margin: clamp(1.25rem, 3vw, 2rem) auto 0; padding: .9rem 1.25rem; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); text-align: left; color: var(--text); }
.vf__net > .material-symbols-outlined { color: var(--accent-strong); font-size: 26px; }
.vf__net b { color: var(--text-strong); }
.vf__net .more { white-space: nowrap; }

/* ---- Franja de confianza ---- */
.trust { position: relative; z-index: 2; background: var(--bg); padding-block: clamp(2.5rem, 5vw, 4rem); }
.trust__title { text-align: center; margin-bottom: 1.5rem; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 700; letter-spacing: -.025em; color: var(--text-strong); }
.trust__grid { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); max-width: 1040px; margin-inline: auto; }
@media (min-width: 480px) { .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 800px) { .trust__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust__grid li { display: flex; align-items: center; gap: .8rem; min-height: 72px; padding: .8rem 1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.trust__ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-pale); color: var(--accent-strong); }
.trust__grid b { display: block; font-size: 1rem; line-height: 1.25; color: var(--text-strong); }
.trust__grid small { display: block; margin-top: .15rem; font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.trust__more { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; margin-top: 1rem; }
.cform__alt--rx { margin-top: 1rem; }

/* ---- FAQ corta ---- */
.faq { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---- Resumen extendido (v6): mock 110 y mapa de la red movidos desde la home ---- */
.rx-split--flat1 { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.rx-pill { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 1.5rem 0 .75rem; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.rx-vfapp { margin-block: 0 1.5rem; }
.rx-dark .netmap { margin: 0 auto 2rem; max-width: 520px; }
.rx-dark .netmap figcaption { color: #cbd5e1; }
.show__stage { touch-action: pan-y; overscroll-behavior-x: contain; }
