/* ==========================================================================
   AlDía · Landing de marketing
   CSS estático (sin Vite): el despliegue en DOM Cloud no ejecuta npm build.
   Tokens derivados de la paleta de la app (ui/theme/Theme.kt en AlDia-KMP).
   ========================================================================== */

:root {
    /* Color */
    --paper: #EEF4F0;          /* papel menta */
    --paper-2: #E3ECE6;
    --card: #F9FCFA;
    --ink: #0B2A22;            /* tinta selva */
    --ink-2: #3B564C;
    --ink-3: #5E766C;
    --line: #C9D8CF;
    --emerald: #047857;
    --emerald-2: #059669;
    --mint: #6EE7B7;
    --mint-soft: #D1FAE5;
    --out: #B42329;            /* gasto */
    --in: #047857;             /* ingreso */
    --marker: #FCD34D;         /* "ahora" y resaltador */
    --yape: #742284;
    --plin: #00788A;
    --card-blue: #2563EB;
    --cash: #15803D;

    --dark-bg: #0B2A22;
    --dark-ink: #E4F1EA;
    --dark-ink-2: #A3BDB1;
    --dark-line: #24463B;

    /* Tipografía */
    --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
    --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    /* Espacio y forma */
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section: clamp(4.5rem, 10vw, 8.5rem);
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --shadow: 0 1px 2px rgb(11 42 34 / .06), 0 12px 32px -12px rgb(11 42 34 / .18);
    --ease: cubic-bezier(.2, .7, .2, 1);

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #08150F;
        --paper-2: #0D1E17;
        --card: #10241C;
        --ink: #E4F1EA;
        --ink-2: #B3C9BE;
        --ink-3: #8EA79B;
        --line: #23413A;
        --emerald: #6EE7B7;
        --emerald-2: #34D399;
        --mint-soft: #123A2D;
        --out: #FF8F8F;
        --in: #6EE7B7;
        --yape: #D08BE0;
        --plin: #5ED8E6;
        --card-blue: #8AB4FF;
        --cash: #7BDC9B;
        --dark-bg: #0F2C23;
        --dark-line: #2A5145;
        --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -16px rgb(0 0 0 / .7);
        color-scheme: dark;
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
strong { font-weight: 700; }

:focus-visible {
    outline: 3px solid var(--marker);
    outline-offset: 3px;
    border-radius: 6px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: var(--r-sm);
    text-decoration: none; font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap {
    width: 100%; max-width: 76rem; margin-inline: auto;
    /* Respeta el notch en celulares en horizontal (viewport-fit=cover) */
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-stretch: 87.5%; }

/* ---------- Tipos ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--f-mono); font-size: .72rem; font-weight: 500; font-stretch: 87.5%;
    letter-spacing: .08em; text-transform: uppercase; color: var(--emerald);
}
.eyebrow--dark { color: var(--mint); }
.h2 {
    font-family: var(--f-display);
    font-stretch: 75%;
    font-weight: 750;
    font-size: clamp(2.2rem, 5.2vw, 4.1rem);
    line-height: .98;
    letter-spacing: -.015em;
    text-wrap: balance;
}
.h3 {
    font-family: var(--f-display);
    font-stretch: 87.5%;
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.12;
    letter-spacing: -.005em;
    text-wrap: balance;
}
.section-head { display: grid; gap: 1rem; max-width: 48rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

/* ---------- Navegación ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.25rem; }
.nav__links { display: flex; gap: .25rem; }
.nav__links a {
    display: block; padding: .5rem .8rem; border-radius: var(--r-sm);
    text-decoration: none; font-size: .95rem; color: var(--ink-2);
    transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--paper-2); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }

/* Botón de menú (solo pantallas angostas) */
.nav__toggle {
    display: none; place-items: center;
    width: 2.75rem; height: 2.75rem; padding: 0;
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--card); color: var(--ink); cursor: pointer;
}
.nav__toggle[hidden] { display: none !important; }
.nav__burger, .nav__burger::before, .nav__burger::after {
    display: block; width: 1.1rem; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .25s var(--ease), background-color .2s;
}
.nav__burger { position: relative; }
.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
.nav__burger::before { transform: translateY(-6px); }
.nav__burger::after { transform: translateY(6px); }
.nav.is-open .nav__burger { background: transparent; }
.nav.is-open .nav__burger::before { transform: rotate(45deg); }
.nav.is-open .nav__burger::after { transform: rotate(-45deg); }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand__mark {
    /* Marca: un día (círculo) con la hora actual marcada */
    width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background:
        linear-gradient(var(--marker), var(--marker)) 50% 14% / 3px 38% no-repeat,
        var(--emerald);
    box-shadow: inset 0 0 0 3px var(--emerald), inset 0 0 0 5px var(--paper);
}
.brand__word {
    font-family: var(--f-display); font-stretch: 75%; font-weight: 800;
    font-size: 1.55rem; letter-spacing: -.01em; line-height: 1;
}
.brand__word b { color: var(--emerald); font-weight: 800; }
.brand--small .brand__word { font-size: 1.3rem; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .7rem 1.2rem; border-radius: 12px;
    background: var(--ink); color: var(--paper);
    font-weight: 700; font-size: .95rem; text-decoration: none;
    transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { background: var(--emerald); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--small { padding: .55rem 1rem; font-size: .9rem; }

.stores { display: flex; flex-wrap: wrap; gap: .75rem; }
.store {
    display: inline-flex; align-items: center; gap: .8rem;
    padding: .8rem 1.4rem .8rem 1.1rem; border-radius: 14px;
    text-decoration: none; line-height: 1.1;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.store--dark { background: var(--ink); color: var(--paper); }
.store--light { background: var(--paper); color: var(--ink); }
.store__icon { width: 1.5rem; height: 1.5rem; color: var(--mint); }
.store--light .store__icon { color: var(--emerald); }
.store__text { display: grid; font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; font-size: 1.25rem; }
.store__text small { font-family: var(--f-body); font-stretch: 100%; font-weight: 500; font-size: .74rem; opacity: .8; }
@media (hover: hover) { a.store:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
a.store:active { transform: translateY(0); }
.store--soon { cursor: default; }
.store--soon.store--dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.store--soon.store--dark .store__icon { color: var(--emerald); }
.store--soon.store--light { background: transparent; color: var(--dark-ink); box-shadow: inset 0 0 0 2px var(--dark-ink); }
.store--soon.store--light .store__icon { color: var(--mint); }

.link-arrow {
    font-weight: 700; text-decoration: none; color: var(--ink);
    border-bottom: 2px solid var(--marker); padding-bottom: 2px;
    transition: border-color .2s;
}
.link-arrow::after { content: " ↓"; }
.link-arrow:hover { border-color: var(--emerald); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7rem); }
.hero__grid {
    display: grid; gap: clamp(2.5rem, 6vw, 4.5rem);
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
}
.hero__copy { display: grid; gap: 1.6rem; justify-items: start; }
.pulse {
    width: .55rem; height: .55rem; border-radius: 50%; background: var(--emerald-2);
    box-shadow: 0 0 0 0 rgb(5 150 105 / .5);
    animation: pulse 2.4s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 .55rem rgb(5 150 105 / 0); } 100% { box-shadow: 0 0 0 0 rgb(5 150 105 / 0); } }

.hero__title {
    font-family: var(--f-display);
    font-stretch: 75%;
    font-weight: 800;
    font-size: clamp(3.1rem, 7.6vw, 6.9rem);
    line-height: .9;
    letter-spacing: -.025em;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--emerald); }
.hero__title .num {
    white-space: nowrap;
    background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 92%, transparent 92%) no-repeat;
    background-size: 0% 100%;
    animation: highlight 0.9s .5s var(--ease) forwards;
    padding-inline: .04em;
}
@media (prefers-color-scheme: dark) {
    .hero__title .num { color: var(--marker); background-image: linear-gradient(transparent 88%, var(--marker) 88%); }
}
@keyframes highlight { to { background-size: 100% 100%; } }

.hero__lead { max-width: 34rem; font-size: clamp(1.08rem, 1.4vw, 1.2rem); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .92rem; color: var(--ink-3); }
.hero__facts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__facts li::before {
    content: ""; width: .9rem; height: .9rem; border-radius: 50%;
    background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.8 11 12 5.4' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* ---------- Firma: "Tu día" ---------- */
.day {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.25rem 0;
    overflow: hidden;
}
.day::before {
    /* Cuadrícula tenue de horas, como papel de cuaderno contable */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0 27px, color-mix(in srgb, var(--line) 28%, transparent) 27px 28px);
    mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent);
}
.day__head { position: relative; display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.day__title { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: 1.6rem; line-height: 1; }
.day__meta { font-size: .72rem; color: var(--ink-3); }

.day__rail { position: relative; display: grid; padding-block: .75rem; }
.day__rail::before {
    /* Línea del tiempo */
    content: ""; position: absolute; top: 0; bottom: 0; left: 3.55rem; width: 2px;
    background: linear-gradient(var(--line), var(--line)) center / 2px 100% no-repeat;
}

.entry {
    position: relative;
    display: grid; grid-template-columns: 3.1rem 1fr; gap: 1.1rem;
    padding-block: .7rem;
}
.entry::before {
    /* Punto en la línea del tiempo */
    content: ""; position: absolute; left: 3.25rem; top: 1.05rem;
    width: .75rem; height: .75rem; border-radius: 50%;
    background: var(--card); border: 2px solid var(--ink-3);
    animation: dot .4s var(--ease) both;
}
.entry__time { font-size: .75rem; color: var(--ink-3); padding-top: .55rem; }
.entry__body { display: grid; gap: .35rem; min-width: 0; }
.entry__raw {
    justify-self: start; max-width: 100%;
    font-size: .68rem; line-height: 1.45; color: var(--ink-2);
    background: var(--paper-2); border-radius: 8px; padding: .3rem .55rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    animation: raw-in .55s var(--ease) both, raw-read .5s var(--ease) both;
}
.entry__row {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem;
    animation: row-in .5s var(--ease) both;
}
.entry__what { font-weight: 700; font-size: .95rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry__what small { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-3); }
.amt { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.amt--out { color: var(--out); }
.amt--in { color: var(--in); }

/* Secuencia: cada aviso llega, se lee y se convierte en movimiento */
.entry:nth-of-type(1) { --d: .5s; }
.entry:nth-of-type(2) { --d: 1.6s; }
.entry:nth-of-type(3) { --d: 2.7s; }
.entry:nth-of-type(4) { --d: 3.8s; }
.entry::before { animation-delay: var(--d); }
.entry__raw { animation-delay: var(--d), calc(var(--d) + .75s); }
.entry__row { animation-delay: calc(var(--d) + .55s); }
.entry.is-done::before { background: var(--emerald-2); border-color: var(--emerald-2); }

@keyframes dot { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes raw-in {
    from { opacity: 0; transform: translateY(-8px); clip-path: inset(0 100% 0 0 round 8px); }
    to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 8px); }
}
@keyframes raw-read { to { opacity: .55; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent); } }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chip {
    --c: var(--ink-3);
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .7rem; font-weight: 700; letter-spacing: .01em;
    padding: .2rem .5rem .2rem .4rem; border-radius: 999px;
    color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
}
.chip::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--c); }
.chip--yape { --c: var(--yape); }
.chip--plin { --c: var(--plin); }
.chip--card { --c: var(--card-blue); }
.chip--cash { --c: var(--cash); }

.day__now {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: .5rem;
    margin-block: .1rem;
}
.day__now::after { content: ""; flex: 1; height: 2px; background: var(--marker); border-radius: 2px; }
.day__now span {
    flex: none; white-space: nowrap;
    font-size: .62rem; font-weight: 600; line-height: 1;
    background: var(--marker); color: #3A2A00;
    padding: .3rem .45rem; border-radius: 6px;
}
.day__now[hidden] { display: none; }

.day__totals {
    position: relative;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: -1.25rem; border-top: 1px solid var(--line);
    background: var(--paper-2);
}
.day__totals div { padding: .9rem 1.25rem 1rem; display: grid; gap: .15rem; }
.day__totals div + div { border-left: 1px solid var(--line); }
.day__totals dt { font-size: .75rem; color: var(--ink-3); }
.day__totals dd { font-size: 1rem; font-weight: 600; }

/* ==========================================================================
   CÓMO FUNCIONA
   ========================================================================== */
.how {
    background: var(--dark-bg); color: var(--dark-ink);
    padding-block: var(--section);
    border-radius: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) 0 0;
}
.how .h2 { color: var(--dark-ink); }

.specimen {
    max-width: 62rem;
    border: 1px solid var(--dark-line);
    border-radius: var(--r-lg);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    background: color-mix(in srgb, #000 18%, var(--dark-bg));
}
.specimen__app { font-size: .72rem; color: var(--dark-ink-2); margin-bottom: 1.5rem; }
.specimen__text {
    font-family: var(--f-display); font-stretch: 87.5%; font-weight: 500;
    font-size: clamp(1.45rem, 3.4vw, 2.6rem);
    line-height: 2.15;
    letter-spacing: -.01em;
}
.tag {
    position: relative; color: inherit; background: none;
    font-weight: 700; white-space: nowrap;
    box-shadow: inset 0 -.32em 0 var(--tag);
    padding-inline: .06em;
}
.tag::before {
    content: attr(data-label);
    position: absolute; left: 0; bottom: 100%;
    font-family: var(--f-mono); font-stretch: 87.5%; font-size: max(.62rem, .3em); font-weight: 500;
    letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
    color: var(--tag-ink, var(--tag));
    white-space: nowrap;
}
.tag--amt { --tag: rgb(252 211 77 / .45); --tag-ink: var(--marker); }
.tag--who { --tag: rgb(110 231 183 / .32); --tag-ink: var(--mint); }
.tag--op { --tag: rgb(208 139 224 / .35); --tag-ink: #E3B5EE; }

.steps {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(3rem, 6vw, 4.5rem);
}
.step { display: grid; align-content: start; gap: .8rem; padding-top: 1.25rem; border-top: 1px solid var(--dark-line); }
.step p { color: var(--dark-ink-2); font-size: 1rem; }
.step strong { color: var(--dark-ink); }
.step__n {
    font-size: .8rem; font-weight: 600; color: var(--dark-bg);
    background: var(--mint); width: 1.8rem; height: 1.8rem; border-radius: 50%;
    display: grid; place-items: center;
}
.mini-notif {
    display: grid; gap: .2rem;
    background: #F2F5F3; color: #1A2420;
    border-radius: 14px; padding: .8rem .95rem .7rem;
    font-size: .82rem; line-height: 1.35;
    box-shadow: 0 10px 30px -12px rgb(0 0 0 / .6);
}
.step .mini-notif strong { font-size: .88rem; color: #1A2420; }
.mini-notif__actions { display: flex; gap: 1.2rem; margin-top: .35rem; }
.mini-notif__actions b { color: #047857; font-size: .8rem; }

/* ==========================================================================
   FUNCIONES
   ========================================================================== */
.features { padding-block: var(--section); }
.feature-list {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.feature {
    display: grid; align-content: start; gap: .75rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: clamp(1.4rem, 2.6vw, 2rem);
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
@media (hover: hover) { .feature:hover { border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); } }
.feature p:not([class]) { color: var(--ink-2); font-size: 1rem; }
.feature__kicker { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald); }
.feature--wide { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 2rem; align-items: center; }
.feature__text { display: grid; gap: .75rem; }
.feature--dark { grid-column: span 2; background: var(--dark-bg); border-color: var(--dark-bg); color: var(--dark-ink); }
.feature--dark p:not([class]) { color: var(--dark-ink-2); }
.feature--dark .feature__kicker { color: var(--mint); }
.feature--dark .h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }

/* Voucher con línea de escaneo */
.voucher {
    position: relative; overflow: hidden;
    display: grid; gap: .3rem; justify-items: start;
    background: #FFFFFF; color: #1A2420;
    padding: 1.1rem 1.1rem 1.6rem;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    --zz: 10px;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
}
.voucher__title { font-size: .72rem; font-weight: 700; color: #5E766C; text-transform: uppercase; letter-spacing: .06em; }
.voucher__amt { font-size: 1.6rem; font-weight: 600; color: #0B2A22; margin-block: .1rem .25rem; }
.voucher__line { font-size: .74rem; color: #3B564C; }
.voucher__scan {
    position: absolute; left: 0; right: 0; top: 0; height: 2.5rem; pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgb(5 150 105 / .22) 85%, #059669 85% 100%);
    animation: scan 3.2s var(--ease) infinite;
}
@keyframes scan { 0% { transform: translateY(-2.5rem); } 60%, 100% { transform: translateY(12rem); } }

.memory {
    display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem;
    margin-top: .4rem; font-size: .72rem;
}
.memory span:not(.memory__arrow) { background: var(--paper-2); border-radius: 8px; padding: .3rem .5rem; color: var(--ink); }
.memory__arrow { color: var(--emerald); }

.quick { display: flex; gap: .5rem; margin-top: .4rem; }
.quick__b {
    flex: 1; text-align: center; padding: .6rem 0; border-radius: 12px;
    font-size: .95rem; font-weight: 600;
}
.quick__b--out { background: color-mix(in srgb, var(--out) 12%, transparent); color: var(--out); }
.quick__b--in { background: color-mix(in srgb, var(--in) 14%, transparent); color: var(--in); }

/* ==========================================================================
   PLANES
   ========================================================================== */
.plans { padding-block: 0 var(--section); }
.plans__table {
    border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    background: var(--card);
}
.plans__row {
    display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}
.plans__row + .plans__row { border-top: 1px solid var(--line); }
.plans__row > * { padding: 1rem clamp(1rem, 2.5vw, 1.75rem); }
.plans__row [role="rowheader"] { font-weight: 700; }
.plans__row [role="cell"] { color: var(--ink-2); font-size: .98rem; }
.plans__row--head > * {
    font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: 1.6rem; line-height: 1;
    padding-block: 1.4rem;
}
.plans__pro { background: var(--mint-soft); align-self: stretch; display: flex; align-items: center; }
.plans__row [role="cell"].plans__pro { color: var(--ink); font-weight: 700; }
.plans__row--head .plans__pro { color: var(--emerald); }
.plans__note { margin-top: 1rem; font-size: .92rem; color: var(--ink-3); }

/* ==========================================================================
   CONFIANZA
   ========================================================================== */
.trust { padding-block: var(--section); border-top: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.trust__title { position: sticky; top: 6rem; }
.trust__list { display: grid; gap: 0; }
.trust__list li { padding-block: 1.3rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.trust__list li:first-child { padding-top: 0; }
.trust__list strong { display: block; color: var(--ink); font-family: var(--f-display); font-stretch: 87.5%; font-size: 1.25rem; margin-bottom: .2rem; }

/* ==========================================================================
   PREGUNTAS
   ========================================================================== */
.faq { padding-block: 0 var(--section); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.2rem 0; cursor: pointer; list-style: none;
    font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background:
        linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 2px 10px no-repeat,
        var(--paper-2);
    transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--emerald); }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--ink-2); }

/* ==========================================================================
   DESCARGA
   ========================================================================== */
.cta {
    background: var(--dark-bg); color: var(--dark-ink);
    padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem);
    overflow: hidden;
}
.cta__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; justify-items: start; }
.cta__ticker {
    width: max-content; font-size: .8rem; color: var(--dark-ink-2); white-space: nowrap;
    animation: ticker 40s linear infinite;
}
@keyframes ticker { to { transform: translateX(-50%); } }
.cta__title {
    font-family: var(--f-display); font-stretch: 75%; font-weight: 800;
    font-size: clamp(2.6rem, 7vw, 6rem); line-height: .92; letter-spacing: -.02em;
    text-wrap: balance;
}

/* ==========================================================================
   PIE
   ========================================================================== */
.foot { background: var(--dark-bg); color: var(--dark-ink-2); border-top: 1px solid var(--dark-line); padding-block: 2.25rem 2.75rem; font-size: .88rem; }
.foot__inner { display: grid; grid-template-columns: auto 1fr; gap: .75rem 2rem; align-items: center; }
.foot .brand__word { color: var(--dark-ink); }
.foot .brand__word b { color: var(--mint); }
.foot .brand__mark { box-shadow: inset 0 0 0 3px var(--emerald), inset 0 0 0 5px var(--dark-bg); }
.foot__legal { grid-column: 1 / -1; font-size: .78rem; opacity: .8; max-width: 52rem; }

/* ==========================================================================
   RESPONSIVE
   Escritorio grande ≥1600 · escritorio/laptop · tablet ≤960 · tablet vertical ≤900
   · celular ≤760 · celular angosto ≤420 · celular muy angosto ≤350 · horizontal bajo
   ========================================================================== */

/* Monitores grandes: todo escala un poco para no verse diminuto */
@media (min-width: 1600px) {
    html { font-size: 106.25%; }
    .wrap { max-width: 80rem; }
}

/* Tablet horizontal y laptops chicas */
@media (max-width: 960px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
    .hero__copy { max-width: 40rem; }
    .day { width: 100%; }
    .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature--dark { grid-column: auto; }
    .trust__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
    .trust__title { position: static; }
}

/* Tablet vertical: los pasos pasan a una columna con el número al costado */
@media (max-width: 900px) {
    .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .step {
        grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 1rem;
        padding-block: 1.5rem;
    }
    .step > :not(.step__n) { grid-column: 2; }
    .step__n { grid-row: 1 / span 4; }
    .mini-notif { max-width: 26rem; }
}

/* Celulares */
@media (max-width: 760px) {
    .nav__toggle { display: inline-grid; }
    .nav__menu {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px -18px rgb(11 42 34 / .35);
        padding: .25rem max(var(--gutter), env(safe-area-inset-right)) 1rem max(var(--gutter), env(safe-area-inset-left));
        visibility: hidden; opacity: 0; transform: translateY(-6px);
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
    }
    .nav.is-open { border-bottom-color: var(--line); }
    .nav.is-open .nav__menu {
        visibility: visible; opacity: 1; transform: none;
        transition: opacity .2s var(--ease), transform .2s var(--ease);
    }
    .nav__links { display: grid; gap: 0; }
    .nav__links a {
        display: flex; align-items: center; min-height: 3.25rem;
        padding: 0 .25rem; border-radius: 0;
        border-bottom: 1px solid var(--line);
        font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; font-size: 1.3rem; color: var(--ink);
    }
    .nav__links li:last-child a { border-bottom: 0; }

    .hero { padding-top: 2rem; }
    .hero__actions { gap: 1rem 1.5rem; }
    .feature-list { grid-template-columns: minmax(0, 1fr); }
    .feature--wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
    .voucher { max-width: 15rem; }
    .plans__row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
    .plans__row > * { padding: .85rem .7rem; }
    .plans__row [role="rowheader"], .plans__row [role="cell"] { font-size: .9rem; }
    .plans__row--head > * { font-size: 1.3rem; }
    .faq details p { padding-right: 0; }
    .foot__inner { grid-template-columns: minmax(0, 1fr); }
}

/* Tabla de planes en celular: la función arriba, Gratis | Pro debajo */
@media (max-width: 520px) {
    .plans__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plans__row--head > :first-child { display: none; }
    .plans__row > * { padding: .7rem 1rem; }
    .plans__row [role="rowheader"] { grid-column: 1 / -1; padding-bottom: .1rem; font-size: .95rem; }
    .plans__row [role="cell"] { padding-top: .35rem; font-size: .92rem; }
    .plans__row--head > * { font-size: 1.35rem; padding-block: 1rem; }
    .plans__pro { align-self: stretch; }
}

/* Celulares angostos (≈ 360–420 px) */
@media (max-width: 420px) {
    body { font-size: 1rem; }
    .day { padding-inline: 1rem; }
    .day__totals { margin-inline: -1rem; }
    .day__totals div { padding: .8rem .75rem .9rem; }
    .day__totals dt { font-size: .68rem; line-height: 1.3; }
    .day__totals dd { font-size: .82rem; white-space: nowrap; }
    .day__rail::before { left: 3.05rem; }
    .entry { grid-template-columns: 2.6rem 1fr; gap: .95rem; }
    .entry::before { left: 2.75rem; }
    .entry__row { grid-template-columns: minmax(0, 1fr) auto; }
    .entry__row .chip { grid-column: 1 / -1; justify-self: start; }
    .specimen__text { line-height: 2.35; }
    .store { width: 100%; justify-content: center; }
}

/* Celulares muy angostos (320 px) */
@media (max-width: 350px) {
    .brand__word { font-size: 1.35rem; }
    .nav__actions .btn--small { padding-inline: .8rem; }
    .day__totals dd { font-size: .74rem; }
    .day__totals div { padding-inline: .55rem; }
    .entry__what { font-size: .88rem; }
    .amt { font-size: .78rem; }
}

/* Celular en horizontal (poca altura): menos aire vertical */
@media (max-height: 500px) and (orientation: landscape) {
    .nav__inner { height: 3.5rem; }
    .hero { padding-block: 1.5rem 3rem; }
    .hero__title { font-size: clamp(2.6rem, 6vw, 4rem); }
    .nav__menu { max-height: calc(100vh - 3.5rem); overflow-y: auto; }
}

/* ==========================================================================
   MOVIMIENTO REDUCIDO: todo visible, sin animaciones
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero__title .num { background-size: 100% 100%; }
    .entry__raw { opacity: .6; text-decoration: line-through; }
    .voucher__scan { display: none; }
    .cta__ticker { width: auto; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
