/* OpenHood · landing. Tokens tomados de lib/core/app_theme.dart */
@font-face {
    font-family: "Sora";
    src: url("fonts/Sora.ttf") format("truetype");
    font-weight: 100 800;
    font-display: swap;
}

:root {
    --k: 1.12;
    --bg: #070a10;
    --raised: #0e131e;
    --muted: #0a0f18;
    --blue: #0066ff;
    --orange: #ff8a00;
    --text: #f3f6fb;
    --dim: rgba(243, 246, 251, 0.64);
    --faint: rgba(243, 246, 251, 0.38);
    --line: rgba(255, 255, 255, 0.085);
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
    --pad: clamp(20px, 4.2vw, 56px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    background: var(--bg);
}

body {
    margin: 0;
    font-family: "Sora", system-ui, sans-serif;
    color: var(--text);
    background: transparent;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

#bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg);
}

.wrap {
    width: min(1280px, 100%);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    background: var(--blue);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
}

.skip:focus {
    top: 12px;
}

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

/* ---------- Cabecera ---------- */
.top {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding-block: 14px;
    transition: background 0.4s var(--ease), border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.top.is-stuck {
    background: rgba(7, 10, 16, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

.top-in {
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.16em;
    font-size: 0.92rem;
}

.brand img {
    border-radius: 8px;
}

.nav {
    margin-left: auto;
    display: flex;
    gap: 26px;
}

.nav a {
    text-decoration: none;
    color: var(--dim);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--text);
}

/* ---------- Botones ---------- */
.btn {
    --h: 52px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: var(--h);
    padding-inline: 22px;
    border-radius: 14px;
    font: 600 0.98rem/1 "Sora", sans-serif;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn span {
    transition: transform 0.25s var(--ease);
}

.btn:hover span {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 10px 30px -8px rgba(0, 102, 255, 0.55);
}

.btn-primary:hover {
    background: #1a75ff;
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 16px 40px -8px rgba(0, 102, 255, 0.7);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
    --h: 40px;
    padding-inline: 16px;
    font-size: 0.86rem;
    border-radius: 12px;
}

.btn-lg {
    --h: 60px;
    padding-inline: 28px;
    font-size: 1.05rem;
}

/* ---------- Tipografía ---------- */
.eyebrow,
.kicker {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    margin: 0 0 22px;
}

.kicker {
    color: var(--orange);
    margin-bottom: 16px;
}

.led {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    margin-right: 12px;
    box-shadow: 0 0 10px 1px rgba(255, 138, 0, 0.9);
    animation: led 2.4s ease-in-out infinite;
}

@keyframes led {
    50% {
        opacity: 0.35;
        box-shadow: 0 0 4px 0 rgba(255, 138, 0, 0.5);
    }
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.04;
}

.h1 {
    font-size: clamp(2.4rem, 5.6vw, 4.9rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
}

h2 {
    font-size: clamp(1.9rem, 3.5vw, 3.1rem);
    margin-bottom: 22px;
}

p {
    margin: 0 0 1em;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: 120px 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: center;
}

.line {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    padding-bottom: 0.08em;
}

.line > span {
    display: block;
}

.lede {
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    color: var(--dim);
    max-width: 44ch;
    margin: 28px 0 34px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.spec {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 0;
    margin: 56px 0 0;
    border-top: 1px solid var(--line);
    max-width: 560px;
}

.spec > div {
    padding: 16px 28px 0 0;
}

.spec > div + div {
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.spec dt {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}

.spec dd {
    margin: 4px 0 0;
    font-weight: 600;
    font-size: 0.98rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    padding-top: 46px;
}

.stage {
    position: relative;
    width: min(100%, 520px);
    --px: 0;
    --py: 0;
}

.emblem {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 102, 255, 0.28));
    transform: translate3d(calc(var(--px) * 14px), calc(var(--py) * 10px), 0) rotate(calc(var(--px) * 1.4deg));
    will-change: transform;
}

.hl {
    position: absolute;
    top: 60%;
    width: 7%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.9) 18%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    pointer-events: none;
}

.hl-l {
    left: 14%;
}

.hl-r {
    left: 88%;
}

.callouts {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.callouts path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.34);
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.tag {
    position: absolute;
    top: -11%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
    white-space: nowrap;
    opacity: 0;
}

/* Intro (solo con JS) */
.js .line > span {
    transform: translateY(105%);
    transition: transform 1s var(--ease);
}

.js .eyebrow,
.js .lede,
.js .cta-row,
.js .spec,
.js .emblem {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .emblem {
    transform: translateY(24px) scale(0.97);
}

.is-ready .line > span {
    transform: none;
}

.is-ready .line:nth-child(2) > span {
    transition-delay: 0.1s;
}

.is-ready .line:nth-child(3) > span {
    transition-delay: 0.2s;
}

.is-ready .eyebrow,
.is-ready .lede,
.is-ready .cta-row,
.is-ready .spec {
    opacity: 1;
    transform: none;
}

.is-ready .lede {
    transition-delay: 0.35s;
}

.is-ready .cta-row {
    transition-delay: 0.45s;
}

.is-ready .spec {
    transition-delay: 0.6s;
}

.is-ready .emblem {
    opacity: 1;
    transform: translate3d(calc(var(--px) * 14px), calc(var(--py) * 10px), 0) rotate(calc(var(--px) * 1.4deg));
    transition: opacity 1.2s var(--ease) 0.15s;
}

.is-ready .hl {
    animation: flash 1.6s 0.5s var(--ease) both;
}

@keyframes flash {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.4);
    }
    35% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(2.6);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.is-ready .callouts path {
    animation: draw 1.1s 1.1s var(--ease) forwards;
}

.is-ready .callouts path:nth-child(2) {
    animation-delay: 1.25s;
}

.is-ready .callouts path:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.is-ready .tag {
    animation: fadein 0.8s 1.3s var(--ease) forwards;
}

.is-ready .tag:nth-of-type(2) {
    animation-delay: 1.45s;
}

.is-ready .tag:nth-of-type(3) {
    animation-delay: 1.6s;
}

@keyframes fadein {
    to {
        opacity: 1;
    }
}

/* ---------- Historia ---------- */
.story {
    padding-block: 40px 40px;
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(32px, 6vw, 100px);
}

.chapter {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    max-width: 520px;
    transition: opacity 0.5s;
}

.js .chapter:not(.is-active) {
    opacity: 0.38;
}

.num {
    display: block;
    margin: 0 0 6px -4px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(4.6rem, 8vw, 7.5rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
    pointer-events: none;
    user-select: none;
}

.chapter p:not(.kicker) {
    color: var(--dim);
    font-size: 1.05rem;
    max-width: 46ch;
}

.parts {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--dim);
}

.parts li {
    padding: 9px 0;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 14px;
}

.parts li::before {
    content: "—";
    color: var(--orange);
}

.parts li:last-child {
    border-bottom: 1px solid var(--line);
}

.slot {
    display: none;
}

.device-col {
    position: relative;
}

.stick {
    position: sticky;
    top: calc(50vh - 310px * var(--k) - 18px);
}

.device-note {
    margin-top: 16px !important;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
    margin: 0;
}

/* ---------- Móvil de ejemplo ---------- */
.device-wrap {
    position: relative;
    width: calc(300px * var(--k));
    height: calc(620px * var(--k));
    margin-inline: auto;
    perspective: 1400px;
}

.tilt {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--tx, 0) * 7deg)) rotateX(calc(var(--ty, 0) * -5deg));
    will-change: transform;
}

.device {
    position: relative;
    width: 300px;
    height: 620px;
    transform: scale(var(--k));
    transform-origin: top left;
    border-radius: 46px;
    padding: 9px;
    background: linear-gradient(160deg, #1b2230, #0a0d14 40%, #151b27);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6),
        0 30px 120px -40px rgba(0, 102, 255, 0.45);
}

.cam {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #05070b;
    transform: translateX(-50%);
    z-index: 5;
    box-shadow: 0 0 0 2px #0b0f17;
}

.screens {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 38px;
    clip-path: inset(0 round 38px);
    overflow: hidden;
    background: var(--bg);
}

.scr {
    position: absolute;
    inset: 0;
    padding: 42px 12px 78px;
    background: radial-gradient(120% 60% at 100% 0%, rgba(0, 102, 255, 0.1), transparent 60%),
        radial-gradient(100% 50% at 0% 100%, rgba(255, 138, 0, 0.07), transparent 60%), var(--bg);
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
    pointer-events: none;
    overflow: hidden;
}

.scr.is-on {
    opacity: 1;
    transform: none;
}

.app-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    margin: 0 4px 12px;
}

.app-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.8);
}

.panel {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.072), rgba(0, 102, 255, 0.045) 55%, rgba(255, 255, 255, 0.028));
}

.chips {
    display: flex;
    gap: 6px;
    margin: 0 0 10px;
    overflow: hidden;
}

.chips span {
    flex: none;
    font-size: 0.62rem;
    padding: 6px 11px;
    border-radius: 99px;
    border: 1px solid var(--line);
    color: var(--dim);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.chips span.on {
    background: rgba(0, 102, 255, 0.28);
    border-color: rgba(0, 102, 255, 0.7);
    color: #fff;
}

/* Cuadrícula de garajes */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.car {
    --c: 0, 102, 255;
    margin: 0;
    position: relative;
    aspect-ratio: 1.02;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(var(--c), 0.34), rgba(var(--c), 0.06) 60%, #0a0f18);
    border: 1px solid rgba(var(--c), 0.28);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), filter 0.4s;
}

.car svg {
    position: absolute;
    left: 6%;
    top: 22%;
    width: 88%;
    fill: rgba(var(--c), 0.2);
    stroke: rgb(var(--c));
    stroke-width: 2.2;
    stroke-linejoin: round;
    overflow: visible;
}

.car figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px 9px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    font-size: 0.64rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.78);
}

.car figcaption b {
    display: block;
    color: #fff;
    font-size: 0.76rem;
}

.scr.is-play .car {
    opacity: 1;
    transform: none;
}

.scr.is-play .car:nth-child(2) {
    transition-delay: 0.08s;
}

.scr.is-play .car:nth-child(3) {
    transition-delay: 0.16s;
}

.scr.is-play .car:nth-child(4) {
    transition-delay: 0.24s;
}

.scr.is-play .car:nth-child(5) {
    transition-delay: 0.32s;
}

.scr.is-play .car:nth-child(6) {
    transition-delay: 0.4s;
}

.car.dim {
    opacity: 0.22 !important;
    filter: saturate(0.3);
}

/* Piezas de las siluetas: dentro de <use> solo se aplican reglas globales;
   el color llega por la variable --c heredada del contenedor */
.glass {
    fill: rgba(var(--c), 0.1);
    stroke-width: 1.4;
}

.wheel {
    fill: #070a10;
}

/* Dock inferior (réplica del de la app) */
.dock {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    display: flex;
    padding: 6px 4px;
    border-radius: 20px;
    background: rgba(7, 10, 16, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.dock div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 0 4px;
    font-size: 0.56rem;
    color: rgba(255, 255, 255, 0.42);
}

.dock svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dock .on {
    color: var(--blue);
    font-weight: 600;
}

.dock .on::after {
    content: "";
    width: 16px;
    height: 2.5px;
    border-radius: 9px;
    background: var(--blue);
    margin-top: 1px;
}

/* Botones y elementos comunes dentro de la app */
.app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    transition: transform 0.2s, background 0.3s, opacity 0.3s;
}

.app-btn.ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--dim);
}

.app-btn.press {
    transform: scale(0.95);
}

.app-btn.done {
    background: rgba(40, 190, 120, 0.2);
    border: 1px solid rgba(40, 190, 120, 0.6);
    color: #7de0b0;
}

/* Detalle de coche + saludo */
.big {
    --c: 255, 138, 0;
    position: relative;
    height: 168px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(var(--c), 0.34), rgba(var(--c), 0.05) 60%, #0a0f18);
    border: 1px solid rgba(var(--c), 0.3);
    margin-bottom: 12px;
}

.big svg {
    position: absolute;
    inset: 22% 6% auto;
    width: 88%;
    fill: rgba(var(--c), 0.2);
    stroke: rgb(var(--c));
    stroke-width: 2;
    stroke-linejoin: round;
}

.c-name {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 4px 2px;
}

.c-sub {
    font-size: 0.66rem;
    color: var(--dim);
    margin: 0 4px 10px;
}

.view {
    position: absolute;
    inset: 68px 12px 78px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
    pointer-events: none;
}

.view.is-on {
    opacity: 1;
    transform: none;
}

.sheet {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 84px;
    padding: 14px;
    border-radius: 20px;
    background: #101725;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(calc(100% + 140px));
    transition: transform 0.55s var(--ease);
    z-index: 3;
}

.sheet.is-on {
    transform: none;
}

.sheet h5 {
    margin: 0 0 8px;
    font-size: 0.8rem;
}

.ta {
    min-height: 74px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 9px 10px;
    font-size: 0.68rem;
    line-height: 1.45;
    color: #fff;
}

.caret {
    display: inline-block;
    width: 1px;
    height: 0.9em;
    background: #fff;
    vertical-align: -1px;
    margin-left: 1px;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.sheet .row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.sheet .row .app-btn {
    flex: 1;
    height: 34px;
}

.toast {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 92px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(40, 190, 120, 0.16);
    border: 1px solid rgba(40, 190, 120, 0.5);
    font-size: 0.64rem;
    color: #aef0cd;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.5s var(--ease);
    z-index: 4;
}

.toast.is-on {
    opacity: 1;
    transform: none;
}

.who {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    border: 1px solid rgba(255, 138, 0, 0.4);
    padding: 4px 8px;
    border-radius: 6px;
    margin: 0 4px 12px;
}

.tile {
    padding: 12px;
}

.tile .who-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
}

.av {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue), #00338a);
    flex: none;
}

.av.o {
    background: linear-gradient(135deg, var(--orange), #9a4f00);
}

.tile p {
    margin: 0;
    font-size: 0.66rem;
    color: var(--dim);
    line-height: 1.45;
}

.tile b {
    font-size: 0.74rem;
}

.tile .row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.tile .row .app-btn {
    flex: 1;
    height: 32px;
}

.bubble {
    max-width: 82%;
    padding: 9px 11px;
    border-radius: 14px;
    font-size: 0.66rem;
    line-height: 1.45;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.5s var(--ease);
}

.bubble.me {
    margin-left: auto;
    background: var(--blue);
    border-bottom-right-radius: 4px;
}

.bubble.them {
    background: #151c2a;
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}

.bubble.is-on {
    opacity: 1;
    transform: none;
}

/* Evento */
.ev-cover {
    position: relative;
    height: 112px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #0b2a66, #070a10 70%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 14px);
    border: 1px solid rgba(0, 102, 255, 0.35);
}

.ev-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 14px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 14px);
}

.pin {
    position: absolute;
    left: 58%;
    top: 34%;
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    background: var(--orange);
    transform: rotate(-45deg);
    box-shadow: 0 0 0 6px rgba(255, 138, 0, 0.22), 0 0 24px rgba(255, 138, 0, 0.8);
}

.pin::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #070a10;
}

.ev-meta {
    margin: 0 4px 8px;
}

.ev-meta b {
    display: block;
    font-size: 0.92rem;
    line-height: 1.2;
}

.ev-meta span {
    font-size: 0.62rem;
    color: var(--dim);
}

.count {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 10px 4px 6px;
    font-size: 0.6rem;
    font-family: var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
}

.count b {
    color: #fff;
    font-size: 0.9rem;
    font-family: "Sora", sans-serif;
}

.att {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    margin-bottom: 6px;
    font-size: 0.64rem;
    border-radius: 14px;
    transition: opacity 0.4s, transform 0.5s var(--ease), max-height 0.5s var(--ease);
}

.att .av {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
}

.att small {
    color: var(--dim);
    margin-left: auto;
    font-size: 0.58rem;
}

.att.me {
    max-height: 0;
    padding-block: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    border-color: rgba(255, 138, 0, 0.5);
}

.att.me.is-on {
    max-height: 44px;
    padding-block: 7px;
    margin-bottom: 6px;
    opacity: 1;
}

/* Formulario de coche */
.form {
    padding: 12px;
}

.field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-bottom: 6px;
    font-size: 0.64rem;
    color: var(--faint);
    transition: border-color 0.3s;
}

.field b {
    color: #fff;
    font-weight: 600;
    min-height: 1em;
}

.field.on {
    border-color: rgba(0, 102, 255, 0.8);
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 6px 0 10px;
}

.photos i {
    aspect-ratio: 1.25;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    transition: background 0.5s, border-color 0.5s;
}

.photos i.on {
    border: 1px solid rgba(255, 138, 0, 0.5);
    background: linear-gradient(150deg, rgba(255, 138, 0, 0.5), rgba(255, 138, 0, 0.08));
}

.photos i.on:nth-child(2) {
    border-color: rgba(0, 102, 255, 0.6);
    background: linear-gradient(150deg, rgba(0, 102, 255, 0.5), rgba(0, 102, 255, 0.08));
}

.saved {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 9px 10px;
    font-size: 0.64rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.5s var(--ease);
}

.saved.is-on {
    opacity: 1;
    transform: none;
}

.saved svg {
    width: 52px;
    flex: none;
    fill: rgba(255, 138, 0, 0.2);
    stroke: var(--orange);
    stroke-width: 2.4;
}

/* ---------- Reglas ---------- */
.rules {
    padding-block: clamp(80px, 12vw, 160px);
}

.rules-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 6vw, 100px);
}

.rules h2 {
    max-width: 14ch;
}

.rule-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: r;
}

.rule-list li {
    counter-increment: r;
    display: grid;
    grid-template-columns: 56px 1fr;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}

.rule-list li:last-child {
    border-bottom: 1px solid var(--line);
}

.rule-list li > h3,
.rule-list li > p {
    grid-column: 2;
}

.rule-list li::before {
    grid-row: 1 / span 2;
    content: "0" counter(r);
    font-family: var(--mono);
    color: var(--orange);
    font-size: 0.85rem;
    padding-top: 6px;
}

.rule-list h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.rule-list p {
    color: var(--dim);
    margin: 0;
    max-width: 52ch;
}

.rule-list a {
    color: var(--text);
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.35);
}

/* ---------- Acceso ---------- */
.access {
    padding-block: clamp(60px, 10vw, 140px) 40px;
}

.access-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 6vw, 100px);
    align-items: center;
}

.access h2 {
    font-size: clamp(2rem, 3.7vw, 3.4rem);
}

.access-copy > p:not(.kicker):not(.mail) {
    color: var(--dim);
    max-width: 48ch;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.mail {
    margin: 16px 0 0;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--faint);
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: s;
}

.steps li {
    counter-increment: s;
    position: relative;
    padding: 0 0 34px 54px;
}

.steps li::before {
    content: counter(s);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.82rem;
    background: var(--raised);
}

.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 17.5px;
    top: 42px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(var(--line), transparent);
}

.steps b {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.steps span {
    color: var(--dim);
    font-size: 0.95rem;
}

.reqs {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    color: var(--faint);
}

/* ---------- Pie ---------- */
.foot {
    padding-block: 34px 44px;
}

.foot-in {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 36px;
    align-items: center;
    font-size: 0.86rem;
}

.brand-sm {
    font-weight: 800;
    letter-spacing: 0.16em;
}

.foot nav {
    display: flex;
    gap: 22px;
}

.foot nav a {
    color: var(--dim);
    text-decoration: none;
}

.foot nav a:hover {
    color: var(--text);
}

.muted {
    margin-left: auto;
    color: var(--faint);
}

/* ---------- Revelado al hacer scroll ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].in {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .story-grid {
        grid-template-columns: 1fr;
    }

    .device-col {
        display: none;
    }

    .chapter {
        min-height: 0;
        padding-block: 72px;
        max-width: none;
    }

    .js .chapter:not(.is-active) {
        opacity: 1;
    }

        .slot {
        display: block;
        margin-top: 34px;
    }

    .slot .device-wrap {
        --k: 1;
    }
}

@media (max-width: 860px) {
    .hero {
        padding-block: 104px 56px;
        min-height: 0;
    }

    .hero-grid,
    .rules-grid,
    .access-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }

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

    .hero-visual {
        order: -1;
        padding-top: 28px;
    }

    .stage {
        width: min(86%, 380px);
    }

    .spec {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 8px;
    }

    .spec > div:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .muted {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .eyebrow {
        font-size: 0.64rem;
        letter-spacing: 0.08em;
    }

    .tag {
        font-size: 0.58rem;
        letter-spacing: 0.06em;
    }

    .btn {
        padding-inline: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0ms !important;
    }

    .js .chapter:not(.is-active) {
        opacity: 1;
    }
}
