/* ==========================================================================
   Miraactua · portada (miraactua.cl)
   Sistema de diseño
   - Tokens: color, espacio (escala de 4 px), tipografía fluida, radios, sombras y movimiento.
   - Componentes: .btn, .card, .tile, .pill, .eyebrow, .checks, carrusel, línea de tiempo, planes, FAQ, dialog.
   - Secciones .vp: ocupan el alto de la pantalla (una idea por pantalla).
   - Movimiento: solo transform/opacity/clip-path (no provoca reflujo); se desactiva con prefers-reduced-motion.
   - Tipografía del sistema: cero descarga de fuentes → el texto del hero es el LCP y pinta de inmediato.
   ========================================================================== */
:root {
  /* Color */
  --navy-950: #0a1e34; --navy-900: #0f2c4a; --navy-800: #153556; --navy-700: #1d4670;
  --gold: #c8a45c; --gold-500: #d4b06a; --gold-700: #86693a; --gold-100: #f7f0de;
  --ink: #0f2c4a; --ink-2: #475569; --ink-3: #64748b; --line: #e2e8f0;
  --bg: #f6f8fb; --surface: #ffffff;
  --ok: #16a34a; --warn: #f59e0b; --crit: #dc2626;
  /* Forma y elevación */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px;
  --sh-1: 0 1px 2px rgba(15, 44, 74, .06), 0 1px 3px rgba(15, 44, 74, .08);
  --sh-2: 0 10px 28px rgba(15, 44, 74, .12);
  --sh-3: 0 28px 70px rgba(6, 18, 34, .35);
  /* Espacio (base 4) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 104px;
  /* Tipografía fluida */
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-h1: clamp(2.05rem, 1.15rem + 3.6vw, 3.7rem);
  --fs-h2: clamp(1.7rem, 1.15rem + 2vw, 2.7rem);
  --fs-lead: clamp(1.05rem, .98rem + .4vw, 1.25rem);
  /* Movimiento */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Hero y secciones .vp arrancan justo arriba de la pantalla; las demas dejan libre el menu fijo. */
.section:not(.vp), .footer { scroll-margin-top: calc(var(--nav-h) + 8px); }
/* Imán suave hacia cada pantalla (proximity: nunca obliga a detenerse) solo en pantallas amplias. */
@media (min-width: 900px) and (min-height: 640px) { html { scroll-snap-type: y proximity; } .hero, .vp, .footer { scroll-snap-align: start; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--s-5); }
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }
.ic.flip { transform: scaleX(-1); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: var(--s-4); top: -60px; z-index: 100; background: var(--gold); color: var(--navy-950); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); font-weight: 700; transition: top .15s; }
.skip-link:focus { top: var(--s-4); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 44px;
  padding: .7em 1.3em; border: 1px solid transparent; border-radius: var(--r-md); font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, color .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .06s; }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: .85em 1.6em; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-accent { background: linear-gradient(180deg, var(--gold-500), var(--gold)); color: var(--navy-950); box-shadow: 0 6px 18px rgba(200, 164, 92, .38); }
.btn-accent:hover { box-shadow: 0 10px 26px rgba(200, 164, 92, .55); background: linear-gradient(180deg, #ddbb78, var(--gold-500)); }
.btn-primary { background: var(--navy-900); color: #fff; box-shadow: var(--sh-2); }
.btn-primary:hover { background: var(--navy-700); }
.btn-outline { border-color: #cbd5e1; color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--gold); box-shadow: var(--sh-2); }
.btn-outline-light { border-color: rgba(255, 255, 255, .38); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .7); }
.btn-ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-arrow .ic:last-child { transition: transform .2s var(--ease); }
.btn-arrow:hover .ic:last-child { transform: translateX(4px); }
.ab-v { display: none; }
html:not([data-ab-hero-cta]) .ab-v[data-v="a"], html[data-ab-hero-cta="a"] .ab-v[data-v="a"], html[data-ab-hero-cta="b"] .ab-v[data-v="b"] { display: inline; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); color: #fff; transition: background-color .25s, box-shadow .25s, color .25s, backdrop-filter .25s; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--s-4); }
.nav-brand { display: block; flex: none; }
.nav .logo { height: 32px; width: auto; }
.nav .logo-dark { display: none; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r-md); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer; }
.nav-toggle .close { display: none; }
.nav-links { display: flex; align-items: center; gap: var(--s-1); }
.nav-links > a:not(.btn) { position: relative; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); font-weight: 600; font-size: .95rem; opacity: .9; transition: opacity .15s, color .15s; }
.nav-links > a:not(.btn)::after { content: ''; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links > a:not(.btn):hover, .nav-links > a.active { opacity: 1; }
.nav-links > a:not(.btn):hover::after, .nav-links > a.active::after { transform: scaleX(1); }
.nav-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .25); margin: 0 var(--s-3); }
.nav-links .btn + .btn { margin-left: var(--s-2); }
.nav.is-scrolled { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(15, 44, 74, .08); color: var(--ink); }
.nav.is-scrolled .logo-light { display: none; }
.nav.is-scrolled .logo-dark { display: block; }
.nav.is-scrolled .nav-sep { background: var(--line); }
.nav.is-scrolled .btn-ghost { border-color: #cbd5e1; color: var(--ink); }
.nav.is-scrolled .btn-ghost:hover { background: var(--bg); }
.nav.is-scrolled .nav-toggle { border-color: #cbd5e1; }

/* ---------- Hero (una pantalla completa) ---------- */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; color: #fff; padding: calc(var(--nav-h) + 2vh) 0 3vh; background: linear-gradient(160deg, #081a2e 0%, var(--navy-900) 55%, var(--navy-800) 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .blob { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; } /* el degradado radial ya es difuso: sin filter:blur, que es caro de pintar en celulares */
.hero-bg .b1 { width: 560px; height: 560px; right: -120px; top: -100px; background: radial-gradient(circle, rgba(200, 164, 92, .75), transparent 68%); animation: drift 14s ease-in-out infinite alternate; }
.hero-bg .b2 { width: 640px; height: 640px; left: -200px; bottom: -260px; background: radial-gradient(circle, rgba(46, 108, 176, .7), transparent 70%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.hero .wrap { max-width: 1320px; }
.hero-grid { position: relative; display: grid; gap: var(--s-6) var(--s-7); grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(200, 164, 92, .14); border: 1px solid rgba(200, 164, 92, .4); color: var(--gold-500); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
h1 { margin-top: clamp(12px, 2.4vh, 24px); font-size: clamp(1.95rem, min(3.5vw, 6.4vh), 3.7rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.hl { background: linear-gradient(90deg, var(--gold-500), #f1d9a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: clamp(10px, 2.2vh, 24px); max-width: 38em; font-size: clamp(1rem, min(1.35vw, 2.5vh), 1.25rem); color: #cfdaea; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: clamp(14px, 3.2vh, 32px); }
.trust { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-4) var(--s-5); margin-top: clamp(16px, 4vh, 44px); }
.trust li { display: flex; align-items: center; gap: var(--s-3); }
.trust-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--gold-500); font-size: 1.05rem; transition: transform .25s var(--ease), background-color .25s; }
.trust li:hover .trust-ic { transform: translateY(-3px) rotate(-6deg); background: rgba(200, 164, 92, .2); }
.trust strong { display: block; font-size: 1.1rem; line-height: 1.1; white-space: nowrap; }
.trust small { color: #a9bad0; font-size: .8rem; line-height: 1.25; display: block; }

/* Maqueta del producto */
.hero-visual { --k: 1; position: relative; width: calc(520px * var(--k)); height: calc(500px * var(--k)); margin: 0 auto; }
.hv-in { position: absolute; left: 0; top: 0; width: 520px; height: 500px; transform: scale(var(--k)); transform-origin: top left; }
.mock-dash { position: absolute; left: 0; top: 0; width: 88%; background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--sh-3); overflow: hidden; animation: rise .9s var(--ease) both; }
.mock-bar { display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #4ade80; }
.mock-bar span { margin-left: 8px; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 16px 6px; }
.mock-kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.mock-kpis b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mock-kpis small { font-size: 11px; color: var(--ink-3); }
.mock-kpis .warn b { color: #b91c1c; } .mock-kpis .ok b { color: #15803d; }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin: 12px 16px 6px; border-bottom: 1px solid var(--line); }
.mock-chart span { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--navy-700), var(--navy-900)); transform-origin: bottom; animation: grow .9s var(--ease) both; animation-delay: calc(.35s + var(--i) * 70ms); }
.mock-chart span:nth-child(4) { background: linear-gradient(180deg, var(--gold-500), var(--gold-700)); }
.mock-rows { display: grid; gap: 8px; padding: 12px 16px 18px; }
.mock-rows div { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.mock-rows span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-rows em { flex: none; font-style: normal; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.mock-rows .crit { background: #fee2e2; color: #b91c1c; } .mock-rows .mod { background: #fef3c7; color: #b45309; } .mock-rows .done { background: #dcfce7; color: #15803d; }
.mock-phone { position: absolute; right: 0; bottom: 0; width: 224px; border-radius: 30px; border: 7px solid #07162a; background: #fff; color: var(--ink); box-shadow: var(--sh-3); overflow: hidden; animation: rise .9s .2s var(--ease) both, float 6s 1.2s ease-in-out infinite alternate; }
.mock-phone::before { content: ''; position: absolute; left: 50%; top: 5px; z-index: 2; width: 46px; height: 12px; margin-left: -23px; border-radius: 99px; background: #05090f; }
.mock-phone-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 12px 9px; background: var(--navy-950); color: #fff; font-size: 12px; }
.mock-phone-top em { font-style: normal; color: var(--gold-500); }
.mock-phone-top span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #86efac; }
.mock-phone-top span i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
.mock-phone-body { display: grid; gap: 4px; padding: 12px; font-size: 10px; }
.mock-phone-body small { color: var(--ink-3); font-weight: 600; }
.mock-field { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 11px; margin-bottom: 4px; }
.mock-sev { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 4px 0; }
.mock-sev i { font-style: normal; text-align: center; font-size: 9px; font-weight: 700; padding: 6px 0; border: 1px solid var(--line); border-radius: 8px; }
.mock-sev .on { border-color: #fb923c; background: #ffedd5; color: #c2410c; animation: pop 2.6s 1.4s var(--ease) infinite; }
.mock-photo { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 10px; background: var(--bg); border: 1px dashed #cbd5e1; font-size: 11px; color: var(--ink-2); margin: 4px 0; }
.mock-send { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border-radius: 10px; background: var(--gold); color: var(--navy-950); font-weight: 800; font-size: 11px; }
/* «Aviso enviado» palpita: late y emite ondas para llamar la atención sobre la notificación automática */
.mock-toast { position: absolute; left: 4%; bottom: 44px; display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: var(--sh-3); animation: toastIn .7s 1.6s var(--ease) both, beat 2.4s 2.6s ease-in-out infinite; }
.mock-toast::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: ring 2.4s 2.6s ease-out infinite; }
.mock-toast b { display: block; font-size: 12.5px; } .mock-toast small { font-size: 11px; color: var(--ink-3); }
.toast-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--gold-100); color: var(--gold-700); font-size: .95rem; }
.toast-ic .ic { animation: wiggle 2.4s 2.8s ease-in-out infinite; transform-origin: 50% 20%; }

/* ---------- Franja de rubros ---------- */
.industries { background: var(--surface); border-bottom: 1px solid var(--line); }
.industries-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); padding-top: var(--s-5); padding-bottom: var(--s-5); }
.industries p { color: var(--ink-3); font-size: .92rem; font-weight: 600; }
.industries ul { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.industries li { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy-900); }
.industries li .ic { color: var(--gold-700); font-size: 1.15rem; transition: transform .25s var(--ease); }
.industries li:hover .ic { transform: translateY(-3px) scale(1.12); }

/* ---------- Secciones ---------- */
.section { padding: var(--s-9) 0; }
.section.alt { background: linear-gradient(180deg, #eef2f8, var(--bg)); }
/* Una pantalla por sección (con margen para el menú fijo); si el contenido es más alto, la sección crece. */
.vp { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 1.5vh) 0 3vh; }
.vp > .wrap { width: 100%; }
/* Producto, Cómo funciona y La app: mismo margen arriba y abajo, para que el contenido quede centrado en la pantalla. */
#producto, #como-funciona, #app { padding-bottom: calc(var(--nav-h) + 1.5vh); }
.section-head { max-width: 720px; margin: 0 auto clamp(14px, 4vh, 48px); text-align: center; }
.eyebrow { color: var(--gold-700); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin-top: var(--s-2); font-size: clamp(1.55rem, min(2.5vw, 4.9vh), 2.7rem); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.section-head p:not(.eyebrow), .muted { margin-top: clamp(6px, 1.4vh, 12px); color: var(--ink-2); font-size: clamp(.95rem, 2.1vh, 1.08rem); }
h3 { font-size: 1.15rem; line-height: 1.25; }

.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--sh-1); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, opacity .35s; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(200, 164, 92, .16), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: rgba(200, 164, 92, .7); }
.card:hover::before { opacity: 1; }
.tile { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(145deg, var(--navy-700), var(--navy-950)); color: #fff; font-size: 1.25rem; box-shadow: 0 8px 18px rgba(15, 44, 74, .25); transition: transform .3s var(--ease), background .3s; }
.card:hover .tile { transform: scale(1.08) rotate(-5deg); background: linear-gradient(145deg, var(--gold-500), var(--gold-700)); color: var(--navy-950); }

/* ---------- Carrusel de funciones ---------- */
.carousel { position: relative; margin-bottom: 84px; }
.car-track { display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; padding: var(--s-3) var(--s-2) clamp(12px, 3vh, 32px); margin: 0 calc(var(--s-2) * -1); cursor: grab; }
.car-track::-webkit-scrollbar { display: none; }
.car-track.dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.car-track.dragging .slide { pointer-events: none; }
.slide { flex: 0 0 calc((100% - 2 * var(--s-5)) / 3); scroll-snap-align: start; min-height: clamp(230px, 42vh, 380px); padding: clamp(16px, 3vh, 32px); }
.slide.is-off { opacity: .5; }
.slide-n { position: absolute; right: var(--s-5); top: var(--s-3); font-size: clamp(2.6rem, 7vh, 4rem); font-weight: 800; line-height: 1; color: rgba(15, 44, 74, .06); transition: color .3s, transform .4s var(--ease); }
.slide:hover .slide-n { color: rgba(200, 164, 92, .4); transform: translateY(-4px); }
.slide .tile { width: clamp(46px, 7.4vh, 66px); height: clamp(46px, 7.4vh, 66px); font-size: clamp(1.15rem, 2.8vh, 1.65rem); border-radius: 18px; }
.slide h3 { margin: clamp(10px, 2.4vh, 24px) 0 clamp(6px, 1.2vh, 12px); font-size: clamp(1.1rem, 2.6vh, 1.32rem); }
.slide p { color: var(--ink-2); font-size: clamp(.9rem, 2vh, 1.02rem); }
.car-btn { position: absolute; top: auto; bottom: -70px; z-index: 3; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid #cbd5e1; background: var(--surface); color: var(--navy-900); font-size: 1.25rem; cursor: pointer; box-shadow: var(--sh-2); transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, opacity .25s, box-shadow .2s; }
.car-prev { left: calc(50% - 66px); } .car-next { right: calc(50% - 66px); }
.car-btn:hover:not(:disabled) { background: var(--navy-900); color: #fff; border-color: var(--navy-900); transform: scale(1.1); box-shadow: 0 14px 32px rgba(15, 44, 74, .35); }
.car-btn:active:not(:disabled) { transform: scale(.94); }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.carousel.fresh .car-next:not(:disabled) { animation: nudgeR 2.2s ease-in-out infinite; }
.car-ui { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: clamp(4px, 1vh, 12px); }
.car-dots { display: flex; align-items: center; gap: 8px; }
.car-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: #c3cfde; cursor: pointer; transition: width .3s var(--ease), background-color .2s, transform .2s; }
.car-dot:hover { background: var(--gold-700); transform: scale(1.25); }
.car-dot.on { width: 30px; background: linear-gradient(90deg, var(--gold-500), var(--gold-700)); }
.car-count { flex: none; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-3); }

/* ---------- Línea de tiempo: el avance recorre la línea punteada ---------- */
.tl { --ic: clamp(56px, 9vh, 72px); position: relative; max-width: 1080px; margin: 0 auto; }
.tl-line { position: absolute; left: 12.5%; right: 12.5%; top: calc(var(--ic) / 2 - 2px); height: 4px; pointer-events: none; }
.tl-line::before, .tl-fill { content: ''; position: absolute; inset: 0; border-radius: 4px; }
.tl-line::before { background: repeating-linear-gradient(90deg, #c3cfde 0 10px, transparent 10px 20px); }
.tl-fill { background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 20px); clip-path: inset(0 calc((1 - var(--prog, 0)) * 100%) 0 0); transition: clip-path 1.1s var(--ease); }
.tl-dot { position: absolute; top: 50%; left: calc(var(--prog, 0) * 100%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(200, 164, 92, .25), 0 0 18px rgba(200, 164, 92, .85); transition: left 1.1s var(--ease); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.step { position: relative; text-align: center; padding: 0 var(--s-2); cursor: pointer; opacity: .45; filter: saturate(.5); transition: opacity .5s, filter .5s, transform .5s var(--ease); -webkit-tap-highlight-color: transparent; }
.step:hover { opacity: .85; }
.step.done, .step.active { opacity: 1; filter: none; }
.step.active { transform: translateY(-6px); }
.step-ic { position: relative; display: grid; place-items: center; width: var(--ic); height: var(--ic); margin: 0 auto clamp(8px, 2vh, 16px); border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); color: var(--navy-900); font-size: 1.6rem; box-shadow: 0 8px 22px rgba(15, 44, 74, .12); transition: transform .4s var(--ease), background-color .4s, color .4s, box-shadow .4s, border-color .4s; }
.step:hover .step-ic { transform: scale(1.07); }
.step.done .step-ic { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.step.active .step-ic { background: var(--gold); border-color: var(--gold); color: var(--navy-950); transform: scale(1.1); box-shadow: 0 0 0 8px rgba(200, 164, 92, .22), 0 14px 30px rgba(200, 164, 92, .5); animation: halo 2.2s ease-out infinite; }
.step-n { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-900); color: #fff; font-size: .75rem; font-weight: 800; border: 2px solid var(--bg); }
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--ink-2); font-size: clamp(.88rem, 1.9vh, .96rem); }

/* ---------- La app ---------- */
.app-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-8); align-items: center; }
.checks { display: grid; gap: clamp(4px, 1vh, 10px); margin-top: clamp(12px, 2.4vh, 24px); }
.checks li { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; margin-left: -8px; border-radius: var(--r-md); color: var(--ink); font-size: 1rem; transition: background-color .25s, transform .3s var(--ease); }
.checks li:hover { background: var(--surface); transform: translateX(6px); box-shadow: var(--sh-1); }
.chk { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: .72rem; transition: transform .3s var(--ease), background-color .25s, color .25s; }
.checks li:hover .chk { transform: scale(1.18) rotate(-10deg); background: var(--ok); color: #fff; }
.app-actions { margin-top: clamp(14px, 3vh, 32px); }
.app-visual { --k: 1; position: relative; width: calc(470px * var(--k)); height: calc(540px * var(--k)); margin: 0 auto; }
.av-in { position: absolute; left: 0; top: 0; width: 470px; height: 540px; display: grid; place-items: center; transform: scale(var(--k)); transform-origin: top left; }
.device { position: relative; width: 262px; height: 540px; padding: 11px; border-radius: 52px; background: linear-gradient(150deg, #3a4a5e 0%, #0b1522 35%, #1c2b3f 100%); box-shadow: var(--sh-3), inset 0 0 0 2px rgba(255, 255, 255, .1); animation: float 6s ease-in-out infinite alternate; }
.dev-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #0b1522, #3a4a5e); }
.dev-btn.b1 { left: -3px; top: 104px; height: 28px; } .dev-btn.b2 { left: -3px; top: 156px; height: 52px; } .dev-btn.b3 { left: -3px; top: 220px; height: 52px; } .dev-btn.b4 { right: -3px; top: 176px; height: 84px; transform: scaleX(-1); }
.dev-screen { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 42px; overflow: hidden; background: #fff; color: var(--ink); }
.dev-island { position: absolute; left: 50%; top: 10px; z-index: 3; width: 84px; height: 24px; margin-left: -42px; border-radius: 99px; background: #05090f; }
.dev-status { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 12px 26px 0 30px; background: var(--navy-950); color: #fff; font-size: 12px; }
.dev-status span { display: inline-flex; gap: 5px; font-size: 11px; }
.dev-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 12px; background: var(--navy-950); color: #fff; font-size: 13px; }
.dev-head em { font-style: normal; color: var(--gold-500); }
.dev-head span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #86efac; }
.dev-head span i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
.dev-body { flex: 1; display: grid; align-content: start; gap: 10px; padding: 14px 14px 8px; font-size: 12px; background: var(--bg); }
.dev-co { margin: 0; font-weight: 800; font-size: 13px; }
.dev-q { margin: 2px 0 0; color: var(--ink-3); font-size: 11px; font-weight: 600; }
.dev-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 6px 22px; border-top: 1px solid var(--line); background: #fff; }
.dev-tabs span { position: relative; display: grid; justify-items: center; gap: 3px; font-size: 9.5px; font-weight: 700; color: var(--ink-3); }
.dev-tabs span .ic { font-size: 15px; } .dev-tabs .on { color: var(--gold-700); }
.dev-tabs em { position: absolute; top: -4px; right: 14px; display: grid; place-items: center; min-width: 15px; height: 15px; border-radius: 99px; background: var(--crit); color: #fff; font-size: 9px; font-style: normal; }
.dev-home { position: absolute; left: 50%; bottom: 7px; z-index: 3; width: 98px; height: 4px; margin-left: -49px; border-radius: 4px; background: #0b1522; }
.ap-install { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(200, 164, 92, .6); background: var(--gold-100); font-weight: 700; }
.ap-install b { padding: 5px 10px; border-radius: 8px; background: var(--gold); color: var(--navy-950); font-size: 11px; }
.ap-choice { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; font-weight: 700; transition: transform .25s var(--ease), border-color .25s, background-color .25s; }
.ap-choice.on { border-color: var(--gold); background: #fffaf0; }
.ap-choice:hover { transform: translateX(4px); border-color: var(--gold); }
.ap-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--navy-900); color: #fff; font-size: .85rem; }
.ap-pending { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: 99px; background: #fef3c7; color: #b45309; font-weight: 700; font-size: 11px; }
.qr-card { display: grid; justify-items: center; gap: var(--s-3); width: 220px; padding: var(--s-5); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.av-in .qr-card { position: absolute; left: 0; bottom: 6px; }
.tilt { position: relative; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease), box-shadow .25s; will-change: transform; }
.tilt:hover { box-shadow: var(--sh-3); }
.tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .7), transparent 60%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .25s; pointer-events: none; }
.tilt:hover::after { opacity: 1; }
.qr { position: relative; width: 156px; height: 156px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.qr svg { width: 100%; height: 100%; }
.qr::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 32px; background: linear-gradient(180deg, transparent, rgba(200, 164, 92, .38), transparent); animation: scan 2.8s ease-in-out infinite; }
.qr-card small { display: block; color: var(--ink-3); font-size: .8rem; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: clamp(6px, 1.4vh, 14px); padding: clamp(14px, 2.4vh, 26px) clamp(14px, 1.4vw, 22px); }
.plan-head { display: flex; align-items: center; gap: var(--s-3); }
.plan-head h3 { font-size: 1.1rem; }
.plan .tile { width: clamp(38px, 5.6vh, 48px); height: clamp(38px, 5.6vh, 48px); font-size: 1.1rem; border-radius: 13px; }
.plan-tag { display: inline-block; margin-top: 2px; padding: 1px 9px; border-radius: 99px; background: var(--gold-100); color: var(--gold-700); font-size: .74rem; font-weight: 800; }
.amount-wrap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.amount { font-size: clamp(1.7rem, min(2.5vw, 5vh), 2.55rem); line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.amount-text { font-size: clamp(1.4rem, min(2vw, 4.4vh), 2rem); }
.per { color: var(--ink-3); font-weight: 700; font-size: .85rem; }
.quota { display: grid; gap: clamp(4px, 1vh, 9px); padding-top: clamp(6px, 1.4vh, 14px); border-top: 1px solid var(--line); }
.quota li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.q-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: #eef2f8; color: var(--navy-900); font-size: .82rem; transition: background-color .25s, color .25s, transform .3s var(--ease); }
.plan:hover .q-ic { background: var(--navy-900); color: #fff; }
.quota li:hover .q-ic { transform: scale(1.12) rotate(-6deg); background: var(--gold); color: var(--navy-950); }
.incl { display: grid; gap: clamp(3px, .8vh, 7px); flex: 1; padding-top: clamp(6px, 1.2vh, 12px); border-top: 1px dashed var(--line); font-size: .82rem; color: var(--ink-2); }
.incl li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.3; }
.incl .ic { margin-top: .2em; color: var(--ok); }
.plan .btn { min-height: 42px; font-size: .92rem; padding: .55em 1em; }
/* Cada plan lleva el color de su metal en el ícono */
.plan-cobre .tile { background: linear-gradient(145deg, #d68b57, #8a4b22); }
.plan-oro .tile { background: linear-gradient(145deg, #f0cf83, #b58a2e); color: var(--navy-950); }
.plan-platino .tile { background: linear-gradient(145deg, #c9d6e4, #6d829a); color: var(--navy-950); }
.plan-custom .tile { background: linear-gradient(145deg, #9fe3f5, #3f8fb0); color: var(--navy-950); }
.plan.featured { border: 2px solid var(--gold); box-shadow: 0 18px 44px rgba(200, 164, 92, .28); transform: translateY(-8px); }
.plan.featured:hover { transform: translateY(-13px); }
.badge-top { position: absolute; top: 0; right: var(--s-4); padding: 4px 12px; border-radius: 0 0 10px 10px; background: var(--gold); color: var(--navy-950); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.plans-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3) var(--s-5); margin-top: clamp(10px, 2.6vh, 28px); color: var(--ink-2); font-size: .95rem; }

/* ---------- Preguntas ---------- */
.faq-wrap { max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
.faq details:hover { border-color: rgba(200, 164, 92, .7); }
.faq details[open] { border-color: var(--gold); box-shadow: var(--sh-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--gold-700); transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); animation: fadeDown .35s var(--ease); }

/* Aviso tras enviar el formulario sin JavaScript */
.flash-bar { position: fixed; top: calc(var(--nav-h) + 10px); left: 50%; z-index: 60; width: min(520px, calc(100vw - 24px)); transform: translateX(-50%); }
.flash-bar .alert { margin-bottom: 8px; box-shadow: var(--sh-2); }

/* ---------- Pie ---------- */
.footer { background: var(--navy-950); color: #b6c4d6; padding-top: var(--s-8); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-7); padding-bottom: var(--s-7); }
.footer-brand .logo { height: 32px; width: auto; margin-bottom: var(--s-4); }
.footer-brand p { max-width: 30em; font-size: .95rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-5); align-content: start; }
.footer-links a { width: fit-content; font-size: .95rem; transition: color .15s, transform .2s var(--ease); }
.footer-links a:hover { color: var(--gold-500); transform: translateX(3px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-5); padding-bottom: var(--s-6); border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.dev { position: relative; color: #fff; font-weight: 700; }
.dev::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(.3); transform-origin: left; transition: transform .25s var(--ease); }
.dev:hover { color: var(--gold-500); } .dev:hover::after { transform: scaleX(1); }

/* Botón de contacto vertical fijo al costado derecho */
.side-contact { position: fixed; right: 0; top: 50%; z-index: 45; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 11px; border: 0; border-radius: 14px 0 0 14px; background: linear-gradient(180deg, var(--gold-500), var(--gold)); color: var(--navy-950); font: inherit; font-weight: 800; font-size: .92rem; letter-spacing: .04em; cursor: pointer; box-shadow: -6px 8px 24px rgba(15, 44, 74, .3); transform: translate(0, -50%); transition: transform .25s var(--ease), box-shadow .25s, padding .25s var(--ease); animation: nudge 7s 4s ease-in-out infinite; }
.side-contact span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.side-contact .ic { font-size: 1.1rem; transition: transform .3s var(--ease); }
.side-contact:hover { transform: translate(-6px, -50%); padding-right: 17px; box-shadow: -10px 12px 30px rgba(200, 164, 92, .55); animation-play-state: paused; }
.side-contact:hover .ic { transform: rotate(-12deg) scale(1.15); }
.side-contact:active { transform: translate(-3px, -50%) scale(.97); }

.sticky-cta { display: none; }

/* ---------- Ventana de solicitud de demo ---------- */
.demo-dialog { width: min(660px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 90px rgba(3, 10, 20, .5); overflow: auto; }
.demo-dialog::backdrop { background: rgba(6, 16, 30, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.demo-dialog[open] { animation: dialogIn .28s var(--ease); }
.demo-dialog-inner { position: relative; padding: var(--s-7) var(--s-7) var(--s-6); }
.demo-dialog h2 { margin: 0 0 var(--s-1); font-size: 1.6rem; padding-right: 36px; }
.demo-sub { color: var(--ink-2); margin-bottom: var(--s-5); }
.demo-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 1.1rem; cursor: pointer; transition: background-color .15s, transform .2s var(--ease); }
.demo-close:hover { background: var(--bg); transform: rotate(90deg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: grid; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.form-control { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: var(--r-md); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
textarea.form-control { min-height: 96px; resize: vertical; }
.form-control:hover { border-color: #94a3b8; }
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 164, 92, .25); }
.demo-error { background: #fee2e2; color: #b91c1c; border-radius: var(--r-sm); padding: 10px 14px; font-size: .92rem; }
.demo-error[hidden], #demoFormView[hidden], #demoDoneView[hidden] { display: none; }
.demo-done { text-align: center; padding: var(--s-6) 0 var(--s-2); }
.demo-done-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto var(--s-4); border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 1.6rem; animation: pop-in .5s var(--ease); }
.demo-done p { color: var(--ink-2); margin-bottom: var(--s-5); }
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: .95rem; }
.alert-success { background: #dcfce7; color: #15803d; } .alert-error { background: #fee2e2; color: #b91c1c; }

/* ---------- Entrada de textos y bloques (solo con JS; sin JS todo se ve) ---------- */
.js .reveal:not(.in) { opacity: 0; }
.js .reveal.in { animation: revealIn .75s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.from-left.in { animation-name: revealLeft; }
/* Titulares: cada palabra sube desde una máscara */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.js [data-split] .wi { display: inline-block; transform: translateY(110%); }
.js [data-split].in .wi { animation: wordUp .8s var(--ease) both; animation-delay: calc(var(--wi, 0) * 55ms); }

@keyframes revealIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes revealLeft { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes wordUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(-18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.08); } 20% { transform: scale(1); } 32% { transform: scale(1.05); } 44% { transform: scale(1); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(200, 164, 92, .75); } 65%, 100% { box-shadow: 0 0 0 20px rgba(200, 164, 92, 0); } }
@keyframes wiggle { 0%, 40%, 100% { transform: rotate(0); } 46% { transform: rotate(-16deg); } 52% { transform: rotate(14deg); } 58% { transform: rotate(-10deg); } 64% { transform: rotate(6deg); } 70% { transform: rotate(0); } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(40px, 30px, 0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes pop { 0%, 88%, 100% { transform: scale(1); } 94% { transform: scale(1.12); } }
@keyframes scan { 0% { transform: translateY(-36px); } 100% { transform: translateY(170px); } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(200, 164, 92, .55), 0 14px 30px rgba(200, 164, 92, .5); } 70%, 100% { box-shadow: 0 0 0 22px rgba(200, 164, 92, 0), 0 14px 30px rgba(200, 164, 92, .5); } }
@keyframes nudgeR { 0%, 60%, 100% { transform: translateX(0); } 70% { transform: translateX(7px); } 80% { transform: translateX(0); } 90% { transform: translateX(4px); } }
@keyframes nudge { 0%, 92%, 100% { transform: translate(0, -50%); } 94% { transform: translate(-7px, -50%); } 96% { transform: translate(0, -50%); } 98% { transform: translate(-4px, -50%); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Pantallas de poca altura: la maqueta se reduce y se ocultan textos secundarios ---------- */
@media (min-width: 1021px) and (max-height: 900px) { .hero-visual, .app-visual { --k: .86; } }
@media (min-width: 1021px) and (max-height: 800px) { .hero-visual, .app-visual { --k: .76; } }
@media (min-width: 1021px) and (max-height: 720px) { .hero-visual, .app-visual { --k: .66; } .section-head p:not(.eyebrow) { display: none; } .trust small { display: none; } .plan-tag { display: none; } .plans-foot { margin-top: 10px; } }
@media (min-width: 1021px) and (max-height: 620px) { .hero-visual, .app-visual { --k: .56; } .pill, .lead { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; left: var(--s-3); right: var(--s-3); top: calc(var(--nav-h) - 6px); display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: var(--s-3); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--sh-3); }
  .nav.open .nav-links { display: flex; animation: fadeDown .25s var(--ease); }
  .nav.open .nav-toggle .open { display: none; } .nav.open .nav-toggle .close { display: block; }
  .nav-links > a:not(.btn) { padding: 12px 14px; opacity: 1; }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-sep { display: none; }
  .nav-links .btn { width: 100%; margin: 4px 0 0; }
  .nav-links .btn-ghost { border-color: #cbd5e1; color: var(--ink); }
  .nav.open { background: rgba(255, 255, 255, .96); color: var(--ink); }
  .nav.open .logo-light { display: none; } .nav.open .logo-dark { display: block; }
  .nav.open .nav-toggle { border-color: #cbd5e1; }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 500px; height: 500px; --k: 1; }
  .hv-in { width: 100%; transform: none; }
  .app-visual { width: 100%; max-width: 470px; height: 540px; }
  .av-in { width: 100%; transform: none; }
  .trust { grid-template-columns: 1fr; }
  .slide { flex-basis: calc((100% - var(--s-5)) / 2); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan.featured { transform: none; }
  .plan.featured:hover { transform: translateY(-5px); }
  .app-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}
@media (max-width: 1180px) {
  /* Las flechas no tapan el texto: van debajo de la tarjeta. */
  .carousel { margin-bottom: 76px; }
  .car-btn { top: auto; bottom: -70px; }
  .carousel { margin-bottom: 84px; }
  .car-prev { left: calc(50% - 66px); } .car-next { right: calc(50% - 66px); }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: var(--s-6); }
  .tl-line { left: calc(var(--ic) / 2 - 2px); right: auto; top: calc(var(--ic) / 2); bottom: calc(var(--ic) / 2); width: 4px; height: auto; }
  .tl-line::before { background: repeating-linear-gradient(180deg, #c3cfde 0 10px, transparent 10px 20px); }
  .tl-fill { background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 20px); clip-path: inset(0 0 calc((1 - var(--prog, 0)) * 100%) 0); }
  .tl-dot { left: 50%; top: calc(var(--prog, 0) * 100%); transition: top 1.1s var(--ease); }
  .step { display: grid; grid-template-columns: var(--ic) minmax(0, 1fr); column-gap: var(--s-4); align-items: center; text-align: left; padding: 0; }
  .step-ic { margin: 0; }
  .step.active { transform: translateX(4px); }
}
@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .section { padding: var(--s-8) 0; }
  .vp { padding-top: calc(var(--nav-h) + var(--s-4)); padding-bottom: var(--s-6); }
  .section-head { margin-bottom: var(--s-6); }
  .hero { padding-top: calc(var(--nav-h) + var(--s-5)); padding-bottom: var(--s-7); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { height: 440px; }
  .mock-phone { width: 196px; }
  .slide { flex-basis: 84%; min-height: 290px; padding: var(--s-5); }
  .car-count { display: none; }
  .car-btn { width: 46px; height: 46px; bottom: -58px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .app-visual { height: auto; display: grid; justify-items: center; gap: var(--s-5); }
  .av-in { position: static; height: auto; display: grid; justify-items: center; gap: var(--s-5); }
  .av-in .qr-card { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .form-grid { grid-template-columns: 1fr; }
  .demo-dialog-inner { padding: var(--s-6) var(--s-5) var(--s-5); }
  .side-contact { display: none; }
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: block; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
  .sticky-cta.show { transform: none; }
  .footer { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.in) { opacity: 1; }
  .js [data-split] .wi { transform: none; }
  .car-track { scroll-behavior: auto; }
}

.nav-links > a:not(.btn), .footer-links a { text-transform: uppercase; letter-spacing: .04em; }
.incl .incl-lead { font-weight: 700; color: var(--gold-700); }
.incl .incl-extra { font-weight: 700; }
.incl .incl-all { display: block; font-weight: 400; font-size: .78rem; line-height: 1.4; color: var(--ink-2); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.incl .incl-all strong { color: var(--navy-900); }
.incl .incl-extra { font-size: .8rem; }
.plan .quota { gap: 4px; padding-top: 8px; }
.plan .quota li { font-size: .86rem; }
@media (min-width: 1021px) { .plans { gap: var(--s-3); } .plan { padding-left: 14px; padding-right: 14px; } }
@media (min-width: 1021px) and (max-height: 860px) { #planes .section-head p:not(.eyebrow) { display: none; } }
.quota .q-users { font-size: .8rem; font-weight: 600; line-height: 1.3; }
/* Precios por cotizacion */
.quote-card { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: var(--s-5); padding: clamp(18px, 3vh, 32px) clamp(18px, 2.4vw, 36px); max-width: 980px; margin: 0 auto; align-items: center; }
.quote-price { display: grid; gap: 6px; justify-items: start; padding-right: var(--s-4); border-right: 1px solid var(--line); }
.quote-from { font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.quote-title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; margin: 2px 0 0; }
.quote-lead { margin: 4px 0 6px; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.quote-price small { color: var(--ink-2); font-size: .8rem; }
.quote-price .btn { margin-top: var(--s-2); }
.quote-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.quote-cols h3 { font-size: 1rem; margin-bottom: var(--s-2); }
.quote-list { display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.quote-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; }
.quote-list .q-ic { flex: none; }
@media (max-width: 900px) { .quote-card { grid-template-columns: 1fr; } .quote-price { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 var(--s-4); } .quote-cols { grid-template-columns: 1fr; } }
