/* ============================================================
   EL GARAJE DE HERBIE 2 — Sistema de diseño
   Concepto: "El garaje al anochecer" — taller donde las ideas
   se encienden. Teal profundo de marca + resplandor ámbar/olivo
   + luz crema solar. Tipografía editorial.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    /* Marca Soventix */
    --amber: #da8a0c;
    --amber-bright: #f4a821;
    --olive: #a6ae3d;
    --olive-bright: #c2cb55;
    --teal: #2d676e;
    --cream: #f9f5e0;

    /* Escala teal (oscuros del taller) */
    --teal-950: #0a262b;
    --teal-900: #0e3036;
    --teal-850: #103940;
    --teal-800: #14454c;
    --teal-700: #1d5860;
    --teal-line: rgba(122, 175, 180, 0.22);

    /* Cremas (luz de día) */
    --cream-bg: #f4eed6;
    --cream-card: #fdfaee;
    --paper-line: rgba(45, 103, 110, 0.16);

    /* Tinta sobre claro */
    --ink: #163034;
    --ink-soft: #4a6468;
    --ink-faint: #7c9296;

    /* Texto sobre oscuro */
    --on-dark: #f4eed6;
    --on-dark-soft: #aecbce;
    --on-dark-faint: #6c9499;

    --font-display: 'Archivo', system-ui, sans-serif;
    --font-body: 'Archivo', system-ui, sans-serif;
    --font-mono: 'Space Mono', ui-monospace, monospace;

    --maxw: 1180px;
    --radius: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--teal-900);
    color: var(--on-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

/* Etiqueta técnica monospace (kicker) */
.kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
}
.kicker::before {
    content: '';
    width: 26px; height: 1px;
    background: currentColor;
    opacity: 0.6;
}

/* Headline editorial */
.display {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

/* =========================================================
   SPLASH — Encendido del garaje
   ========================================================= */
.splash {
    position: fixed; inset: 0;
    z-index: 9999;
    background:
        radial-gradient(120% 90% at 50% 8%, rgba(218,138,12,0.10), transparent 55%),
        linear-gradient(180deg, var(--teal-900), var(--teal-950));
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2.4rem;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    text-align: center;
    padding: 24px;
}
.splash.is-hidden { opacity: 0; transform: scale(1.04); pointer-events: none; }

.splash__plate {
    position: relative;
    width: min(420px, 78vw);
    aspect-ratio: 1 / 1;
    display: grid; place-items: center;
}
.splash__glow {
    position: absolute; inset: -10%;
    background: radial-gradient(circle at 50% 46%, rgba(244,168,33,0.45), rgba(218,138,12,0.0) 62%);
    filter: blur(8px);
    opacity: 0;
    animation: igniteGlow 2.4s var(--ease) 0.2s forwards;
}
.splash__logo {
    position: relative;
    width: 100%; height: 100%;
    object-fit: contain;
    /* el logo tiene texto teal: lo mostramos sobre placa crema */
}
.splash__sign {
    position: relative;
    background: linear-gradient(180deg, var(--cream-card), var(--cream-bg));
    border-radius: 22px;
    padding: 30px 34px 22px;
    box-shadow:
        0 0 0 1px rgba(218,138,12,0.4),
        0 30px 70px rgba(0,0,0,0.45),
        inset 0 0 60px rgba(218,138,12,0.06);
    animation: signFlicker 2.2s steps(1) 0.1s 1;
}
.splash__kicker { color: var(--on-dark-soft); opacity: 0; animation: fadeUp 0.8s var(--ease) 1.1s forwards; }
.splash__cta {
    opacity: 0; animation: fadeUp 0.8s var(--ease) 1.4s forwards;
}

@keyframes igniteGlow {
    0% { opacity: 0; }
    10% { opacity: 0.5; }
    14% { opacity: 0.1; }
    22% { opacity: 0.7; }
    28% { opacity: 0.2; }
    40% { opacity: 0.85; }
    46% { opacity: 0.4; }
    60% { opacity: 1; }
    100% { opacity: 0.9; }
}
@keyframes signFlicker {
    0% { filter: brightness(0.35); }
    12% { filter: brightness(0.8); }
    16% { filter: brightness(0.3); }
    26% { filter: brightness(0.95); }
    32% { filter: brightness(0.45); }
    44% { filter: brightness(1); }
    50% { filter: brightness(0.7); }
    100% { filter: brightness(1); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botón base */
.btn {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.92rem;
    border: none; cursor: pointer;
    border-radius: 999px;
    padding: 1.05rem 2.2rem;
    display: inline-flex; align-items: center; gap: 0.7em;
    text-decoration: none;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    position: relative;
}
.btn--amber {
    background: linear-gradient(180deg, var(--amber-bright), var(--amber));
    color: #2a1c00;
    box-shadow: 0 10px 26px rgba(218,138,12,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn--amber:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(218,138,12,0.55), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn--amber:active { transform: translateY(-1px); }
.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
    background: transparent;
    color: var(--on-dark);
    box-shadow: inset 0 0 0 1.5px var(--on-dark-faint);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--olive-bright); color: var(--olive-bright); transform: translateY(-2px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(16px, 4vw, 40px);
    background: rgba(14,48,54,0.5);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid var(--teal-line);
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.is-scrolled {
    background: rgba(10,38,43,0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    padding-top: 11px; padding-bottom: 11px;
}
.nav__brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav__mark {
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    letter-spacing: -0.01em; font-size: 1rem; color: var(--on-dark);
}
.nav__ed {
    font-family: var(--font-mono); font-weight: 700; font-size: 0.62rem;
    letter-spacing: 0.08em; color: #2a1c00; background: var(--amber-bright);
    border-radius: 6px; padding: 3px 6px; line-height: 1;
}
.nav__badge {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--cream); color: var(--teal);
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 900; font-size: 1rem;
    box-shadow: 0 0 0 2px var(--amber), 0 6px 16px rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.nav__cta { display: inline-flex; padding: 0.72rem 1.45rem; font-size: 0.82rem; white-space: nowrap; }
@media (max-width: 560px) {
    .nav__mark { font-size: 0.86rem; }
    .nav__cta { padding: 0.6rem 1rem; font-size: 0.72rem; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: clamp(92px, 12vh, 150px) 0 80px;
    overflow: hidden;
    background:
        radial-gradient(80% 60% at 50% 38%, rgba(218,138,12,0.14), transparent 60%),
        radial-gradient(60% 50% at 88% 8%, rgba(166,174,61,0.10), transparent 60%),
        linear-gradient(180deg, var(--teal-850) 0%, var(--teal-900) 60%, var(--teal-950) 100%);
}
/* Fondo limpio: foco cálido + retícula de puntos sutil */
.hero__glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(44% 52% at 64% 52%, rgba(244,168,33,0.20), transparent 62%);
}
.hero__dots {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(174,203,206,0.16) 1.2px, transparent 1.3px);
    background-size: 32px 32px;
    mask-image: radial-gradient(78% 78% at 50% 42%, #000, transparent 80%);
    opacity: 0.45;
}

.hero__inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 38px;
    align-items: center;
    text-align: center;
    justify-items: center;
}
@media (min-width: 940px) {
    .hero__inner { grid-template-columns: 1.05fr 0.95fr; text-align: left; justify-items: start; gap: 50px; }
}

.hero__kicker { color: var(--olive-bright); margin-bottom: 22px; }
.hero h1 {
    font-family: var(--font-display); font-weight: 900;
    text-transform: uppercase;
    line-height: 0.92; letter-spacing: -0.035em;
    font-size: clamp(2.6rem, 7vw, 4.9rem);
    color: var(--on-dark);
}
.hero h1 .amber { color: var(--amber-bright); }
.hero h1 .stroke {
    -webkit-text-stroke: 1.6px var(--olive-bright);
    color: transparent;
}
.hero__lede {
    margin-top: 22px;
    font-size: clamp(1.02rem, 1.7vw, 1.22rem);
    line-height: 1.55;
    color: var(--on-dark-soft);
    max-width: 30ch;
    font-weight: 500;
}
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 939px) { .hero__actions { justify-content: center; } }

/* Herbie aislado bajo foco — efecto moderno */
.hero__stage {
    position: relative; width: 100%;
    display: grid; place-items: center;
    min-height: 360px;
}
.hero__spot {
    position: absolute; top: 50%; left: 50%;
    width: 120%; aspect-ratio: 1 / 1;
    transform: translate(-50%, -52%);
    background: radial-gradient(circle, rgba(244,168,33,0.34), rgba(218,138,12,0.08) 44%, transparent 66%);
    filter: blur(6px); pointer-events: none;
}
.hero__halo {
    position: absolute; top: 50%; left: 50%;
    width: 112%; aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,245,224,0.6) 0%, rgba(249,245,224,0.46) 30%, rgba(249,245,224,0.2) 50%, rgba(249,245,224,0.05) 64%, transparent 76%);
    filter: blur(4px);
    pointer-events: none;
}
.hero__car {
    position: relative; z-index: 2;
    width: min(440px, 92%); height: auto;
    filter: drop-shadow(0 22px 30px rgba(0,0,0,0.4));
    animation: floatCar 6.5s var(--ease) infinite;
}
.hero__floor {
    position: absolute; left: 50%; bottom: 13%;
    transform: translateX(-50%);
    width: 56%; height: 30px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.45), transparent 70%);
    filter: blur(7px); pointer-events: none;
    animation: floorPulse 6.5s var(--ease) infinite;
}
@keyframes floatCar { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floorPulse { 0%,100% { transform: translateX(-50%) scaleX(1); opacity: 0.85; } 50% { transform: translateX(-50%) scaleX(0.86); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .hero__car, .hero__floor { animation: none; } }

/* scroll cue */
.hero__cue {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
    color: var(--on-dark-faint);
}
.hero__cue .line { width: 1px; height: 34px; background: linear-gradient(var(--olive-bright), transparent); animation: cuePulse 1.8s ease-in-out infinite; }
@keyframes cuePulse { 0%,100% { opacity: 0.3; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* =========================================================
   Tarjeta de countdown en el hero
   ========================================================= */
.cdcard {
    position: relative; width: 100%; max-width: 440px;
    background: linear-gradient(180deg, rgba(20,69,76,0.62), rgba(14,48,54,0.62));
    border: 1px solid var(--teal-line);
    border-radius: 22px;
    padding: clamp(26px, 3.5vw, 38px) clamp(22px, 3vw, 34px);
    backdrop-filter: blur(12px);
    box-shadow: 0 34px 80px rgba(0,0,0,0.42), 0 0 60px rgba(244,168,33,0.07);
    overflow: hidden;
}
.cdcard::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--amber), var(--olive), var(--amber));
}
.cdcard__glow {
    position: absolute; top: -40%; right: -30%;
    width: 70%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(244,168,33,0.16), transparent 65%);
    pointer-events: none;
}
.cdcard__label {
    position: relative; z-index: 1;
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--olive-bright);
    display: flex; align-items: center; gap: 0.7em; justify-content: center;
    margin-bottom: 22px; text-align: center;
}
.cdcard__label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-bright); box-shadow: 0 0 10px var(--amber); animation: blink 1.6s ease-in-out infinite; flex-shrink: 0; }
.cdcard__clock { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.cdcell {
    background: rgba(10,38,43,0.7); border: 1px solid var(--teal-line);
    border-radius: 13px; padding: 16px 4px 12px; text-align: center;
}
.cdcell__val {
    display: block; font-family: var(--font-display); font-weight: 900;
    font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--on-dark); line-height: 1;
    font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(244,168,33,0.28);
}
.cdcell__lab { display: block; font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-faint); margin-top: 9px; }
/* Variante sin contador: las semanas publicadas, con la más reciente encendida */
.cdcard__clock--semanas { grid-template-columns: repeat(3, 1fr); list-style: none; }
.cdcell.is-now { border-color: rgba(244,168,33,0.6); box-shadow: 0 0 24px rgba(244,168,33,0.16); }
.cdcell.is-now .cdcell__val { color: var(--amber-bright); }
.cdcell.is-now .cdcell__lab { color: var(--amber-bright); }
.cdcard__cta { position: relative; z-index: 1; width: 100%; justify-content: center; }
.cdcard__note { position: relative; z-index: 1; text-align: center; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--on-dark-faint); margin-top: 14px; }

/* =========================================================
   COUNTDOWN STRIP
   ========================================================= */
.countdown {
    position: relative; z-index: 5;
    background: var(--teal-950);
    border-top: 1px solid var(--teal-line);
    border-bottom: 1px solid var(--teal-line);
    padding: 30px 0;
}
.countdown__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 22px 40px;
}
.countdown__label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--olive-bright); display: flex; align-items: center; gap: 0.7em; }
.countdown__label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-bright); box-shadow: 0 0 10px var(--amber); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.countdown__clock { display: flex; gap: 12px; }
.cd-cell { text-align: center; min-width: 64px; }
.cd-cell__val {
    font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--on-dark); line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 24px rgba(244,168,33,0.25);
}
.cd-cell__lab { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-faint); margin-top: 8px; }
.cd-sep { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem,3.5vw,2.4rem); color: var(--teal-700); align-self: flex-start; }

/* =========================================================
   STORYTELLING — La secuela (Capítulo 02)
   ========================================================= */
.story {
    position: relative;
    background: var(--teal-950);
    border-top: 1px solid var(--teal-line);
    padding: clamp(72px, 11vw, 130px) 0;
    overflow: hidden;
}
.story__bignum {
    position: absolute; right: 1%; top: 50%; transform: translateY(-50%);
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(14rem, 26vw, 30rem); line-height: 0.7;
    color: var(--teal-900);
    opacity: 0.5; pointer-events: none; user-select: none;
    letter-spacing: -0.05em;
}
@media (max-width: 899px) { .story__bignum { display: none; } }
.story__inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center;
}
@media (min-width: 900px) { .story__inner { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.story__kicker { color: var(--olive-bright); margin-bottom: 20px; }
.story h2 {
    font-size: clamp(2rem, 5vw, 3.5rem); color: var(--on-dark);
    line-height: 0.98;
}
.story h2 .amber { color: var(--amber-bright); }
.story__lede {
    margin-top: 20px; color: var(--on-dark-soft);
    font-size: 1.06rem; line-height: 1.62; font-weight: 500; max-width: 50ch;
}
.story__lede strong { color: var(--on-dark); }

.seq {
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, rgba(20,69,76,0.5), rgba(14,48,54,0.5));
    border: 1px solid var(--teal-line);
    border-radius: 20px; padding: 26px 28px;
    backdrop-filter: blur(8px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.32);
}
.seq__item { display: flex; align-items: center; gap: 18px; padding: 12px 4px; }
.seq__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 2.8rem); line-height: 1; min-width: 62px; }
.is-done .seq__num { color: var(--teal-700); }
.is-active .seq__num { color: var(--amber-bright); text-shadow: 0 0 26px rgba(244,168,33,0.3); }
.seq__txt { display: flex; flex-direction: column; flex: 1; }
.seq__txt b { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; color: var(--on-dark); letter-spacing: -0.01em; }
.seq__txt span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--on-dark-faint); margin-top: 5px; text-transform: uppercase; }
.seq__check { width: 30px; height: 30px; border-radius: 50%; background: var(--olive); color: #21260a; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.seq__arrow { font-size: 1.4rem; color: var(--amber-bright); flex-shrink: 0; }
.seq__line { width: 2px; height: 24px; background: linear-gradient(var(--teal-700), var(--amber-bright)); margin-left: 31px; }

/* Variante de apertura (primera vista) */
.story--open { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(92px, 14vh, 150px) 0 92px; }
.story__container { position: relative; z-index: 2; }
.story__brand { display: flex; align-items: center; gap: 11px; margin-bottom: clamp(26px, 5vh, 50px); }
.story__brandtxt { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1rem; color: var(--on-dark); }
.story__brandtxt b { font-family: var(--font-mono); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.1em; color: var(--olive-bright); }
.story__cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--on-dark-faint); text-decoration: none; transition: color 0.3s var(--ease); }
.story__cue:hover { color: var(--olive-bright); }
.story__cue .line { width: 1px; height: 34px; background: linear-gradient(var(--olive-bright), transparent); animation: cuePulse 1.8s ease-in-out infinite; }

/* Apertura: logo a la izquierda, gancho + secuencia a la derecha */
@media (min-width: 900px) { .story__inner--open { grid-template-columns: 0.92fr 1.08fr; } }
.story__copy .seq { margin-top: 30px; max-width: 470px; }
.story--open .story__copy .story__lede { max-width: 44ch; }

/* El carrito en el hero no necesita el halo brillante del logo */
.hero__stage--car .hero__halo { background: radial-gradient(circle, rgba(249,245,224,0.15) 0%, rgba(249,245,224,0.05) 40%, transparent 64%); }

/* =========================================================
   BENEFITS (luz de día — crema)
   ========================================================= */
.benefits {
    position: relative;
    background: var(--cream-bg);
    color: var(--ink);
    padding: clamp(72px, 11vw, 130px) 0;
    overflow: hidden;
}
.benefits__deco {
    position: absolute; inset: 0;
    pointer-events: none; color: var(--teal);
    overflow: hidden;
}
.benefits__deco svg { position: absolute; opacity: 0.06; }

/* Iconos de marca */
.ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.section-head { position: relative; z-index: 2; max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker { color: var(--teal); margin-bottom: 18px; }
.section-head h2 {
    font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
    line-height: 0.95; letter-spacing: -0.03em;
    font-size: clamp(2rem, 5.2vw, 3.4rem);
    color: var(--ink);
}
.section-head h2 .amber { color: var(--amber); }
.section-head p { margin-top: 18px; font-size: 1.06rem; line-height: 1.6; color: var(--ink-soft); font-weight: 500; }

.cards {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr; gap: 22px;
}
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: var(--cream-card);
    border: 1px solid var(--paper-line);
    border-radius: var(--radius);
    padding: 34px 30px 32px;
    position: relative;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
    overflow: hidden;
}
.card::after {
    content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
    background: linear-gradient(90deg, var(--amber), var(--olive));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(22,48,52,0.14); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--ink-faint); }
.card__icon {
    width: 58px; height: 58px; border-radius: 15px;
    display: grid; place-items: center; margin: 18px 0 20px;
    background: var(--teal); color: var(--cream);
    box-shadow: 0 8px 20px rgba(45,103,110,0.3);
}
.card__icon svg { width: 30px; height: 30px; display: block; }
.card:nth-child(2) .card__icon { background: var(--amber); color: #2a1c00; box-shadow: 0 8px 20px rgba(218,138,12,0.32); }
.card:nth-child(3) .card__icon { background: var(--olive); color: #21260a; box-shadow: 0 8px 20px rgba(166,174,61,0.32); }
.card h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1.3rem; color: var(--ink); margin-bottom: 10px; }
.card p { color: var(--ink-soft); line-height: 1.6; font-size: 0.98rem; font-weight: 500; }

/* Tira de valores */
.values {
    position: relative; z-index: 2;
    margin-top: clamp(40px, 6vw, 60px);
    display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center;
}
.value-chip {
    font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--teal);
    border: 1.5px solid var(--paper-line);
    border-radius: 999px; padding: 0.6em 1.2em;
    display: inline-flex; align-items: center; gap: 0.6em;
    background: var(--cream-card);
}
.value-chip .sq { width: 8px; height: 8px; border-radius: 2px; }

/* =========================================================
   FORM (foco — taller de noche)
   ========================================================= */
.form-section {
    position: relative;
    background:
        radial-gradient(70% 60% at 80% 20%, rgba(166,174,61,0.10), transparent 60%),
        radial-gradient(70% 60% at 10% 90%, rgba(218,138,12,0.12), transparent 60%),
        linear-gradient(180deg, var(--teal-900), var(--teal-950));
    padding: clamp(72px, 11vw, 130px) 0;
    overflow: hidden;
}
.form-section__deco {
    position: absolute; inset: 0; pointer-events: none; color: var(--olive-bright); overflow: hidden;
}
.form-section__deco svg { position: absolute; opacity: 0.07; }
.form-layout {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr; gap: 44px; align-items: start;
}
@media (min-width: 900px) { .form-layout { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }

.form-intro .kicker { color: var(--olive-bright); margin-bottom: 18px; }
.form-intro h2 {
    font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
    line-height: 0.95; letter-spacing: -0.03em; font-size: clamp(2rem, 5vw, 3.2rem); color: var(--on-dark);
}
.form-intro h2 .amber { color: var(--amber-bright); }
.form-intro p { margin-top: 18px; color: var(--on-dark-soft); line-height: 1.6; font-size: 1.05rem; font-weight: 500; max-width: 38ch; }
.form-steps { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.form-step { display: flex; align-items: flex-start; gap: 14px; }
.form-step__n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-800); color: var(--olive-bright); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; box-shadow: inset 0 0 0 1px var(--teal-line); }
.form-step span { color: var(--on-dark-soft); font-size: 0.96rem; line-height: 1.5; font-weight: 500; padding-top: 3px; }
.form-step b { color: var(--on-dark); }

.form-card {
    background: linear-gradient(180deg, rgba(20,69,76,0.6), rgba(14,48,54,0.6));
    border: 1px solid var(--teal-line);
    border-radius: 20px;
    padding: clamp(26px, 4vw, 40px);
    backdrop-filter: blur(8px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}
.field { margin-bottom: 20px; }
.field label {
    display: block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 9px;
}
.field input, .field select {
    width: 100%; font-family: var(--font-body); font-size: 1rem; font-weight: 500;
    color: var(--on-dark);
    background: rgba(10,38,43,0.7);
    border: 1.5px solid var(--teal-line);
    border-radius: 10px;
    padding: 0.95rem 1.05rem;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    -webkit-appearance: none; appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aecbce' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1.05rem center;
    padding-right: 2.6rem; cursor: pointer;
}
.field input::placeholder { color: var(--on-dark-faint); }
.field input:focus, .field select:focus {
    outline: none; border-color: var(--amber-bright);
    background: rgba(10,38,43,0.92);
    box-shadow: 0 0 0 3px rgba(244,168,33,0.16);
}
.field select option { background: var(--teal-900); color: var(--on-dark); }
.field.invalid input, .field.invalid select { border-color: #e8743b; box-shadow: 0 0 0 3px rgba(232,116,59,0.16); }
.field__err { display: none; color: #f0996b; font-family: var(--font-mono); font-size: 0.7rem; margin-top: 7px; letter-spacing: 0.04em; }
.field.invalid .field__err { display: block; }

.form-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { margin-top: 16px; text-align: center; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--on-dark-faint); }

.form-feedback { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; text-align: center; }
.form-feedback.ok { display: block; background: rgba(166,174,61,0.14); border: 1px solid var(--olive); color: var(--olive-bright); }
.form-feedback.err { display: block; background: rgba(232,116,59,0.12); border: 1px solid #e8743b; color: #f0996b; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(42,28,0,0.3); border-top-color: #2a1c00; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   AULA — sesiones de clase (la pizarra del garaje)
   ========================================================= */
.aula {
    position: relative;
    background:
        radial-gradient(80% 70% at 15% 0%, rgba(45,103,110,0.55), transparent 62%),
        linear-gradient(180deg, var(--teal-850), var(--teal-900));
    color: var(--on-dark);
    padding: clamp(72px, 11vw, 130px) 0;
    overflow: hidden;
}
.aula__deco { position: absolute; inset: 0; pointer-events: none; color: var(--olive-bright); overflow: hidden; }
.aula__deco svg { position: absolute; opacity: 0.06; }
.aula .section-head { position: relative; z-index: 2; }
.aula .section-head .kicker { color: var(--olive-bright); }
.aula .section-head h2 { color: var(--on-dark); }
.aula .section-head h2 .amber { color: var(--amber-bright); }
.aula .section-head p { color: var(--on-dark-soft); }

.aula__layout {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start;
}
@media (min-width: 940px) {
    /* Las sesiones en columnas iguales, para compararlas de un vistazo; el aside
       «Cómo se recorre» cruza todas las columnas por debajo. Con un número impar
       de sesiones, la última ocupa la fila entera para no dejar un hueco */
    .aula__layout { grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
    .aula__layout > .aula__aside,
    .aula__layout > .sesion:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1180px) {
    /* Tres sesiones caben en una sola fila */
    .aula__layout { grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .aula__layout > .sesion:last-of-type:nth-of-type(odd) { grid-column: auto; }
}

.sesion {
    position: relative;
    /* Columna flex: iguala la altura y deja empujar las acciones al fondo */
    display: flex; flex-direction: column;
    background: linear-gradient(160deg, rgba(18,58,64,0.96), rgba(10,38,43,0.96));
    border: 1px solid var(--teal-line);
    border-radius: var(--radius);
    padding: clamp(24px, 3.2vw, 34px);
    overflow: hidden;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sesion::before {
    content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
    background: linear-gradient(180deg, var(--amber-bright), var(--olive));
}
.sesion:hover { transform: translateY(-4px); border-color: rgba(244,168,33,0.45); box-shadow: 0 26px 54px rgba(0,0,0,0.34); }

.sesion__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.sesion__num {
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--teal-900); background: var(--olive-bright); border-radius: 999px; padding: 6px 13px; font-weight: 700;
}
.sesion__estado {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--on-dark-soft);
}
.sesion__estado .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-bright); box-shadow: 0 0 10px var(--amber); animation: blink 1.6s ease-in-out infinite; }

.sesion h3 {
    font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em;
    font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.08; color: var(--on-dark);
}
.sesion__sub { margin-top: 10px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--amber-bright); }
.sesion__txt { margin-top: 16px; color: var(--on-dark-soft); line-height: 1.62; font-weight: 500; max-width: 52ch; }

.sesion__datos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sesion__dato {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--on-dark-soft); background: rgba(249,245,224,0.05);
    border: 1px solid var(--teal-line); border-radius: 999px; padding: 7px 11px;
}
.sesion__dato svg { width: 14px; height: 14px; color: var(--olive-bright); }

/* margin-top:auto empuja el bloque al fondo: los botones de las dos tarjetas quedan a la misma altura */
.sesion__acciones { display: flex; flex-wrap: wrap; gap: 11px; margin-top: auto; padding-top: 26px; }
.sesion__acciones .btn { flex: 0 1 auto; }
.sesion__nota {
    margin-top: 16px; font-family: var(--font-mono); font-size: 0.66rem; line-height: 1.7;
    letter-spacing: 0.04em; color: var(--on-dark-soft);
}

.aula__aside {
    background: rgba(10,38,43,0.6);
    border: 1px solid var(--teal-line);
    border-radius: var(--radius);
    padding: clamp(24px, 3.4vw, 32px);
}
.aula__aside h3 {
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
    font-size: 1.1rem; color: var(--on-dark); margin-bottom: 6px;
}
.aula__aside > p { color: var(--on-dark-soft); font-size: 0.95rem; line-height: 1.6; font-weight: 500; }
.aula__pasos { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.aula__paso { display: flex; align-items: flex-start; gap: 14px; }
.aula__paso b {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    background: var(--teal-800); color: var(--olive-bright);
    display: grid; place-items: center;
    font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem;
    box-shadow: inset 0 0 0 1px var(--teal-line);
}
.aula__paso span { color: var(--on-dark-soft); font-size: 0.93rem; line-height: 1.55; font-weight: 500; padding-top: 4px; }
.aula__paso i { font-style: normal; color: var(--on-dark); font-weight: 700; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--teal-950);
    border-top: 1px solid var(--teal-line);
    padding: 54px 0 40px;
    color: var(--on-dark-soft);
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand .nav__badge { width: 34px; height: 34px; font-size: 0.9rem; }
.footer__brand b { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; color: var(--on-dark); font-size: 0.95rem; }
.footer__meta { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--on-dark-faint); text-align: center; line-height: 1.9; }
.footer__meta .tag { color: var(--olive-bright); }
.footer__robot { width: 15px; height: 15px; vertical-align: -3px; margin-right: 5px; color: var(--olive-bright); animation: robotGlow 2.8s ease-in-out infinite; }
@keyframes robotGlow { 0%, 100% { color: var(--olive-bright); } 50% { color: var(--amber-bright); } }

/* =========================================================
   Modal de éxito
   ========================================================= */
.modal-overlay {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(8,30,34,0.82); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; padding: 24px;
    opacity: 0; transition: opacity 0.3s var(--ease);
}
.modal-overlay.show { display: flex; opacity: 1; }
.modal {
    background: linear-gradient(180deg, var(--cream-card), var(--cream-bg));
    color: var(--ink);
    border-radius: 22px; max-width: 440px; width: 100%;
    padding: 44px 38px 36px; text-align: center;
    box-shadow: 0 0 0 1px rgba(218,138,12,0.4), 0 40px 90px rgba(0,0,0,0.5);
    transform: scale(0.92) translateY(10px); transition: transform 0.4s var(--ease);
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }
.modal__check { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; background: var(--olive); color: #21260a; display: grid; place-items: center; font-size: 2.2rem; box-shadow: 0 0 0 6px rgba(166,174,61,0.22); }
.modal h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.7rem; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.02em; }
.modal p { color: var(--ink-soft); line-height: 1.55; margin-bottom: 8px; font-weight: 500; }
.modal p strong { color: var(--teal); }
.modal .btn { margin-top: 22px; }

/* =========================================================
   Scroll reveal — estado base VISIBLE; solo se oculta lo que
   está fuera de viewport (clase .pre) y se revela al entrar.
   ========================================================= */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(26px); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .reveal, .reveal.pre { opacity: 1 !important; transform: none !important; }
}

:focus-visible { outline: 2px solid var(--amber-bright); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
