/* =========================================================
   Bitel 12 años — Landing aniversario (IR-2564)
   Design source: Figma "WEB BITEL - 2026" / IR-2564 Implement 12th Anniversary Landing Page
   ========================================================= */

:root {
    --yellow: #fff200;
    --blue-hero: #005999;      /* color plano del borde izquierdo del arte del hero desktop (KV 1820x864, 21/sep) */
    --blue-hero-m: #00599f;    /* idem, arte mobile (KV 1050x1498, 21/sep) */
    --blue-line: #2e7cf6;      /* borde de tarjetas azules */
    --blue-btn: #03558b;
    --blue-btn-hover: #0466a8;
    --on-yellow: #03558b;      /* Figma: texto sobre amarillo (botones, badges, pill) */
    --neon: 0, 120, 199;       /* #0078c7: glow azul de los iconos (filtro de los SVG de Figma) */
    --card: rgba(0, 12, 30, .45);
    --glass-bg: rgba(6, 40, 95, .38);
    --glass-line: rgba(255, 255, 255, .16);
    --text: #fff;
    --muted: #cbd6ea;
    --radius: 16px;
    --header-h: 80px;
    --container: 1180px;
    --glow-yellow: 0 0 22px rgba(255, 242, 0, .35), inset 0 0 16px rgba(255, 242, 0, .16);
    --glow-blue: 0 0 22px rgba(46, 124, 246, .4), inset 0 0 16px rgba(46, 124, 246, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    /* Figma: degradado vertical de toda la página; el hero lo tapa con su arte.
       no-repeat + color de fondo: lo que sobre del documento (overscroll) queda en el último stop */
    background: #000b11 linear-gradient(180deg, #03558b 1%, #003b62 17%, #002740 33%, #00101a 72%, #000b11 100%) no-repeat;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* el atributo hidden debe ganar a cualquier display de componente (p.ej. .field { display: grid }) */
[hidden] { display: none !important; }

a { text-decoration: none; color: inherit; }

/* foco visible para teclado (amarillo con aire: también se distingue sobre botones amarillos) */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

a, button, summary { touch-action: manipulation; }

ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Títulos ---------- */
.title { text-transform: uppercase; line-height: 1.12; text-wrap: balance; }
.title span { display: block; font-size: 18px; font-weight: 700; }
.title strong { display: block; font-size: 26px; font-weight: 800; color: var(--yellow); }
.title--center { text-align: center; }

.section-title {
    text-align: center;
    text-transform: uppercase;
    color: var(--yellow);
    font-size: 26px;
    font-weight: 800;
    text-wrap: balance;
}

.section-title--white { color: #fff; font-size: 18px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: background .2s, filter .2s, box-shadow .2s, transform .15s ease;
}

.btn:active { transform: translateY(1px); }

.btn--yellow { background: var(--yellow); color: var(--on-yellow); }
.btn--yellow:hover { filter: brightness(.94); box-shadow: 0 0 18px rgba(255, 242, 0, .35); }

.btn--outline { border-color: var(--yellow); color: var(--yellow); }
.btn--outline:hover { background: rgba(255, 242, 0, .1); }

/* Figma: fondo #03558B, borde #078FEB, radio 20, letra blanca */
.btn--blue { background: var(--blue-btn); color: #fff; border-color: #078feb; border-radius: 20px; }
.btn--blue:hover { background: var(--blue-btn-hover); box-shadow: 0 0 16px rgba(7, 143, 235, .45); }

.btn--sm { height: 40px; padding: 0 22px; font-size: 12px; }

/* ---------- Tarjetas con borde neón (glow externo + interno, como en Figma) ---------- */
.card {
    position: relative;
    background: var(--card);
    border: 1.5px solid var(--yellow);
    border-radius: var(--radius);
    box-shadow: var(--glow-yellow);
}

.card--blue { border-color: var(--blue-line); box-shadow: var(--glow-blue); }

/* ---------- Header: transparente sobre el hero; barra de vidrio a todo el ancho al hacer scroll ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 1000;
    transition: background .3s ease, box-shadow .3s ease;
}

.header.is-scrolled {
    background: rgba(2, 28, 78, .72);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: inset 0 -1px 0 var(--glass-line);
}

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.header__brand img { height: 30px; width: auto; }

.header__nav { display: flex; gap: clamp(24px, 3vw, 34px); }

/* subrayado amarillo al hover (la letra se queda blanca); padding vertical = área de clic más cómoda */
.header__nav a {
    padding: 8px 0;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: border-color .2s;
}
.header__nav a:hover { border-color: var(--yellow); }

.header__toggle {
    display: none;
    padding: 10px; /* icono 24px + 10px por lado = área táctil 44x44 */
    background: none;
    border: 0;
    color: var(--yellow);
    cursor: pointer;
    line-height: 0;
}

/* ---------- Menú mobile (popover nativo) ---------- */
.menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100dvh;
    margin: 0;
    padding: 24px 32px;
    border: 0;
    background: #04193d;
    color: #fff;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .28s ease, display .28s allow-discrete, overlay .28s allow-discrete;
}

/* cerrado conserva el display:none del UA; abierto entra deslizándose desde la derecha */
.menu:popover-open { display: flex; transform: none; }

@starting-style {
    .menu:popover-open { transform: translateX(100%); }
}

.menu::backdrop { background: rgba(2, 10, 30, .6); }

.menu a {
    padding: 14px 0;
    font-weight: 600;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.menu__close {
    align-self: flex-end;
    background: none;
    border: 0;
    padding: 4px 10px;
    color: var(--yellow);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    margin-bottom: 8px;
}

/* sin soporte popover (navegadores viejos): ocultar el menú en vez de dejarlo en el flujo */
@supports not selector(:popover-open) {
    .menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(600px, 47.5vw, 760px); /* arte 1440x684 */
    padding-top: var(--header-h);
    background: var(--blue-hero) url('../img/hero-farfan-desktop.webp') right center / cover no-repeat;
}

.hero__inner { padding-bottom: 32px; }

.hero__title {
    color: var(--yellow);
    text-transform: uppercase;
    line-height: 1.05;
    max-width: 640px;
    text-shadow: 0 2px 24px rgba(0, 20, 60, .45);
}

.hero__kicker { display: block; font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; }

.hero__main {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(36px, 3.6vw, 52px);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -.01em;
}

.hero__5g { height: 1.15em; width: auto; flex: none; }

.hero__sub { display: block; font-size: clamp(20px, 1.95vw, 28px); font-weight: 600; margin-top: 6px; }

/* píldora del sorteo en vidrio líquido sobre el arte del hero (tinte navy + blur + brillo superior) */
.hero__pill {
    display: inline-block;
    margin-top: 22px;
    padding: 10px 22px;
    background: rgba(2, 28, 78, .5);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 24px rgba(0, 0, 0, .25);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

.hero__actions .btn { min-width: 280px; }

/* ---------- Premios: celulares ---------- */
.phones { padding: 96px 0 48px; }

.phones__inner {
    display: grid;
    grid-template-columns: minmax(280px, 400px) 1fr;
    grid-template-rows: auto auto;
    column-gap: 60px;
    align-items: center;
}

.phones__copy { grid-area: 1 / 1; }
.phones__cta { grid-area: 2 / 1; align-self: start; }
.phones__cards { grid-area: 1 / 2 / 3 / 3; }

.phones .title span { font-size: 20px; }
.phones .title strong { font-size: 32px; }

.phones__copy p { margin: 14px 0 22px; font-size: 15px; color: var(--muted); max-width: 340px; }

.phones__cta .btn { width: 100%; max-width: 300px; }

.phones__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 317px));
    gap: 32px;
    justify-content: end;
}

.prize {
    min-height: 360px;
    padding: 28px 20px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
}

/* Figma: halo azul bajo el equipo y letras con brillo azul */
.prize img {
    height: 200px;
    width: auto;
    margin-bottom: 22px;
    filter: drop-shadow(0 18px 20px rgba(30, 120, 255, .6));
}

.prize h3 { font-size: 18px; font-weight: 700; }

.prize p { margin-top: 6px; font-size: 12px; color: var(--muted); }

.prize h3, .prize p { text-shadow: 0 0 14px rgba(40, 130, 255, .95), 0 0 3px rgba(40, 130, 255, .5); }

/* ---------- Premios: carrazos ---------- */
.cars { padding: 56px 0 88px; }

.cars__inner {
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(0, 549px);
    grid-template-rows: auto auto;
    column-gap: 60px;
    align-items: center;
    justify-content: space-between;
}

.cars__copy { grid-area: 1 / 1; }
.cars__cta { grid-area: 2 / 1; align-self: start; }
.cars__media { grid-area: 1 / 2 / 3 / 3; }

/* el sorteo mensual es el premio mayor: título al doble de escala que el de celulares */
.cars .title span { font-size: clamp(22px, 2.2vw, 30px); }
.cars .title strong { font-size: clamp(48px, 5vw, 68px); line-height: .95; letter-spacing: -.02em; margin-top: 4px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0 18px;
    padding: 4px 12px;
    background: var(--yellow);
    color: var(--on-yellow);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
}

.cars__copy p { font-size: 15px; color: var(--muted); margin-bottom: 22px; }

.cars__cta .btn { width: 100%; max-width: 380px; }

/* el arte del Kia ya trae su propio fondo azul con el 12 en neón: sin caja adicional */
.cars__media img { border-radius: 14px; }

/* ---------- Sorteo: cuenta regresiva ---------- */
.next { padding: 24px 0 56px; }

.next__card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 28px 44px;
}

.next__kicker {
    display: block;
    color: var(--yellow);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.next__copy h2 {
    color: var(--yellow);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 2px 0 8px;
}

.next__copy p { font-size: 13px; color: var(--muted); max-width: 460px; }

.countdown { display: flex; align-items: flex-start; gap: 22px; }

.countdown div { min-width: 64px; text-align: center; }

.countdown b {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown small {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}

.countdown > span { font-size: 28px; font-weight: 800; line-height: 1; padding-top: 3px; }

/* ---------- Participa: planes ---------- */
.plans { position: relative; padding: 72px 0 96px; }

/* Arte de haces de luz detrás de las tarjetas. `lighten` deja pasar solo los trazos brillantes:
   la banda opaca superior del PNG es más oscura que el degradado de página y desaparece. */
.plans::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url('../img/fondo-participa.webp') center top / 100% auto no-repeat;
    mix-blend-mode: lighten;
}

.plans__lead {
    max-width: 780px;
    margin: 12px auto 44px;
    text-align: center;
    text-transform: uppercase;
    font-size: 18px;
}

.plans__lead em { font-weight: 800; }

.plans__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 28px 26px 26px;
}

.plan__ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--yellow);
    color: var(--on-yellow);
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
}

.plan__name { font-size: 20px; font-weight: 800; text-transform: uppercase; }
.plan__name--yellow { color: var(--yellow); }
.plan__name--case { text-transform: none; font-size: 22px; }

.plan__tagline { margin: 4px 0 18px; font-size: 12px; font-style: italic; color: var(--muted); }

.plan__label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; }

.plan__features { display: grid; gap: 10px; margin-bottom: 26px; }

/* "Precio" de Recargas baja hasta alinearse con el de los otros planes (menos filas, 1 botón) */
.plan__features + .plan__label { margin-top: auto; }

.plan__features li { position: relative; padding-left: 22px; font-size: 13px; }

.plan__features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--yellow);
    font-weight: 800;
}

.plan__features .is-hl { color: var(--yellow); font-weight: 800; font-style: italic; }

.plan__price { margin: -4px 0 20px; color: var(--yellow); font-size: 22px; font-weight: 800; }

.plan__actions { display: grid; gap: 10px; }

.plan__actions .btn { width: 100%; height: 44px; font-size: 13px; }

/* ---------- Beneficios ---------- */
.benefits { padding: 96px 0 48px; }

.benefits .title { margin-bottom: 40px; }

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 306px));
    gap: 36px;
    justify-content: center;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 24px 32px;
    text-align: center;
}

/* mismo glow azul en 3 capas que traen los SVG exportados de Figma (0.6 / 0.4 / 0.2) */
.benefit__icon {
    height: 60px;
    width: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 3px rgba(var(--neon), .7))
            drop-shadow(0 0 9px rgba(var(--neon), .45))
            drop-shadow(0 0 18px rgba(var(--neon), .25));
}

.benefit h3 {
    max-width: 150px; /* fuerza las 2 líneas del diseño: "5G ILIMITADO / GRATIS", "CONTENIDO / ESPECIAL" */
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.benefit p { max-width: 230px; margin: 10px 0 20px; font-size: 13px; color: var(--muted); }

.benefit .btn { margin-top: auto; }

/* ---------- Comunidad ---------- */
.community { padding: 24px 0 96px; }

.community__card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 28px 48px;
}

.community__copy h2 { color: var(--yellow); font-size: 20px; font-weight: 800; }

.community__copy p { max-width: 560px; margin: 8px 0 20px; font-size: 13px; color: var(--muted); }

.community__copy em { font-weight: 800; }

.community__copy .btn { min-width: 300px; }

.community__media { width: 220px; filter: drop-shadow(0 0 18px rgba(var(--neon), .45)); }

/* ---------- Ganadores (marquee CSS, 3 filas) ---------- */
.winners { padding: 88px 0; overflow: hidden; }

.winners .title { margin-bottom: 40px; }

.marquee { display: grid; gap: 20px; }

.marquee__row {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
}

.marquee__row--reverse { animation-direction: reverse; }

/* margin (no gap) para que -50% caiga exacto en el periodo del loop */
.marquee__row li {
    flex: none;
    height: 200px;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.marquee__row--small li { height: 134px; }

.marquee__row img { height: 100%; width: auto; }

@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee__row { animation: none; }
    .header, .btn, .menu { transition: none; }
}

/* ---------- Información legal: boxes "liquid glass" ---------- */
.legal { padding: 40px 0 96px; }

.legal__inner { max-width: 900px; }

.legal .section-title { margin-bottom: 28px; }

.acc {
    position: relative;
    isolation: isolate;
    margin-bottom: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-line);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22),
                inset 0 -1px 0 rgba(255, 255, 255, .05),
                0 10px 28px rgba(0, 0, 0, .28);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
}

/* reflejo diagonal del vidrio */
.acc::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 38%,
                                rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .06));
}

.acc summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.acc summary::-webkit-details-marker { display: none; }

.acc summary::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform .25s;
}

.acc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }

.acc__body { padding: 0 24px 20px; font-size: 14px; color: var(--muted); }

.acc__body a { color: var(--yellow); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { padding: 110px 0 120px; }

.footer img { height: 60px; width: auto; }

/* ---------- Valida tus chances (chances.html, API /anni12Th) ---------- */
.chances {
    min-height: calc(100vh - 220px);
    padding: calc(var(--header-h) + 28px) 0 72px;
    background: var(--blue-hero) url('../img/hero-farfan-desktop.webp') right center / cover no-repeat;
}

.chances__panel { max-width: 380px; }

.stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, .7);
}

.stepper li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }

.stepper li + li::before { content: ""; width: 26px; height: 1px; background: rgba(255, 255, 255, .4); }

.stepper__dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 11px;
}

.stepper .is-active { color: var(--yellow); }
.stepper .is-active .stepper__dot,
.stepper .is-done .stepper__dot { background: var(--yellow); color: var(--on-yellow); }
.stepper .is-done .stepper__dot { font-size: 0; }
.stepper .is-done .stepper__dot::after { content: "\2713"; font-size: 12px; font-weight: 800; }

.chances__form h1 {
    margin: 44px 0 26px;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    color: #fff;
}

.field { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }

.field input {
    height: 46px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #fff;
    color: #0b1f3f;
    font: inherit;
    font-size: 16px; /* evita el zoom automático de iOS */
}

.field input::placeholder { color: #8a94a6; }

.field input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }

.field--captcha { grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; margin-top: 12px; }

.field--captcha img { border-radius: 8px; background: #fff; }
.field--captcha img:not([src]) { visibility: hidden; } /* sin icono de imagen rota mientras carga o si falla */

.captcha__refresh {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-line);
    background: rgba(255, 255, 255, .08);
    color: var(--yellow);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.btn--block { width: 100%; }

.chances__form .btn--block { margin-top: 16px; }

.chances__error { margin-top: 12px; font-size: 13px; color: #ffd0d0; }

/* paso 2 */
.chances__result { margin-top: 40px; text-align: center; }

.chances__kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.chances__title { margin-top: 6px; font-size: 20px; font-weight: 800; text-transform: uppercase; line-height: 1.2; }

.chances__count {
    width: max-content;
    margin: 14px auto 22px;
    padding: 14px 30px;
    display: grid;
    justify-items: center;
    gap: 2px;
    border: 2px dashed var(--yellow);
    border-radius: 12px;
    color: var(--yellow);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.chances__count strong { font-size: 40px; line-height: 1; }

.chances__sub { margin-bottom: 6px; font-size: 14px; font-weight: 800; text-transform: uppercase; }

.cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    text-align: left;
    font-size: 12px;
}

.cta-row .btn--sm { flex: none; min-width: 108px; }

.chances__note { font-size: 13px; color: var(--muted); }

.chances__table {
    width: 100%;
    margin-top: 18px;
    border: 1px solid var(--blue-line);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    font-size: 11px;
    text-align: left;
}

.chances__table th { padding: 8px 10px; background: rgba(46, 124, 246, .25); color: var(--yellow); font-weight: 700; }
.chances__table td { padding: 8px 10px; border-top: 1px solid rgba(46, 124, 246, .35); }
.chances__table th:last-child, .chances__table td:last-child { text-align: right; font-weight: 700; }

.chances__back {
    margin-top: 18px;
    background: none;
    border: 0;
    color: var(--yellow);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.chances__next {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    font-size: 11px;
    color: var(--muted);
}

@media (max-width: 1023px) {
    .chances {
        min-height: 0;
        padding: calc(var(--header-h) + 16px) 0 48px;
        background: var(--blue-hero-m) url('../img/hero-farfan-mobile.webp') center top / cover no-repeat;
    }
    .chances__panel {
        max-width: none;
        padding: 20px 18px 24px;
        border-radius: 16px;
        background: rgba(1, 22, 55, .74);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }
    .chances__form h1 { margin: 28px 0 20px; font-size: 19px; }
    .field--captcha { grid-template-columns: auto auto; }
    .field--captcha input { grid-column: 1 / -1; }
}

/* utilidades de visibilidad: al final para ganar a las reglas de componente con igual especificidad */
.only-mobile { display: none; }

/* =========================================================
   Tablet + Mobile (<=1023px): el frame "Propuesta 6 — Mobile 375px"
   ========================================================= */
@media (max-width: 1023px) {
    :root { --header-h: 64px; }

    .container { padding: 0 16px; }
    .only-desktop { display: none !important; }
    .only-mobile { display: inline-flex; }

    .header__brand img { height: 26px; }
    .header__nav { display: none; }
    .header__toggle { display: inline-flex; }

    /* Hero: arte mobile 375x535 a ancho completo; título arriba (cielo), botón abajo (pista) */
    .hero {
        min-height: 0;
        aspect-ratio: 375 / 535;
        padding-top: 0;
        align-items: stretch; /* el inner ocupa todo el alto: título arriba, botón abajo */
        background: var(--blue-hero-m) url('../img/hero-farfan-mobile.webp') center top / 100% auto no-repeat;
        text-align: center;
    }
    .hero__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: calc(var(--header-h) + 8px) 16px 24px;
    }
    .hero__title { max-width: none; }
    .hero__kicker { font-size: 16px; }
    .hero__main { justify-content: center; gap: 6px; font-size: clamp(20px, 6.2vw, 26px); } /* 375px → 23px, no desborda */
    .hero__sub { font-size: 13px; margin-top: 4px; }
    .hero__pill { margin-top: 12px; padding: 6px 16px; font-size: 11px; }
    .hero__actions { width: 100%; justify-content: center; margin-top: auto; }
    .hero__actions .btn { width: 100%; max-width: 300px; min-width: 0; height: 44px; }

    /* Premios */
    .phones { padding: 40px 0 24px; text-align: center; }
    .phones__inner, .cars__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
    .phones .title span { font-size: 16px; }
    .phones .title strong { font-size: 24px; }
    .phones__copy p { margin: 10px auto 0; font-size: 14px; }
    .phones__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; justify-content: stretch; }
    .prize { min-height: 0; padding: 20px 10px 18px; }
    .prize img { height: 130px; margin-bottom: 14px; }
    .prize h3 { font-size: 14px; }
    .prize p { font-size: 11px; }
    .phones__cta, .cars__cta { align-self: stretch; display: flex; justify-content: center; }
    .phones__cta .btn, .cars__cta .btn { width: min(100%, 300px); height: 44px; }

    .cars { padding: 24px 0 48px; text-align: center; }
    .cars .title span { font-size: 18px; }
    .cars .title strong { font-size: clamp(36px, 11vw, 44px); }
    .badge { margin: 0; }
    .cars__copy p { margin: 12px auto 0; font-size: 14px; max-width: 320px; }
    .cars__media { width: 100%; max-width: 420px; }

    /* Sorteo */
    .next { padding: 0 0 40px; }
    .next__card { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; text-align: center; }
    .next__copy p { margin: 0 auto; }
    .countdown { justify-content: center; gap: 8px; }
    .countdown div { min-width: 48px; }
    .countdown b { font-size: 28px; }
    .countdown small { font-size: 10px; letter-spacing: .03em; }
    .countdown > span { font-size: 22px; }

    /* Planes */
    .plans { padding: 40px 0 48px; }
    .plans::before { background-size: auto 100%; background-position: center; }
    .section-title { font-size: 22px; }
    .plans__lead { font-size: 14px; margin: 10px auto 28px; }
    .plans__grid { grid-template-columns: 1fr; gap: 20px; max-width: 420px; margin: 0 auto; }

    /* Beneficios: carrusel con scroll-snap */
    .benefits { padding: 48px 0 24px; }
    .benefits .container { padding: 0; }
    .benefits .title { margin-bottom: 24px; padding: 0 16px; }
    .benefits__grid {
        display: flex;
        gap: 16px;
        padding: 0 16px 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 16px;
        scrollbar-width: none;
    }
    .benefits__grid::-webkit-scrollbar { display: none; }
    .benefit { flex: 0 0 78%; scroll-snap-align: center; }

    /* Comunidad */
    .community { padding: 16px 0 48px; }
    .community__card { grid-template-columns: 1fr; gap: 20px; padding: 28px 20px; text-align: center; }
    .community__media { order: -1; width: 180px; margin: 0 auto; }
    .community__copy h2 { font-size: 18px; }
    .community__copy p { margin: 8px auto 16px; font-size: 12px; }
    .community__copy .btn { width: 100%; min-width: 0; }

    /* Ganadores */
    .winners { padding: 48px 0; }
    .winners .title { margin-bottom: 24px; }
    .marquee { gap: 12px; }
    .marquee__row li { height: 120px; margin-right: 12px; }
    .marquee__row--small li { height: 84px; }

    /* Legal + footer */
    .legal { padding: 16px 0 48px; }
    .legal .section-title { margin-bottom: 20px; }
    .acc summary { padding: 16px 18px; font-size: 13px; }
    .acc__body { padding: 0 18px 16px; font-size: 13px; }
    .footer { padding: 56px 0 64px; }
    .footer img { height: 40px; }
}

/* =========================================================
   Ajustes UI/UX (15/sep, ex propuesta2.css): escala de títulos, chances destacadas, hero, marquee,
   animaciones, CTA fijo mobile, footer. Van después del bloque mobile: misma especificidad gana el último.
   ========================================================= */
/* 1. Escala de títulos unificada: 34 secciones · 40 celulares · 68 carrazos (ya en style.css) */
.section-title { font-size: 34px; }
.section-title--white { font-size: 22px; }
.title span { font-size: 20px; }
.title strong { font-size: 34px; }
.phones .title span { font-size: 22px; }
.phones .title strong { font-size: 40px; }
.next__copy h2 { font-size: 28px; }
.community__copy h2 { font-size: 24px; }

/* 2. Párrafo y badge del carrazo a la escala del título grande */
.cars__copy p { font-size: 17px; }
.badge { font-size: 12px; padding: 6px 12px; }

/* 5. (retirado 21/sep) el botón azul conserva el radio 20 y el borde #078FEB del Figma */

/* 7. Cuerpo de texto: nada por debajo de 13px; párrafos a 14px */
.prize p, .plan__tagline { font-size: 13px; }
.phones__copy p { font-size: 16px; }
.plan__features li, .benefit p, .community__copy p, .next__copy p { font-size: 14px; }

/* 9. Glow del texto de premios en una sola capa suave: el nombre del equipo se lee mejor */
.prize h3, .prize p { text-shadow: 0 0 12px rgba(40, 130, 255, .55); }

/* 10. Countdown: dice a qué sorteo cuenta y tiene estado final (antes quedaba en 00:00:00:00) */
.next__date { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.countdown.is-over > div, .countdown.is-over > span { display: none; }
.countdown.is-over::after {
    content: attr(data-over);
    font-size: 20px;
    font-weight: 800;
    color: var(--yellow);
    text-transform: uppercase;
}

/* 11. Aviso de enlace externo en los botones que abren otra pestaña (icono en CSS, sin markup) */
.btn[target="_blank"]::after {
    content: "";
    flex: none;
    width: 11px;
    height: 11px;
    background: currentColor;
    opacity: .85;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 13. Hero: la condición de participación como píldora real, con icono y las dos claves en negrita */
.hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
}
.hero__pill svg { flex: none; width: 16px; height: 17px; color: var(--yellow); }
.hero__pill b { font-weight: 800; }

/* 14. Hero: CTA principal más grande, con flecha (lleva hacia abajo) y elevación al hover */
.hero__actions { align-items: center; gap: 16px 28px; }
.hero__actions .btn { height: 52px; padding: 0 32px; font-size: 16px; }
.hero__actions .btn svg { width: 18px; height: 18px; transition: transform .2s; }
.hero__actions .btn:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(255, 242, 0, .45), 0 10px 24px rgba(0, 0, 0, .3); }
.hero__actions .btn:hover svg { transform: translateY(2px); }
.hero__actions .btn:active { transform: translateY(0); }

/* 15. Ganadores: bucle exacto (cada bloque se desplaza el 100% de su propio ancho, sin depender del ancho
       calculado de la fila) y bordes desvanecidos */
.marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row { width: auto; animation: none; }
.marquee__set { display: flex; flex: none; will-change: transform; animation: marquee-set 60s linear infinite; }
.marquee__row--reverse .marquee__set { animation-direction: reverse; }
@keyframes marquee-set { to { transform: translateX(-100%); } }

/* 16. Aparición al hacer scroll: animación ligada al viewport (CSS puro). Sin soporte = todo estático */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .card, .title, .section-title, .plans__lead, .cars__media, .acc {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 45%;
        }
    }
}
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } }

/* 17. Hero: entrada escalonada al cargar (termina en ~0.9s) */
@media (prefers-reduced-motion: no-preference) {
    .hero__kicker, .hero__main, .hero__sub, .hero__pill, .hero__actions {
        animation: rise .55s cubic-bezier(.2, .7, .2, 1) both;
    }
    .hero__main { animation-delay: .08s; }
    .hero__sub { animation-delay: .16s; }
    .hero__pill { animation-delay: .24s; }
    .hero__actions { animation-delay: .32s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* 18. Plan recomendado adelantado: escala + glow más fuerte (la decisión sugerida se ve antes de leer) */
.plan--featured {
    transform: scale(1.03);
    z-index: 1;
    box-shadow: 0 0 36px rgba(255, 242, 0, .45), inset 0 0 16px rgba(255, 242, 0, .16);
}

/* 19. Acordeón legal: apertura animada (nativa, Chrome 131+; el resto abre de golpe) */
:root { interpolate-size: allow-keywords; }
.acc::details-content { height: 0; overflow: clip; transition: height .3s ease, content-visibility .3s allow-discrete; }
.acc[open]::details-content { height: auto; }

/* 20. Nav: la sección visible queda subrayada (JS en main.js) */
.header__nav a.is-active { border-color: var(--yellow); }

/* 21. Footer con enlaces legales (Libro de reclamaciones es obligatorio en Perú) */
.footer { padding: 64px 0 56px; }
.footer__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.footer nav a:hover { color: #fff; }
.footer small { width: 100%; font-size: 13px; color: var(--muted); }

/* 23. Saltar al contenido (teclado / lector de pantalla): invisible hasta recibir foco */
.skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--on-yellow);
    font-weight: 700;
    font-size: 14px;
}
.skip:focus { top: 16px; }

/* 24. Volver arriba (desktop): aparece pasada la primera pantalla, con la posición de scroll como timeline */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-line);
    background: var(--glass-bg);
    color: #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background .2s, border-color .2s;
}
.to-top:hover { background: rgba(6, 40, 95, .7); border-color: rgba(255, 255, 255, .4); }
.to-top svg { width: 18px; height: 18px; }
@supports (animation-timeline: scroll()) {
    @media (min-width: 1024px) {
        .to-top { display: grid; animation: fade-in linear both; animation-timeline: scroll(); animation-range: 500px 900px; }
    }
}
@keyframes fade-in { from { opacity: 0; visibility: hidden; transform: translateY(8px); } }

/* 25. Indicadores del carrusel de beneficios (solo mobile; JS los crea y sincroniza) */
.dots { display: none; justify-content: center; gap: 8px; padding: 6px 0 0; }
.dots button {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.dots button::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin: auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transition: background .2s, transform .2s;
}
.dots button.is-on::before { background: var(--yellow); transform: scale(1.35); }

/* 26. CTA fijo en mobile: se oculta mientras el hero o los planes están en pantalla (ahí ya hay botones) */
.sticky-cta {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 900;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(1, 23, 55, .85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-line);
    transition: transform .3s ease;
}
.sticky-cta.is-hidden { transform: translateY(110%); }
.sticky-cta .btn { width: 100%; height: 48px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) { .marquee__set { animation: none; } .sticky-cta { transition: none; } }

@media (max-width: 1023px) {
    /* 12. Carrusel de beneficios: arrancaba en la 2.ª tarjeta. Dos causas: el justify-content:center del grid
           desktop se heredaba (con flex desbordante deja la 1.ª tarjeta en zona no scrolleable) y el snap al
           centro no puede centrar la 1.ª. Alineación y snap al inicio; padding vertical para no recortar el glow. */
    .benefits__grid { justify-content: flex-start; scroll-padding-inline: 16px; padding: 12px 16px; }
    .benefit { scroll-snap-align: start; }

    .hero__pill { font-size: 13px; padding: 8px 14px 8px 12px; }
    .hero__pill .only-mobile { display: inline; } /* inline-flex se come los espacios entre las negritas */
    .plan--featured { transform: none; }
    .footer__grid { justify-content: center; text-align: center; }
    .footer nav { justify-content: center; }
    .dots { display: flex; }
    .sticky-cta { display: block; }
    body { padding-bottom: 72px; }
    .hero__actions .btn { height: 48px; font-size: 15px; }

    .section-title { font-size: 26px; }
    .title span { font-size: 18px; }
    .title strong { font-size: 28px; }
    .phones .title span { font-size: 18px; }
    .phones .title strong { font-size: 30px; }
    .cars__copy p { font-size: 15px; }

    /* 8. Hero mobile: el título manda (26px en 375px sin desbordar) */
    .hero__kicker { font-size: 18px; }
    .hero__main { font-size: clamp(22px, 7vw, 26px); }
    .hero__sub { font-size: 15px; }
    .hero__pill { font-size: 13px; padding: 8px 16px; }

    .prize p { font-size: 12px; }
    .community__copy p { font-size: 14px; }
}

/* =========================================================
   Propuesta 2 fundida en el main (17/sep): 6 rondas de UI/UX sin textos nuevos (barras de chances, bandas, header que se
   esconde, marquee, hover, auditorías Vercel WIG + Impeccable audit/critique/polish, contador en fichas). Va después del
   bloque mobile: a igual especificidad gana el último. La numeración de los comentarios es la de cada ronda.
   ========================================================= */
/* 2. (retirado 21/sep, Figma) sin bandas: el degradado de página corre continuo hasta el footer */

/* 3. Regla amarilla corta bajo los títulos de sección */
.section-title::after { content: ""; display: block; width: 48px; height: 3px; margin: 16px auto 0; border-radius: 2px; background: var(--yellow); }

/* 4. Header que se esconde al bajar y vuelve al subir (JS en main.js) */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); }
.header { transition: background .3s ease, box-shadow .3s ease, transform .3s var(--ease-out); }
.header.is-hidden { transform: translateY(-100%); }

/* 5. Flecha también en el CTA del carrazo (mismo gesto que el del hero) */
.cars__cta .btn svg { width: 18px; height: 18px; transition: transform .2s; }
.cars__cta .btn:hover svg { transform: translateY(2px); }

/* 6. Marquee: cada fila a su velocidad (profundidad) y fotos más altas en pantallas anchas */
.marquee__row:nth-child(1) .marquee__set { animation-duration: 60s; }
.marquee__row:nth-child(2) .marquee__set { animation-duration: 78s; }
.marquee__row:nth-child(3) .marquee__set { animation-duration: 52s; }
@media (min-width: 1600px) {
    .marquee__row li { height: 240px; }
    .marquee__row--small li { height: 160px; }
}

/* 7 + 8. Beneficios: elevación al hover (tienen botón, son interactivas) y el ícono respira */
@media (hover: hover) and (min-width: 1024px) {
    .benefit { transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
    .benefit:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .3), 0 0 28px rgba(255, 242, 0, .35), inset 0 0 16px rgba(255, 242, 0, .16); }
    .benefit__icon { transition: transform .3s var(--ease-out); }
    .benefit:hover .benefit__icon { transform: scale(1.06); }
}

/* 9. Párrafos sin palabras huérfanas; guiones solo en mobile, donde las líneas son cortas */
p { text-wrap: pretty; }

/* 10. Menú mobile: enlaces más grandes, más aire y sección activa marcada */
.menu a { padding: 16px 0; font-size: 20px; }
.menu a.is-active { color: var(--yellow); }

@media (max-width: 1023px) {
    p { hyphens: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .header, .benefit, .benefit__icon, .cars__cta .btn svg { transition: none; }
}

/* =========================================================
   Ronda 3 (16/sep): hallazgos de las auditorías Vercel Web Interface Guidelines + Impeccable
   ========================================================= */

/* 1. Lo oculto no recibe foco: el header vuelve si algo dentro tiene foco; la barra fija se hace invisible */
.header.is-hidden:focus-within { transform: none; }
.sticky-cta { transition: transform .3s var(--ease-out), visibility .3s; }
.sticky-cta.is-hidden { visibility: hidden; }

/* 2. Marquee: pausa con el cursor o el foco (WCAG 2.2.2); con "reducir movimiento" se puede desplazar a mano */
.marquee:hover .marquee__set { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee__row { overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
}

/* 3. Estado final del countdown escrito en el DOM (JS): el texto vive en el timer, no en un ::after */
.countdown.is-over { font-size: 20px; font-weight: 800; color: var(--yellow); text-transform: uppercase; }
.countdown.is-over::after { content: none; }

/* 4. El foco no queda tapado por el header fijo ni por la barra fija mobile */
a, button, summary { scroll-margin-block: calc(var(--header-h) + 8px) 84px; }

/* 5. Indicadores del carrusel: punto inactivo con más contraste (aria-current lo pone el JS) */
.dots button::before { background: rgba(255, 255, 255, .45); }

/* 6. Áreas táctiles: cerrar menú 44x44, enlaces del footer con alto suficiente */
.menu__close { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
.footer nav a { display: inline-block; padding: 12px 0; transition: color .2s; }

/* 7. Tema oscuro declarado: scrollbars y controles nativos oscuros; scrollbar tematizada */
html { color-scheme: dark; scrollbar-color: rgba(255, 255, 255, .28) transparent; }

/* 8. Sin scroll del fondo con el menú abierto; el carrusel no dispara el gesto "atrás" */
.menu { overscroll-behavior: contain; }
body:has(.menu:popover-open) { overflow: hidden; }
.benefits__grid { overscroll-behavior-x: contain; }

/* 9. Tablet: tres planes compactos desde 860px; tarjetas de beneficios con ancho tope */
@media (min-width: 860px) and (max-width: 1023px) {
    .plans__grid { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 16px; }
    .plan { padding: 24px 18px; }
    .plan__actions .btn { padding: 0 16px; }
}

/* 11. Fotos de premios nunca se deforman en tarjetas estrechas */
.prize img { max-width: 100%; object-fit: contain; }

/* 15. Los acordeones están sobre un degradado plano: el blur no aporta y cuesta composición */
.acc { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* 17. Un solo azul neón (token --neon) para todos los glows azules */
.prize img { filter: drop-shadow(0 18px 20px rgba(var(--neon), .6)); }
.prize h3, .prize p { text-shadow: 0 0 12px rgba(var(--neon), .55); }
.btn--blue:hover { box-shadow: 0 0 16px rgba(var(--neon), .45); }

/* 18. Escala de radios: 4 / 8 / 16 / píldora */
.acc, .cars__media img { border-radius: var(--radius); }

/* 19. Ritmo vertical parejo entre secciones (las bandas hacían visible el 96/48) */
.phones { padding: 80px 0; }
.cars { padding: 72px 0 88px; }
.benefits { padding: 80px 0; }
.plans { padding: 72px 0 80px; }
.community { padding: 56px 0 72px; }
.legal { padding: 72px 0 80px; }

/* 20. La regla amarilla es acento de campaña: en "Información legal" va en gris */
.section-title--white::after { background: var(--glass-line); }

/* 21. Piso tipográfico: nada por debajo de 12px en desktop (mobile: 11px en el countdown por el ancho de SEGUNDOS) */
.countdown small { font-size: 12px; letter-spacing: .04em; }

/* 22. Check de la lista de planes en SVG (antes el carácter ✓) */
.plan__features li::before {
    content: "";
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--yellow);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 23. Aparición al scroll solo en tarjetas y en el carrazo, escalonada por columna */
.title, .section-title, .plans__lead, .acc { animation: none; }
.plans__grid .card:nth-child(2), .benefits__grid .card:nth-child(2) { animation-range: entry 10% entry 55%; }
.plans__grid .card:nth-child(3), .benefits__grid .card:nth-child(3) { animation-range: entry 20% entry 65%; }

/* 24. Detalles: selección de texto, balance en todos los títulos, medida de lectura del legal, estados faltantes */
::selection { background: var(--yellow); color: #012a5e; }
h1, h2, h3 { text-wrap: balance; }
.acc__body p { max-width: 68ch; }
.acc__body a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.plan__price { font-variant-numeric: tabular-nums; }
.acc summary { transition: color .2s; }
.acc summary:hover { color: var(--yellow); }
.acc summary::after { border-color: currentColor; }
.header__toggle:hover, .menu__close:hover { color: #fff; }
.menu a:active, .menu a:hover { color: var(--yellow); }
a, button, summary { -webkit-tap-highlight-color: transparent; }

@media (max-width: 1023px) {
    .benefit { flex-basis: min(78%, 340px); }
    .benefits__grid { padding: 8px 16px 12px; }
    .hero { min-height: auto; }                      /* 12. crece si el usuario agranda la letra */
    .hero__pill, .plans__lead, .plan__price, .plan__tagline { hyphens: manual; } /* sin guiones en cifras y claves */
    .cars__copy .badge { margin-bottom: 8px; }
    .countdown small { font-size: 11px; }
    .phones { padding: 48px 0; }
    .benefits { padding: 40px 0; }
    .legal { padding: 40px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .sticky-cta, .acc summary, .acc summary::after, .acc::details-content, .dots button::before, .to-top { transition: none; }
}

/* Ronda 4 (16/sep) reducida al Figma (17/sep): dígitos sueltos como en el diseño; a menos de 24 h el reloj toma el amarillo */
.countdown.is-soon b { color: var(--yellow); }

/* =========================================================
   Ronda 5 (16/sep): critique de Impeccable (heurísticas UX)
   ========================================================= */

/* 1. "Ver contenido" sin destino todavía: se ve deshabilitado, no salta al inicio */
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* 4. Barra fija mobile oculta también junto al botón del carrazo */
.sticky-cta.is-near-cta { transform: translateY(110%); visibility: hidden; }

/* 7. Activo y hover del nav ya no son iguales: el activo lleva la letra en amarillo */
.header__nav a.is-active { color: var(--yellow); }

/* 8. El glow exterior se queda solo donde se decide (planes); el resto brilla por dentro */
.prize, .benefit, .community__card { box-shadow: inset 0 0 16px rgba(255, 242, 0, .16); } /* el cronómetro (.next__card) conserva el glow exterior del Figma */

/* =========================================================
   Ronda 6 (16/sep): polish de Impeccable
   ========================================================= */

/* 2. Llegar por ancla a un acordeón no lo deja bajo el header fijo */
.acc[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* 13. Los dos "¡Quiero participar!" comparten gesto: el del carrazo también se eleva */
.cars__cta .btn:hover { transform: translateY(-2px); }
.cars__cta .btn:active { transform: translateY(0); }

/* 14. Acordeón abierto marcado en el summary; enlaces del legal con hover */
.acc[open] summary { color: var(--yellow); }
.acc__body a { transition: color .2s; }
.acc__body a:hover { color: #fff; }

/* 7. Alto contraste (Windows): los iconos hechos con mask + background no desaparecen */
@media (forced-colors: active) {
    .plan__features li::before, .dots button::before { forced-color-adjust: none; background: CanvasText; }
    .btn[target="_blank"]::after { forced-color-adjust: none; background: currentColor; }
}


@media (prefers-reduced-motion: reduce) {
    .acc__body a, .footer nav a, .cars__cta .btn { transition: none; }
}

/* Figma (17/sep): el lead de planes en mayúsculas, un punto menor para que quepa en una línea en desktop */
.plans__lead { font-size: 17px; }

/* Figma (18/sep): "Próximamente..." y los tres botones de plan deshabilitados hasta el 1 de octubre (mismo look que el diseño) */
.plan__actions .btn:disabled { cursor: default; opacity: .5; } /* mismo atenuado que "Ver contenido" */
.plan__actions .btn:disabled:hover { background: none; box-shadow: none; }

/* Marquee (18/sep): todas las fichas del mismo tamaño (3:2); la foto rellena la ficha recortando al centro */
.marquee__row li { width: 300px; }
.marquee__row--small li { width: 200px; }
.marquee__row img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 1600px) { .marquee__row li { width: 360px; } .marquee__row--small li { width: 240px; } }
@media (max-width: 1023px) { .marquee__row li { width: 180px; } .marquee__row--small li { width: 126px; } }

/* Términos y condiciones completos (21/sep, docx de Marketing) dentro del acordeón legal */
.tyc { padding-bottom: 28px; }
.tyc__title { margin-bottom: 18px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--yellow); }
.tyc h3 { margin: 22px 0 8px; font-size: 15px; font-weight: 800; color: #fff; text-transform: none; }
.tyc h3:first-of-type { margin-top: 0; }
.tyc p + p { margin-top: 8px; }
.tyc__table { width: 100%; max-width: 68ch; margin: 12px 0 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--glass-line); border-radius: 8px; font-size: 13px; text-align: left; }
.tyc__table th { padding: 10px 12px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .06); }
.tyc__table td { padding: 10px 12px; border-top: 1px solid var(--glass-line); vertical-align: top; }
.tyc__table td:last-child { font-weight: 700; color: var(--yellow); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
    .tyc h3 { font-size: 14px; }
    .tyc__table { font-size: 12px; }
    .tyc__table th, .tyc__table td { padding: 8px 10px; }
}

/* Legal (21/sep): un solo acordeón */
.acc:only-of-type { margin-bottom: 0; }

/* Píldora del hero como el Figma (21/sep): blanco translúcido sin borde ni icono, "10 soles" en amarillo */
.hero__pill {
    display: inline-block;
    margin-top: 22px;
    padding: 9px 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    box-shadow: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: .01em;
}
.hero__pill b { color: var(--yellow); font-weight: 700; }
@media (max-width: 1023px) {
    .hero__pill { margin-top: 12px; padding: 7px 28px; font-size: 13px; }
}

/* Tarjetas largas (cronómetro y comunidad) como el Figma (21/sep): esquinas muy redondeadas y aura azul detrás */
.next__card, .community__card {
    border-radius: 40px;
    box-shadow: 0 0 44px rgba(var(--neon), .55), 0 0 12px rgba(255, 242, 0, .25), inset 0 0 18px rgba(var(--neon), .18);
}
.community__copy .btn--blue { color: #fff; }
@media (max-width: 1023px) {
    .next__card, .community__card { border-radius: 28px; }
}

/* Premios (21/sep, proporción del Figma): foto compacta, nombre 20px, subtítulo 14px a dos líneas */
.prize { min-height: 300px; padding: 40px 24px 32px; justify-content: center; }
.prize img { height: 120px; width: auto; margin-bottom: 26px; }
.prize h3 { font-size: 20px; font-weight: 700; }
.prize p { max-width: 190px; margin-top: 8px; font-size: 14px; line-height: 1.35; color: #fff; }
@media (max-width: 1023px) {
    .prize { min-height: 0; padding: 26px 12px 22px; }
    .prize img { height: 90px; margin-bottom: 16px; }
    .prize h3 { font-size: 15px; }
    .prize p { font-size: 12px; max-width: 150px; }
}

/* Premios (21/sep): halo azul como elipse difusa detrás de la foto (la drop-shadow seguía el rectángulo recortado) */
.prize img { position: relative; z-index: 1; filter: none; }
.prize::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 50%;
    width: 200px;
    height: 150px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(var(--neon), .7) 0%, rgba(var(--neon), .35) 40%, transparent 72%);
    filter: blur(14px);
    pointer-events: none;
}
@media (max-width: 1023px) {
    .prize::before { top: 22px; width: 140px; height: 110px; filter: blur(10px); }
}

/* Figma 21/sep: cronómetro "Próximo sorteo en vivo" con botones de TikTok y Facebook */
.next__copy h2 { font-style: italic; }
.next__social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    transition: background .2s, transform .15s var(--ease-out);
}
.social svg { width: 15px; height: 15px; }
.social:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }
.social[target="_blank"]::after { content: none; }
/* Beneficios: dos tarjetas */
.benefits__grid { grid-template-columns: repeat(2, minmax(0, 306px)); }
@media (max-width: 1023px) {
    .next__social { justify-content: center; }
    .benefits__grid { grid-template-columns: none; }
}
