/* RepartoSimple · sitio institucional
   Paleta: los azules y el celeste del Sistema (issue institucional#1), con el naranja del logo para los
   botones principales. La franja de colores de arriba es la misma que la del Sistema y la app.
   Letra: Archivo (ancha en los títulos). "REPARTO SIMPLE" va en Montserrat, que es la del logo. */

:root {
  --navy: #1B3A66;
  --navy-deep: #12284A;
  --night: #0B1626;
  --azul: #2563A8;
  --azul-ink: #1D4F8C;        /* azul para texto y enlaces sobre fondo claro */
  --celeste: #3FA9E0;
  --celeste-soft: #E4F2FB;
  --naranja: #EF8A2B;
  --naranja-hover: #F79B44;
  --sobre-naranja: #142A4C;   /* texto sobre naranja: contraste 5,7 a 1 */
  --verde: #1F9D6B;
  --rojo: #D14343;

  --bg: #FFFFFF;
  --tint: #F3F7FC;
  --surface: #FFFFFF;
  --surface-2: #F6F9FD;
  --line: #D9E4F1;
  --line-strong: #B8CBE2;
  --ink: #142A4C;
  --ink-2: #43577A;
  --ink-3: #586C8B;
  --heading: #142A4C;
  --tab-on: #1B3A66;
  --ok: #146B49;
  --ok-bg: #E7F6EF;
  --warn: #8A4B0C;
  --warn-bg: #FFF3E6;
  --bad: #A42F2F;
  --bad-bg: #FDECEC;
  --info: #1D4F8C;
  --info-bg: #EAF2FB;
  --focus: #2563A8;
  --ring: rgba(63, 169, 224, .35);
  --shadow: 0 1px 2px rgba(20, 42, 76, .06), 0 14px 34px -16px rgba(20, 42, 76, .22);
  --shadow-lg: 0 2px 4px rgba(20, 42, 76, .06), 0 32px 64px -28px rgba(20, 42, 76, .38);
  --franja: linear-gradient(90deg, #1B3A66, #2563A8 35%, #3FA9E0 70%, #EF8A2B);

  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B1626; --tint: #0F1D33; --surface: #12223A; --surface-2: #162A47;
    --line: #22385A; --line-strong: #34507A;
    --ink: #E6EEF9; --ink-2: #B9C8DC; --ink-3: #9DB0CA; --heading: #F2F7FD;
    --azul-ink: #8CC4F2; --celeste-soft: #12304B; --tab-on: #2563A8;
    --ok: #8BE0B9; --ok-bg: #12352A; --warn: #FFC98F; --warn-bg: #3A2812;
    --bad: #FFB3B3; --bad-bg: #3A1A1F; --info: #A9D2F5; --info-bg: #162A47;
    --focus: #62C0EE; --ring: rgba(98, 192, 238, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -18px rgba(0, 0, 0, .65);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 32px 64px -28px rgba(0, 0, 0, .8);
  }
  :root:not([data-theme="light"]) .logo-img { filter: url(#logoDark); }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1626; --tint: #0F1D33; --surface: #12223A; --surface-2: #162A47;
  --line: #22385A; --line-strong: #34507A;
  --ink: #E6EEF9; --ink-2: #B9C8DC; --ink-3: #9DB0CA; --heading: #F2F7FD;
  --azul-ink: #8CC4F2; --celeste-soft: #12304B; --tab-on: #2563A8;
  --ok: #8BE0B9; --ok-bg: #12352A; --warn: #FFC98F; --warn-bg: #3A2812;
  --bad: #FFB3B3; --bad-bg: #3A1A1F; --info: #A9D2F5; --info-bg: #162A47;
  --focus: #62C0EE; --ring: rgba(98, 192, 238, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -18px rgba(0, 0, 0, .65);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 32px 64px -28px rgba(0, 0, 0, .8);
}
:root[data-theme="dark"] .logo-img { filter: url(#logoDark); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 4px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
a { color: var(--azul-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; }
.skip:focus { left: 10px; }
.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

h1, h2 { font-family: var(--display); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; color: var(--heading); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--heading); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--azul-ink); }
.eyebrow::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--franja); }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--info-bg); color: var(--info); font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.badge-new { background: var(--ok-bg); color: var(--ok); }
.badge-soon, .badge-now { background: var(--warn-bg); color: var(--warn); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem; border: 1.5px solid transparent; border-radius: 12px; font: 700 1rem/1.2 var(--body); text-align: center; text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, border-color .15s, box-shadow .15s; }
.btn-accent { background: var(--naranja); color: var(--sobre-naranja); box-shadow: 0 8px 18px -10px rgba(239, 138, 43, .95); }
.btn-accent:hover { background: var(--naranja-hover); transform: translateY(-1px); }
.btn-accent:active { transform: none; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--heading); }
.btn-ghost:hover { border-color: var(--azul); background: var(--info-bg); }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .94rem; white-space: nowrap; }
.btn-lg { min-height: 54px; padding: .85rem 1.5rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Encabezado ---------- */
/* Sobre el inicio oscuro es transparente; toma fondo al hacer scroll o al abrir el menú. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s, box-shadow .25s; }
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
  .site-header.menu-open { background: var(--bg); }
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(15, 39, 72, .06); }
.header-row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; margin-right: auto; text-decoration: none; border-radius: 10px; }
.brand-mark { height: 42px; width: auto; }
.brand-word { display: grid; justify-items: center; font-family: "Montserrat", var(--display); font-weight: 800; line-height: 1; color: var(--heading); transition: color .25s; }
.brand-word span:first-child { font-size: 1.02rem; letter-spacing: .03em; }
.brand-word span:last-child { font-size: .8rem; letter-spacing: .12em; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { position: relative; padding: 12px 0; color: var(--ink-2); font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap; transition: color .2s; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 7px; height: 2px; background: var(--celeste); transition: right .25s; }
.main-nav a:hover, .main-nav a.active { color: var(--heading); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav .nav-login { padding-left: 22px; border-left: 1px solid var(--line); }
.main-nav .nav-login::after, .main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-toggle { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--heading); cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--line-strong); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.i-sun, .is-dark .i-moon { display: none; }
.is-dark .i-sun { display: block; }
.menu-toggle { display: none; gap: 4px; align-content: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.has-hero .site-header:not(.scrolled):not(.menu-open) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-hero .site-header:not(.scrolled):not(.menu-open) .brand-word { color: #fff; }
.has-hero .site-header:not(.scrolled):not(.menu-open) .logo-img { filter: url(#logoDark); }
.has-hero .site-header:not(.scrolled):not(.menu-open) .main-nav a { color: rgba(255, 255, 255, .82); }
.has-hero .site-header:not(.scrolled):not(.menu-open) .main-nav a:hover,
.has-hero .site-header:not(.scrolled):not(.menu-open) .main-nav a.active { color: #fff; }
.has-hero .site-header:not(.scrolled):not(.menu-open) .main-nav .nav-login { border-left-color: rgba(255, 255, 255, .22); }
.has-hero .site-header:not(.scrolled):not(.menu-open) .theme-toggle,
.has-hero .site-header:not(.scrolled):not(.menu-open) .menu-toggle { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); color: #fff; }
.has-hero .site-header:not(.scrolled):not(.menu-open) :focus-visible, .hero :focus-visible { outline-color: #8CC4F2; }

/* ---------- Inicio ---------- */
/* Fondo oscuro, igual en modo claro y en oscuro. Sube por detrás del encabezado. */
.hero { --hero-line: rgba(255, 255, 255, .14); position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(28px, 4.5vw, 60px)) 0 clamp(88px, 10vw, 140px); color: #DCE9F7;
  background:
    radial-gradient(760px 520px at 82% 18%, rgba(63, 169, 224, .30), transparent 62%),
    radial-gradient(680px 460px at -5% 105%, rgba(239, 138, 43, .16), transparent 60%),
    linear-gradient(160deg, #0B1D36 0%, #12305A 55%, #1B3A66 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 72%); }
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-route path { fill: none; stroke: #62C0EE; stroke-width: 2.5; stroke-dasharray: 7 11; opacity: .45; animation: dash 40s linear infinite; }
.hero-route .stop { fill: var(--naranja); stroke: rgba(255, 255, 255, .85); stroke-width: 3; }
.hero-route .runner { fill: #fff; }
@keyframes dash { to { stroke-dashoffset: -720; } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 14px 6px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: .9rem; font-weight: 700; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--naranja); box-shadow: 0 0 0 4px color-mix(in srgb, var(--naranja) 28%, transparent); }
.hero h1 { color: #fff; }
h1 .hl { display: block; color: #7FD0F5; }
.lead { max-width: 54ch; margin-top: 20px; color: #C9DAEE; font-size: clamp(1.06rem, .96rem + .5vw, 1.25rem); line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-light { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, .16); }
.hero-note { margin-top: 14px; color: #A9C2DE; font-size: .95rem; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; border-top: 1px solid var(--hero-line); }
.hero-facts li { padding: 16px 18px 0 0; }
.hero-facts li + li { padding-left: 18px; border-left: 1px solid var(--hero-line); }
.hero-facts b { display: block; font: 800 1.6rem/1.1 var(--display); font-stretch: 112%; color: #fff; white-space: nowrap; }
.hero-facts span { display: block; margin-top: 4px; color: #A9C2DE; font-size: .9rem; line-height: 1.35; }

/* Demostración de la app. La pantalla usa los colores y los tamaños de la app real, que no tiene modo
   oscuro: fondo blanco, para que se lea al sol. */
.hero-visual { display: grid; justify-items: center; gap: 12px; }
.demo-head { text-align: center; line-height: 1.35; }
.demo-head b { display: block; color: #fff; }
.demo-head span { color: #C9DAEE; font-size: .92rem; }
.demo-foot { color: #A9C2DE; font-size: .85rem; text-align: center; }
.phone { width: min(322px, 100%); padding: 10px; border-radius: 42px; background: #08162B; box-shadow: 0 40px 80px rgba(3, 10, 22, .55), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.phone-screen { display: flex; flex-direction: column; height: 600px; overflow: hidden; border-radius: 32px; background: #fff; color: #142A4C; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.35; color-scheme: light; }
.phone :focus-visible { outline-color: #1D4F8C; outline-offset: 2px; }
.phone button { font-family: inherit; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 9px 18px 5px; color: #586C8B; font-size: 12px; font-weight: 600; }
.ph-net { padding: 2px 9px; border-radius: 999px; background: #FFF3E6; color: #7A440C; transition: background-color .3s, color .3s; }
.ph-net.on { background: #E7F6EF; color: #146B49; }
.ph-top { padding: 6px 16px 12px; border-bottom: 1px solid #D9E4F1; }
.ph-top b { display: block; font-size: 18px; line-height: 1.2; }
.ph-top span { color: #586C8B; font-size: 13px; }
.ph-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 8px; border-bottom: 1px solid #D9E4F1; background: #F3F7FC; }
.ph-steps button { display: grid; justify-items: center; gap: 2px; min-height: 46px; padding: 5px 2px; border: 0; border-radius: 10px; background: transparent; color: #586C8B; font-size: 11.5px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.ph-steps i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #D9E4F1; color: #142A4C; font-style: normal; font-size: 11px; font-weight: 700; }
.ph-steps button[aria-current="step"] { background: #fff; color: #1D4F8C; box-shadow: inset 0 0 0 1.5px #2563A8; }
.ph-steps button[aria-current="step"] i { background: #2563A8; color: #fff; }
.ph-steps button.hecho i { background: #146B49; color: #fff; }
.ph-body { flex: 1; min-height: 0; overflow: auto; padding: 14px; }
.ph-view { display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.ph-saldos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-saldos div { padding: 10px 12px; border-radius: 12px; background: #F3F7FC; }
.ph-saldos small { display: block; color: #586C8B; font-size: 12px; }
.ph-saldos b { font-size: 20px; }
.ph-aviso { padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.ph-aviso.info { background: #EAF2FB; color: #1D4F8C; }
.ph-aviso.aviso { background: #FFF3E6; color: #7A440C; }
.ph-ficha { display: grid; gap: 6px; padding: 10px 12px; border: 1.5px solid #D9E4F1; border-radius: 12px; font-size: 13.5px; }
.ph-ficha div { display: flex; justify-content: space-between; gap: 12px; }
.ph-ficha dt { color: #586C8B; }
.ph-ficha dd { font-weight: 600; text-align: right; }
.ph-pregunta { margin-top: auto; font-size: 18px; font-weight: 700; text-align: center; }
.ph-art { display: grid; gap: 10px; padding: 12px; border: 1.5px solid #B8CBE2; border-radius: 14px; }
.ph-art > b { font-size: 17px; }
.ph-cant { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-cant small { display: block; margin-bottom: 4px; color: #586C8B; font-size: 12px; font-weight: 600; }
.ph-stepper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; overflow: hidden; border: 1.5px solid #B8CBE2; border-radius: 12px; }
.ph-stepper button { height: 46px; padding: 0; border: 0; background: #EAF2FB; color: #1D4F8C; font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer; }
.ph-stepper button:active { background: #D5E6F8; }
.ph-stepper output { font-size: 20px; font-weight: 700; text-align: center; }
.ph-pie { color: #586C8B; font-size: 13px; }
.ph-link { padding: 10px 12px; border: 1.5px dashed #B8CBE2; border-radius: 12px; color: #586C8B; font-size: 14px; font-weight: 600; text-align: center; }
.ph-linea { display: flex; justify-content: space-between; gap: 6px; padding: 10px 12px; border-radius: 12px; background: #F3F7FC; color: #586C8B; font-size: 12.5px; }
.ph-linea b { display: block; color: #142A4C; font-size: 15px; white-space: nowrap; }
.ph-sub { color: #586C8B; font-size: 14px; }
.ph-medios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-medios button { min-height: 46px; padding: 6px 8px; border: 1.5px solid #B8CBE2; border-radius: 12px; background: #fff; color: #142A4C; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.ph-medios button[aria-pressed="true"] { border-color: #2563A8; background: #2563A8; color: #fff; }
.ph-titulo { font-size: 17px; font-weight: 700; }
.ph-resumen { overflow: hidden; border: 1.5px solid #B8CBE2; border-radius: 14px; }
.ph-resumen div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: 14px; }
.ph-resumen div + div { border-top: 1px solid #D9E4F1; }
.ph-resumen dt { color: #586C8B; }
.ph-resumen dd { font-weight: 600; text-align: right; }
.ph-resumen .total { background: #F3F7FC; }
.ph-resumen .total dd { font-size: 18px; }
.ph-hecho { align-items: center; padding-top: 26px; text-align: center; }
.ph-ok { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #E7F6EF; color: #146B49; font-size: 30px; }
.ph-hecho b { font-size: 19px; }
.ph-hecho p { color: #586C8B; font-size: 14px; }
.ph-wa { width: 100%; min-height: 48px; margin-top: 6px; padding: 8px 12px; border: 1.5px solid #146B49; border-radius: 12px; background: #fff; color: #146B49; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.ph-wa[disabled] { border-style: dashed; background: #E7F6EF; cursor: default; }
.ph-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 10px 12px 14px; border-top: 1px solid #D9E4F1; }
.ph-actions.solo { grid-template-columns: 1fr; }
.ph-btn { min-height: 50px; padding: 6px 10px; border: 1.5px solid transparent; border-radius: 14px; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.ph-btn.sec { border-color: #B8CBE2; background: #fff; color: #142A4C; }
.ph-btn.pri { background: #2563A8; color: #fff; }
.ph-btn.ok { background: #146B49; color: #fff; }

/* ---------- Para qué lo hicimos ---------- */
.pillars-wrap { padding: clamp(40px, 6vw, 72px) 0; border-block: 1px solid var(--line); background: var(--tint); }
.pillars-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.objetivo h2 { margin-top: 10px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.objetivo p { max-width: 46ch; margin-top: 14px; color: var(--ink-2); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.pillars li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.pi { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--azul-ink); font-size: 1.25rem; }
.pillars b { display: block; color: var(--heading); }
.pillars div span { color: var(--ink-2); font-size: .97rem; line-height: 1.45; }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; }
.sub { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; }
.note { margin-top: 16px; color: var(--ink-3); font-size: .97rem; }
.caption { margin-top: 28px; color: var(--ink-3); font-size: .88rem; text-align: center; }
.mini-h { margin-top: 26px; font-size: 1.05rem; }
.ticks { display: grid; gap: 10px; margin-top: 18px; }
.ticks li, .feats li { position: relative; padding-left: 28px; }
.ticks li { color: var(--ink-2); line-height: 1.45; }
.ticks li::before, .feats li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 11px; height: 6px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.tags, .alert-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .86rem; font-weight: 600; line-height: 1.35; }
.alert-tags li { padding: 5px 11px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: .86rem; font-weight: 600; line-height: 1.35; }

/* ---------- Un día de reparto ---------- */
.day { --day-gap: clamp(32px, 4.5vw, 52px); display: grid; gap: var(--day-gap); }
.day-stop { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 400px); gap: 10px clamp(20px, 3vw, 44px); align-items: start; padding-left: 44px; }
/* La ruta: punteada, y azul a medida que se recorre la página */
.day-stop::before, .day-stop::after { content: ""; position: absolute; left: 10px; top: 28px; bottom: calc(var(--day-gap) * -1); width: 2px; }
.day-stop::before { background: repeating-linear-gradient(to bottom, var(--line-strong) 0 5px, transparent 5px 11px); }
.day-stop::after { background: var(--azul); transform: scaleY(0); transform-origin: top; transition: transform .7s ease; }
.day-stop.on::after { transform: scaleY(1); }
.day-last::before, .day-last::after { display: none; }
.day-dot { position: absolute; left: 0; top: 3px; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border: 3px solid var(--line-strong); border-radius: 50%; background: var(--bg); color: transparent; transition: background-color .3s, border-color .3s, box-shadow .3s, color .3s; }
.day-dot .i { width: 12px; height: 12px; stroke-width: 3.4; }
.day-stop.on .day-dot { border-color: var(--azul); background: var(--azul); box-shadow: 0 0 0 5px color-mix(in srgb, var(--azul) 20%, transparent); }
.day-last.on .day-dot { border-color: var(--naranja); background: var(--naranja); color: var(--sobre-naranja); box-shadow: 0 0 0 5px color-mix(in srgb, var(--naranja) 24%, transparent); }
.day-when b { display: block; font: 800 1.4rem/1.15 var(--display); font-stretch: 112%; font-variant-numeric: tabular-nums; color: var(--heading); white-space: nowrap; }
.day-when > span:last-child { color: var(--ink-3); font-size: .9rem; font-weight: 600; }
.day-text h3 { font-size: 1.35rem; font-stretch: 106%; line-height: 1.2; }
.day-text p { margin-top: 8px; color: var(--ink-2); }

/* Pantallas ilustrativas */
.mock { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35; }
.mock-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-top b { color: var(--heading); }
.mock-top span { color: var(--ink-3); font-size: .8rem; white-space: nowrap; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.mock-row > span { flex: 1; min-width: 0; }
.mock-row b { display: block; color: var(--heading); font-weight: 600; }
.mock-row small { display: block; color: var(--ink-3); font-size: .8rem; }
.mock-row .n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--info-bg); color: var(--info); font-style: normal; font-size: .78rem; font-weight: 700; }
.mock-row.off b { color: var(--ink-3); font-weight: 400; text-decoration: line-through; }
.mock-row.off .n { background: var(--surface-2); color: var(--ink-3); }
.mock-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.mock-kv span { color: var(--ink-3); font-size: .84rem; }
.mock-kv b { color: var(--heading); font-weight: 600; text-align: right; }
.mock-foot { padding: 9px 14px; background: var(--surface-2); color: var(--ink-3); font-size: .82rem; }
.mock-cta { margin: 12px 14px; padding: 9px; border-radius: 10px; background: var(--azul); color: #fff; font-size: .88rem; font-weight: 700; text-align: center; }
.chip, .dif { padding: 3px 8px; border-radius: 999px; font-style: normal; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.chip.azul { border-color: transparent; background: var(--info-bg); color: var(--info); }
.chip.ok, .dif.ok { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.chip.warn, .dif.warn { border-color: transparent; background: var(--warn-bg); color: var(--warn); }
.dif { display: inline-block; margin-left: 4px; }
.mock-chat { padding-bottom: 6px; }
.bubble { width: fit-content; max-width: calc(100% - 28px); margin: 10px 14px 0; padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: var(--ok-bg); color: var(--ink); font-size: .88rem; line-height: 1.4; }
.bubble small { display: block; margin-top: 2px; color: var(--ink-3); font-size: .72rem; text-align: right; }

/* ---------- La app ---------- */
.section-head .estado { margin-top: 16px; font-size: 1rem; }
.sync { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: clamp(24px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.sync li { position: relative; display: grid; gap: 4px; align-content: start; padding: 20px 22px 22px; }
.sync li + li { border-left: 1px solid var(--line); }
.sync li + li::before { content: ""; position: absolute; left: -8px; top: 32px; width: 14px; height: 14px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); background: var(--surface); transform: rotate(45deg); }
.sync-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 10px; background: var(--info-bg); color: var(--info); font-size: 1.2rem; }
.sync b { color: var(--heading); line-height: 1.3; }
.sync li > span:last-child { color: var(--ink-2); font-size: .93rem; line-height: 1.4; }
.app-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.app-col { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.app-col h3 { margin-bottom: 14px; font-size: 1.2rem; }
.app-col .ticks { margin-top: 0; }
.app-col .ticks li { font-size: .98rem; }

/* ---------- El sistema: módulos ---------- */
.modulos { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.tabs { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 8px; }
.tab { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.tab .i { color: var(--azul-ink); font-size: 1.35rem; }
.tab b { display: block; color: var(--heading); line-height: 1.2; }
.tab small { display: block; margin-top: 2px; color: var(--ink-3); font-size: .86rem; line-height: 1.3; }
.tab:hover { border-color: var(--line-strong); }
.tab[aria-selected="true"] { border-color: var(--tab-on); background: var(--tab-on); }
.tab[aria-selected="true"] b, .tab[aria-selected="true"] .i { color: #fff; }
.tab[aria-selected="true"] small { color: #D3E0F1; }
.tab-panel { padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.tab-panel.entering { animation: panelIn .28s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.feats b { display: block; color: var(--heading); line-height: 1.3; }
.feats li > span { display: block; margin-top: 3px; color: var(--ink-2); font-size: .96rem; line-height: 1.5; }
.feats .soon::before { border-color: var(--warn); }

/* ---------- Panel y portal ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split h2, .start-grid h2, .price-grid h2 { margin-top: 10px; }
.dash { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); line-height: 1.35; }
.dash-top { display: flex; justify-content: space-between; align-items: baseline; }
.dash-top b { color: var(--heading); font-size: 1.1rem; }
.dash-top span { color: var(--ink-3); font-size: .85rem; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.kpi small { display: block; color: var(--ink-3); font-size: .8rem; }
.kpi b { display: block; font: 800 1.35rem/1.25 var(--display); font-variant-numeric: tabular-nums; color: var(--heading); }
.kpi em { color: var(--ink-3); font-style: normal; font-size: .78rem; }
.kpi em.up { color: var(--ok); }
.kpi em.warn { color: var(--warn); }
.dash-label { display: block; margin-bottom: 8px; color: var(--ink-3); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bar-row { display: grid; grid-template-columns: 56px 1fr 44px; gap: 10px; align-items: center; padding: 3px 0; font-size: .86rem; }
.bar-row em { color: var(--ink-3); font-style: normal; font-variant-numeric: tabular-nums; text-align: right; }
.bar { height: 8px; overflow: hidden; border-radius: 999px; background: var(--line); }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--azul); }
.bar i.warn { background: var(--naranja); }
.bar i.ok { background: var(--verde); }
.dash-alert { margin-top: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: .86rem; }
.dash-alert.warn { border-color: transparent; background: var(--warn-bg); color: var(--warn); }

.portal { display: grid; justify-items: center; }
.portal-card { width: min(380px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); line-height: 1.35; }
.portal-head { padding: 16px 18px; background: var(--navy); color: #fff; }
.portal-head small { display: block; color: #D3E0F1; font-size: .78rem; }
.portal-head b { font-size: 1.25rem; }
.portal-sum { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.portal-sum div { padding: 12px 8px; text-align: center; }
.portal-sum div + div { border-left: 1px solid var(--line); }
.portal-sum small { display: block; color: var(--ink-3); font-size: .72rem; }
.portal-sum b { color: var(--heading); font-size: 1.05rem; }
.portal-actions { display: grid; gap: 8px; padding: 14px 18px; }
.portal-actions span { padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); font-size: .9rem; font-weight: 600; text-align: center; }
.portal-actions .pa-main { border-color: var(--azul); background: var(--azul); color: #fff; }
.portal-docs { padding: 4px 18px 14px; }
.portal-docs small { color: var(--ink-3); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.portal-docs p { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.portal-docs p:last-child { border-bottom: 0; }
.portal-docs em { color: var(--azul-ink); font-style: normal; font-size: .78rem; font-weight: 700; }

/* ---------- Tus datos ---------- */
.secure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.secure li { display: grid; gap: 6px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.secure b { margin-top: 6px; color: var(--heading); line-height: 1.3; }
.secure li > span:last-child { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }

.compare-wrap { margin-top: clamp(36px, 5vw, 56px); }
.compare-title { margin-bottom: 14px; font-size: 1.3rem; }
.compare { width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); border-collapse: separate; border-spacing: 0; background: var(--surface); font-size: .97rem; line-height: 1.35; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare thead th { background: var(--surface-2); color: var(--ink-3); font-size: .84rem; font-weight: 700; }
.compare thead th.us { background: var(--navy); color: #fff; }
.compare tbody th { color: var(--heading); font-weight: 600; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare td { color: var(--ink-2); }
.compare td.us { background: color-mix(in srgb, var(--azul) 9%, var(--surface)); color: var(--heading); font-weight: 700; }
.compare td::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--line-strong); }
.compare td.yes::before { background: var(--verde); }
.compare td.mid::before { background: var(--naranja); }
.compare td.no::before { background: var(--rojo); }

/* ---------- Precio ---------- */
.section-deep { position: relative; background: var(--navy-deep); color: #DBE6F4; }
.section-deep::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--franja); }
.section-deep h2 { color: #fff; }
.section-deep .sub { color: #C6D5E9; }
.eyebrow.on-deep { color: #9FD3F3; }
.eyebrow.on-deep::before { background: linear-gradient(90deg, #3FA9E0, #EF8A2B); }
.price-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.price-card { display: grid; gap: 4px; align-content: start; padding: 20px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); }
.p-label { color: #9FD3F3; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.p-big { font: 800 clamp(2.2rem, 4vw, 3rem)/1.05 var(--display); font-stretch: 112%; color: #fff; white-space: nowrap; }
.p-sub { color: #C6D5E9; font-size: .95rem; line-height: 1.4; }
.price-card-accent { border-color: var(--naranja); background: var(--naranja); }
.price-card-accent .p-label, .price-card-accent .p-big, .price-card-accent .p-sub { color: var(--sobre-naranja); }
.price-notes { display: grid; gap: 8px; margin-top: 22px; }
.price-notes li { position: relative; padding-left: 20px; color: #C6D5E9; font-size: .97rem; }
.price-notes li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--celeste); }
.calc { display: grid; gap: 16px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.calc h3 { font-size: 1.3rem; }
.money { display: flex; align-items: center; padding-left: 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--bg); }
.money span { color: var(--ink-3); font-weight: 700; }
.money input { min-height: 50px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.money input:focus { outline: 0; box-shadow: none; }
.money:focus-within { border-color: var(--focus); box-shadow: 0 0 0 4px var(--ring); }
.calc-out { display: grid; gap: 2px; padding: 16px; border-radius: 14px; background: var(--info-bg); }
.calc-out small { color: var(--ink-2); font-size: .86rem; }
.calc-out b { font: 800 clamp(2rem, 4vw, 2.6rem)/1.1 var(--display); font-stretch: 112%; font-variant-numeric: tabular-nums; color: var(--heading); }
.calc-out span { color: var(--ink-3); font-size: .86rem; }
.calc-eg { color: var(--ink-3); font-size: .92rem; }

/* ---------- Formularios ---------- */
.card-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { color: var(--heading); font-size: .95rem; font-weight: 600; }
.opt { color: var(--ink-3); font-weight: 400; }
input, select, textarea { width: 100%; min-height: 48px; padding: .65rem .85rem; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--ink); }
textarea { resize: vertical; line-height: 1.5; }
input::placeholder { color: var(--ink-3); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 4px var(--ring); }
[aria-invalid="true"] { border-color: var(--bad); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-help { color: var(--ink-3); font-size: .86rem; line-height: 1.4; }
.field-error { color: var(--bad); font-size: .86rem; font-weight: 600; line-height: 1.4; }
.registro-titulo { font-size: 1.35rem; }
.registro-grupo { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.registro-grupo legend { margin-bottom: 10px; padding: 0; color: var(--azul-ink); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.captcha-row img { width: 200px; height: 64px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; color: var(--ink-2); font-size: .95rem; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--azul); }
.check.invalid { color: var(--bad); }
.form-msg { padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-weight: 600; line-height: 1.45; }
.form-msg.err { background: var(--bad-bg); color: var(--bad); }
.form-legal { color: var(--ink-3); font-size: .86rem; }

/* ---------- Empezá ---------- */
.start-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.start-info { position: sticky; top: calc(var(--header-h) + 24px); }
.vsteps { display: grid; margin-top: 26px; }
.start-steps .note:last-child { margin-bottom: 0; }
.vsteps li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-bottom: 22px; }
.vsteps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.rstop { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--azul); border-radius: 50%; background: var(--bg); color: var(--azul-ink); font-weight: 800; }
.vstep-done .rstop { border-color: var(--naranja); background: var(--naranja); color: var(--sobre-naranja); }
.vsteps div > b { display: block; color: var(--heading); }
.vsteps div > span { display: block; color: var(--ink-2); font-size: .97rem; line-height: 1.45; }

/* ---------- Avance ---------- */
.status-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 16px; align-items: start; }
.scol { padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); }
.scol h3 { display: flex; align-items: center; gap: 8px; }
.sdot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.scol-done { border-top-color: var(--verde); }
.scol-done .sdot { background: var(--verde); }
.scol-test { border-top-color: var(--celeste); }
.scol-test .sdot { background: var(--celeste); }
.scol-now { border-top-color: var(--naranja); }
.scol-now .sdot { background: var(--naranja); }
.scol-sub { margin: 4px 0 14px; color: var(--ink-3); font-size: .88rem; }
.scol ul { display: grid; gap: 9px; }
.scol li { position: relative; padding-left: 16px; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.scol li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }

/* ---------- Preguntas ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 58px; padding: 14px 50px 14px 18px; border-radius: var(--radius); color: var(--heading); font-weight: 700; line-height: 1.35; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--azul-ink); border-bottom: 2.5px solid var(--azul-ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 18px 18px; color: var(--ink-2); }

/* ---------- Contacto ---------- */
#contacto .split { align-items: start; }
.contact-list { display: grid; gap: 2px; margin-top: 22px; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-list b { min-width: 130px; color: var(--heading); }

/* ---------- Pie ---------- */
.site-footer { padding: 56px 0 24px; background: var(--night); color: #B9C8DC; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-about p { max-width: 34ch; margin-top: 14px; font-size: .97rem; }
.footer-brand { gap: 12px; margin-right: 0; }
.footer-brand .brand-mark { height: 50px; filter: url(#logoDark); }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-word span:first-child { font-size: 1.2rem; }
.footer-brand .brand-word span:last-child { font-size: .94rem; }
.footer-col { display: grid; align-content: start; }
.footer-col b { margin-bottom: 6px; color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { padding: 9px 0; color: #B9C8DC; text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }
.footer-bottom { align-items: center; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: #B9C8DC; }
.site-footer :focus-visible { outline-color: #62C0EE; }
.footer-mini { padding: 22px 0; }
.footer-mini .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* Botón de registro siempre a mano, solo en el celular */
.cta-bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -10px 28px -16px rgba(20, 42, 76, .45); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
.cta-bar span { color: var(--ink-2); font-size: .88rem; line-height: 1.25; }
.cta-bar b { display: block; color: var(--heading); font-size: 1rem; }
.cta-bar .btn { flex: none; }

/* ---------- Páginas legales ---------- */
.legal-main { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal-doc { max-width: 760px; margin-inline: auto; }
.legal-doc h1 { margin-top: 10px; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.legal-meta { margin-top: 12px; color: var(--ink-3); font-size: .95rem; }
.legal-body { display: grid; gap: 16px; margin-top: 28px; color: var(--ink-2); }
.legal-empty { display: grid; gap: 10px; margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
.legal-back { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Aparición al hacer scroll (la activa main.js; sin JavaScript todo se ve) ---------- */
.reveal-ready .reveal { transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.reveal-ready .reveal:not(.in) { opacity: 0; transform: translateY(14px); }

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1100px) {
  .status-cols { grid-template-columns: 1fr 1fr; }
  .day-stop { grid-template-columns: 104px minmax(0, 1fr) minmax(0, 340px); }
}
@media (max-width: 1000px) {
  .menu-toggle { display: inline-grid; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - var(--header-h)); margin: 0; padding: 4px 20px 20px; overflow: auto; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: 0 24px 40px -24px rgba(20, 42, 76, .45); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--azul-ink); }
  .main-nav .nav-login { padding-left: 4px; border-left: 0; }
  .main-nav .nav-cta { display: flex; margin-top: 16px; padding: .8rem 1.25rem; border: 0; border-radius: 12px; color: var(--sobre-naranja); }
  .modulos { grid-template-columns: 1fr; gap: 16px; }
  .tabs { position: static; grid-template-columns: repeat(4, 1fr); }
  .tab { flex-direction: column; justify-content: center; gap: 6px; min-height: 76px; padding: 12px 8px; text-align: center; }
  .tab small { display: none; }
  .app-cols { grid-template-columns: 1fr; }
  .app-col .ticks { grid-template-columns: 1fr 1fr; gap: 10px 28px; }
  .secure { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid, .pillars-grid, .split, .price-grid, .start-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { margin-top: 8px; }
  /* En una columna la ruta cruzaría el texto: queda tenue y sin paradas */
  .hero-route { opacity: .28; }
  .hero-route .stop, .hero-route .runner { display: none; }
  .faq-grid .section-head { position: static; }
  .start-grid { gap: 28px; }
  .start-info { display: contents; }
  .start-head { order: 1; }
  .registro-form { order: 2; }
  .start-steps { order: 3; }
  .start-steps .vsteps { margin-top: 0; }
  .faq-grid .section-head { margin-bottom: 0; }
  .split-rev .portal { order: 2; }
  .day-stop { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-left: 40px; }
  .day-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .mock { max-width: 460px; }
  .sync { grid-template-columns: 1fr; }
  .sync li { grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 16px 18px; }
  .sync li + li { border-left: 0; border-top: 1px solid var(--line); }
  .sync li + li::before { display: none; }
  .sync-ico { grid-row: span 2; margin: 0; }
}
@media (max-width: 760px) {
  .cta-bar:not([hidden]) { display: flex; }
  .cta-bar.show { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
  /* La comparación pasa de tabla a una tarjeta por fila, con los tres valores lado a lado */
  .compare { border: 0; border-radius: 0; background: transparent; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tbody { display: grid; gap: 10px; }
  .compare tbody tr { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .compare tbody th { grid-column: 1 / -1; padding: 10px 14px; background: var(--surface-2); }
  .compare tbody tr:last-child > th { border-bottom: 1px solid var(--line); }
  .compare td { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; border-bottom: 0; font-size: .9rem; line-height: 1.3; box-shadow: inset 0 3px 0 var(--line-strong); }
  .compare td + td { border-left: 1px solid var(--line); }
  .compare td.yes { box-shadow: inset 0 3px 0 var(--verde); }
  .compare td.mid { box-shadow: inset 0 3px 0 var(--naranja); }
  .compare td.no { box-shadow: inset 0 3px 0 var(--rojo); }
  .compare td::before { display: none; }
  .compare td::after { content: attr(data-col); order: -1; min-height: 2.6em; color: var(--ink-3); font-size: .72rem; font-weight: 400; }
}
@media (max-width: 640px) {
  .tabs { grid-template-columns: 1fr 1fr; }
  .tab { flex-direction: row; justify-content: flex-start; min-height: 56px; padding: 10px 12px; text-align: left; }
  .feats, .app-col .ticks, .field-row, .status-cols, .price-cards { grid-template-columns: 1fr; }
  .app-col { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .site-footer { padding-top: 40px; }
  .footer-bottom { margin-top: 24px; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .hero-ctas .btn { width: 100%; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li, .hero-facts li + li { display: grid; grid-template-columns: 6.6rem 1fr; gap: 12px; align-items: center; padding: 12px 0; border-left: 0; }
  .hero-facts b { font-size: 1.35rem; }
  .phone { padding: 8px; border-radius: 38px; }
  .phone-screen { height: 548px; border-radius: 30px; }
  .hero-facts li + li { border-top: 1px solid var(--hero-line); }
  .hero-facts span { margin-top: 0; }
  .pillars, .secure { grid-template-columns: 1fr; }
  .secure { gap: 10px; }
  .secure li { grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 16px; }
  .secure .pi { grid-row: span 2; }
  .secure b { margin-top: 0; }
  .contact-list b { min-width: 100%; }
}
@media (max-width: 370px) {
  .header-row .brand-word { display: none; }
  .container { width: min(1180px, 100% - 32px); }
  .ph-linea { font-size: 11.5px; }
  .ph-linea b { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal-ready .reveal:not(.in) { opacity: 1; transform: none; }
}
@media print {
  .site-header, .cta-bar, .hero-visual, .hero-route { display: none !important; }
  .reveal-ready .reveal:not(.in) { opacity: 1; transform: none; }
}
