/* =============================================================
   RUNAGUA — estilos del sitio
   Colores tomados del logo: negro, azul malecón, menta y lima.
   ============================================================= */

/* ---------- Fuentes (servidas localmente) ---------- */
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/barlow-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: italic; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 900; font-style: italic; font-display: swap; src: url('/fonts/barlow-condensed-latin-900-italic.woff2') format('woff2'); }
@font-face { font-family: 'Permanent Marker'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/permanent-marker-latin-400-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;

  --ink: #020205;          /* negro del logo */
  --ink-1: #06080c;
  --ink-2: #0c0f15;        /* superficies */
  --ink-3: #141922;        /* superficies elevadas */
  --ink-4: #1d2430;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --text: #f3f6f9;
  --text-2: #c3cbd6;
  --muted: #8b95a4;

  /* Tokens que cambian con el tema (ver "Tema claro" más abajo) */
  --on-accent: #020205;    /* texto sobre lima, menta o el degradado */
  --fg-rgb: 255, 255, 255; /* velos y bordes suaves del color del texto */
  --bg-rgb: 2, 2, 5;       /* fondos translúcidos del color de la página */
  --card-rgb: 12, 15, 21;  /* fondos translúcidos del color de las tarjetas */
  --shadow-rgb: 0, 0, 0;
  --shadow-k: 1;           /* intensidad de las sombras */
  --lime-ink: var(--lime); /* lima usada como texto o icono */
  --lime-line: var(--lime);
  --sky-ink: var(--sky);
  --mint-ink: var(--mint);
  --danger-ink: #ff9aa2;
  --danger-fg: #ffc1c6;
  --focus: var(--lime);
  --placeholder: #5f6978;
  --stub: #0a0d13;
  --hero-lead: #dfe5ec;
  --hero-img: .42;
  --alert-error: #ffc4c9;
  --alert-info: #bfe9ff;
  --alert-success: #e8ffb0;
  --alert-warn: #ffe2b3;

  --sky: #00b4fd;          /* azul malecón */
  --cyan: #02c4fc;
  --mint: #03df94;
  --lime: #c3f907;         /* lima de la meta */
  --sunset: #fbb241;       /* atardecer */
  --danger: #ff5a67;
  --violet: #a68bff;

  --grad: linear-gradient(100deg, var(--sky) 0%, var(--mint) 52%, var(--lime) 100%);
  --grad-text: var(--grad); /* degradado para textos */

  --f-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-brush: 'Permanent Marker', 'Barlow Condensed', cursive;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --nav-h: 76px;
}

/* ---------- Tema claro (se elige con el botón sol/luna del menú) ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #eef2f7;
  --ink-1: #f7f9fc;
  --ink-2: #ffffff;
  --ink-3: #e6ecf3;
  --ink-4: #d9e1eb;
  --line: rgba(15, 23, 42, .1);
  --line-2: rgba(15, 23, 42, .18);
  --text: #0b1320;
  --text-2: #3b4757;
  --muted: #5d6979;

  --fg-rgb: 15, 23, 42;
  --bg-rgb: 238, 242, 247;
  --card-rgb: 255, 255, 255;
  --shadow-rgb: 22, 42, 72;
  --shadow-k: .3;
  --grad-text: linear-gradient(100deg, #0284c7 0%, #059669 52%, #4a7a0c 100%);
  --lime-ink: #44700d;
  --lime-line: #79a700;
  --sky-ink: #0369a1;
  --mint-ink: #047857;
  --danger-ink: #c81e2c;
  --danger-fg: #b42331;
  --focus: #0284c7;
  --placeholder: #747e8b;
  --stub: #f3f6fa;
  --hero-lead: var(--text-2);
  --hero-img: .5;
  --alert-error: #9f1d28;
  --alert-info: #075985;
  --alert-success: #3f6212;
  --alert-warn: #8a4b00;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: var(--ink); color: var(--text);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
::selection { background: var(--lime); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--lime); color: var(--on-accent); border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tipografía ---------- */
.display { font-family: var(--f-display); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: .92; letter-spacing: -.004em; }
.h-l { font-size: clamp(2.35rem, 5.4vw, 4.4rem); }
.h-m { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h-s { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.brush { font-family: var(--f-brush); font-weight: 400; font-style: normal; text-transform: none; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.55; color: var(--text-2); max-width: 58ch; }
.muted { color: var(--muted); }
.note-line { display: flex; gap: .55rem; align-items: flex-start; }
.note-line .i { margin-top: .2rem; }
.small { font-size: .9rem; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .02em; }
.link { color: var(--lime-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link:hover { color: var(--text); }

/* ---------- Botones: paralelogramo inclinado, como la tipografía itálica del logo ---------- */
.btn {
  --bg: var(--ink-3); --fg: var(--text);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: 0 1.6rem;
  border: 0; background: none; color: var(--fg);
  font: 700 1.14rem/1 var(--f-display); letter-spacing: .015em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .3s var(--ease), color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg); border-radius: 11px; transform: skewX(-9deg);
  transition: box-shadow .3s, background-position .6s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .i { width: 1.2em; height: 1.2em; }
.btn--primary { --fg: var(--on-accent); }
.btn--primary::before { background: var(--grad); background-size: 170% 100%; background-position: 0 0; }
.btn--primary:hover::before { background-position: 100% 0; box-shadow: 0 12px 34px -10px rgba(3, 223, 148, .6); }
.btn--ghost::before { background: rgba(var(--fg-rgb), .02); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover::before { box-shadow: inset 0 0 0 1.5px var(--text); background: rgba(var(--fg-rgb), .05); }
.btn--light { --fg: var(--on-accent); }
.btn--light::before { background: #fff; }
.btn--danger { --fg: var(--danger-fg); }
.btn--danger::before { background: rgba(255, 90, 103, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 90, 103, .45); }
.btn--danger:hover::before { background: rgba(255, 90, 103, .18); }
.btn--sm { min-height: 40px; padding: 0 1.1rem; font-size: 1.02rem; }
.btn--lg { min-height: 58px; padding: 0 2.1rem; font-size: 1.3rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.more { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--text-2); text-decoration: none; }
.more .i { transition: transform .3s var(--ease); }
.more:hover { color: var(--text); }
.more:hover .i { transform: translateX(4px); }

/* ---------- Insignias de estado ---------- */
.badge {
  --tone: var(--muted);
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .34rem .72rem; border-radius: 999px;
  font: 600 .84rem/1.1 var(--f-body); white-space: nowrap;
  color: color-mix(in srgb, var(--tone) 55%, #fff);
  background: color-mix(in srgb, var(--tone) 15%, rgba(2, 2, 5, .6));
  border: 1px solid color-mix(in srgb, var(--tone) 38%, transparent);
  backdrop-filter: blur(8px);
}
.badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--tone); box-shadow: 0 0 10px var(--tone); }
.tone-lime { --tone: var(--lime); }
.tone-sky { --tone: var(--sky); }
.tone-sunset { --tone: var(--sunset); }
.tone-danger { --tone: var(--danger); }
.tone-violet { --tone: var(--violet); }
.tone-muted { --tone: #8b95a4; }

.dists { display: flex; flex-wrap: wrap; gap: .4rem; }
.dists li { font: 800 1.02rem/1 var(--f-display); font-style: italic; padding: .38rem .6rem .34rem; border-radius: 7px; background: rgba(var(--fg-rgb), .07); border: 1px solid var(--line); letter-spacing: .02em; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; border-bottom: 1px solid transparent; transition: background-color .35s, border-color .35s, backdrop-filter .35s; }
.nav.is-solid, body:not(.is-home):not(.is-event) .nav { background: rgba(var(--bg-rgb), .8); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 1.2rem; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand__word { font: italic 900 1.62rem/1 var(--f-display); letter-spacing: .01em; }
.brand__word > span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.nav__links { display: flex; gap: .2rem; margin-left: auto; }
.nav__links a { padding: .55rem .9rem; border-radius: 9px; text-decoration: none; font-weight: 600; color: var(--text-2); transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--text); background: rgba(var(--fg-rgb), .06); }
.nav__actions { display: flex; align-items: center; gap: .8rem; margin-left: .6rem; }
.nav__login { font-weight: 600; text-decoration: none; color: var(--text-2); padding: .5rem .4rem; }
.nav__login:hover { color: var(--text); }
.nav__admin { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 9px; border: 1px solid var(--line-2); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--text-2); }
.nav__admin:hover { color: var(--text); border-color: var(--text); }

.usermenu { position: relative; }
.usermenu summary { display: flex; align-items: center; gap: .55rem; list-style: none; cursor: pointer; padding: .3rem .5rem .3rem .3rem; border-radius: 999px; border: 1px solid var(--line); transition: border-color .2s; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover, .usermenu[open] summary { border-color: var(--line-2); }
.usermenu summary .i { width: 1rem; height: 1rem; color: var(--muted); transition: transform .25s; }
.usermenu[open] summary .i { transform: rotate(180deg); }
.usermenu__name { font-weight: 600; max-width: 10ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-accent); font: 800 .95rem/1 var(--f-display); letter-spacing: .02em; flex: none; }
.usermenu__panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: .45rem; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 60px -18px rgba(var(--shadow-rgb), calc(.8 * var(--shadow-k))); animation: pop .22s var(--ease); }
.usermenu__panel a, .usermenu__panel button { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .65rem .75rem; border-radius: 9px; border: 0; background: none; text-align: left; text-decoration: none; font-weight: 500; color: var(--text-2); cursor: pointer; }
.usermenu__panel a:hover, .usermenu__panel button:hover { background: rgba(var(--fg-rgb), .06); color: var(--text); }
.usermenu__panel form { margin: .3rem 0 0; padding-top: .3rem; border-top: 1px solid var(--line); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---------- Selector de tema: sol (claro) y luna (oscuro) ---------- */
.theme-toggle { --w: 64px; --h: 34px; --k: 26px; --pad: 4px; position: relative; flex: none; width: var(--w); height: var(--h); padding: 0; border: 0; border-radius: 999px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: scale .3s var(--ease); }
.theme-toggle:hover { scale: 1.05; }
.theme-toggle:active { scale: .96; }
.theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 999px; }
.theme-toggle__track { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; isolation: isolate; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 2px 6px rgba(0, 0, 0, .35); }
.theme-toggle__track::before, .theme-toggle__track::after { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .6s var(--ease); }
.theme-toggle__track::before { background: radial-gradient(120% 140% at 20% 0%, #24386e 0%, transparent 60%), linear-gradient(135deg, #070f24 0%, #14244b 100%); }
.theme-toggle__track::after { background: radial-gradient(90% 120% at 15% 50%, #fff6c9 0%, transparent 55%), linear-gradient(135deg, #7fd6ff 0%, #33b8f5 55%, #0aa2e8 100%); opacity: 0; }
.theme-toggle__stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .9); transition: opacity .5s, transform .6s var(--ease); animation: twinkle 2.4s ease-in-out infinite; }
.theme-toggle__stars i:nth-child(1) { left: 11px; top: 9px; }
.theme-toggle__stars i:nth-child(2) { left: 22px; top: 20px; width: 2px; height: 2px; animation-delay: .8s; }
.theme-toggle__stars i:nth-child(3) { left: 30px; top: 8px; width: 2px; height: 2px; animation-delay: 1.5s; }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.6); } }
.theme-toggle__cloud { position: absolute; right: 8px; top: 12px; width: 18px; height: 7px; border-radius: 7px; background: #fff; opacity: 0; transform: translateX(14px); transition: opacity .5s, transform .7s var(--ease); }
.theme-toggle__cloud::before, .theme-toggle__cloud::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
.theme-toggle__cloud::before { width: 9px; height: 9px; left: 3px; top: -5px; }
.theme-toggle__cloud::after { width: 7px; height: 7px; left: 9px; top: -3px; }
.theme-toggle__knob {
  position: absolute; top: var(--pad); left: var(--pad); width: var(--k); height: var(--k); border-radius: 50%; overflow: hidden;
  transform: translateX(calc(var(--w) - var(--k) - var(--pad) * 2));
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #e6ecfb 60%, #cdd7ef 100%);
  box-shadow: 0 0 12px rgba(214, 226, 255, .55), 0 2px 4px rgba(0, 0, 0, .35);
  transition: transform .65s cubic-bezier(.34, 1.56, .64, 1), background .5s, box-shadow .5s;
}
.theme-toggle__knob::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 62%, #b9c5e3 0 2.6px, transparent 3.2px), radial-gradient(circle at 58% 34%, #c3cee8 0 1.9px, transparent 2.5px), radial-gradient(circle at 56% 74%, #c3cee8 0 1.4px, transparent 2px); transition: opacity .4s; }
.theme-toggle__knob::after { content: ""; position: absolute; width: 20px; height: 20px; top: -5px; right: -6px; border-radius: 50%; background: #13244c; transition: transform .6s var(--ease); }
/* Claro: el sol a la izquierda, con nubes y resplandor */
[data-theme="light"] .theme-toggle__track::after { opacity: 1; }
[data-theme="light"] .theme-toggle__track { box-shadow: inset 0 0 0 1px rgba(3, 105, 161, .25), inset 0 2px 6px rgba(3, 60, 110, .25); }
[data-theme="light"] .theme-toggle__stars i { opacity: 0; transform: translateY(8px); }
[data-theme="light"] .theme-toggle__cloud { opacity: 1; transform: none; animation: drift 5s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateX(-3px); } }
[data-theme="light"] .theme-toggle__knob {
  transform: translateX(0);
  background: radial-gradient(circle at 36% 32%, #fff7c2 0%, #ffd23f 45%, #fbb241 100%);
  box-shadow: 0 0 0 3px rgba(255, 216, 102, .45), 0 0 16px 3px rgba(255, 190, 60, .75);
  animation: sunGlow 2.8s ease-in-out infinite;
}
[data-theme="light"] .theme-toggle__knob::before { opacity: 0; }
[data-theme="light"] .theme-toggle__knob::after { transform: translate(18px, -18px) scale(.3); }
@keyframes sunGlow { 50% { box-shadow: 0 0 0 5px rgba(255, 216, 102, .28), 0 0 22px 5px rgba(255, 190, 60, .6); } }
/* Estiramiento del botón al cambiar (lo activa app.js) */
.theme-toggle.is-switching .theme-toggle__knob { animation: squash .65s var(--ease); }
@keyframes squash { 35% { scale: 1.28 .82; } 70% { scale: .94 1.06; } }
@media (max-width: 420px) { .theme-toggle { --w: 56px; --h: 30px; --k: 22px; --pad: 4px; } .theme-toggle__stars i:nth-child(3) { left: 26px; } }

.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(var(--bg-rgb), .5); cursor: pointer; place-items: center; }
.burger { position: relative; width: 20px; height: 12px; display: block; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--text); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 0; }
.burger span:last-child { top: 10px; }
.nav.menu-open .burger span:first-child { top: 5px; transform: rotate(45deg); }
.nav.menu-open .burger span:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(var(--bg-rgb), .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow-y: auto; }
.mobile-menu__inner { display: flex; flex-direction: column; padding: 1.2rem 0 2rem; }
.mobile-menu__inner > a { font: italic 800 2.2rem/1.1 var(--f-display); text-transform: uppercase; text-decoration: none; padding: .55rem 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-12px); animation: slidein .45s var(--ease) forwards; }
.mobile-menu__inner > a:nth-child(2) { animation-delay: .04s; } .mobile-menu__inner > a:nth-child(3) { animation-delay: .08s; }
.mobile-menu__inner > a:nth-child(4) { animation-delay: .12s; } .mobile-menu__inner > a:nth-child(5) { animation-delay: .16s; }
.mobile-menu__inner > a:nth-child(6) { animation-delay: .2s; } .mobile-menu__inner > a:nth-child(7) { animation-delay: .24s; }
.mobile-menu__foot { display: grid; gap: .8rem; margin-top: 1.6rem; }
@keyframes slidein { to { opacity: 1; transform: none; } }

@media (max-width: 920px) {
  :root { --nav-h: 66px; }
  .nav__links, .nav__login, .nav__actions > .btn, .nav__admin { display: none; }
  .nav__toggle { display: grid; }
  .nav__actions { margin-left: auto; }
  .usermenu__name { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand__word { font-size: 1.45rem; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section__head--stack { display: grid; gap: 1rem; justify-content: start; }
.page-head { padding: calc(var(--nav-h) + clamp(36px, 6vw, 72px)) 0 clamp(28px, 4vw, 44px); }
.page-head .lead { margin-top: .9rem; }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .92rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs .i { width: .9rem; height: .9rem; transform: rotate(-90deg); }

/* ---------- Hero (portada) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding: calc(var(--nav-h) + 40px) 0 72px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: -4%; z-index: -2; background: url('/img/malecon.jpg') 62% 42% / cover no-repeat; opacity: 0; transform: scale(1.08); animation: bgIn 2.2s .1s var(--ease) forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, var(--ink) 16%, rgba(var(--bg-rgb), .82) 44%, rgba(var(--bg-rgb), .45) 100%),
  linear-gradient(0deg, var(--ink) 2%, rgba(var(--bg-rgb), 0) 40%),
  linear-gradient(180deg, rgba(var(--bg-rgb), .7) 0%, rgba(var(--bg-rgb), 0) 22%); }
@keyframes bgIn { to { opacity: var(--hero-img); transform: scale(1); } }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__title { font-family: var(--f-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(3.6rem, 9.4vw, 8.4rem); line-height: .84; letter-spacing: -.012em; }
.hero__line { display: block; overflow: hidden; padding: 0 .08em .02em 0; margin-bottom: -.02em; }
.hero__line > span { display: block; transform: translateY(108%); animation: rise 1s var(--ease) forwards; }
.hero__line:nth-child(2) > span { animation-delay: .1s; }
@keyframes rise { to { transform: none; } }
.hero__brush {
  display: inline-block; margin-top: .12em; padding: .06em .22em .12em .02em;
  font-family: var(--f-brush); font-weight: 400; font-style: normal; text-transform: none;
  font-size: .62em; line-height: 1.1; letter-spacing: 0;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: rotate(-4deg); transform-origin: left center;
  clip-path: inset(-10% 100% -10% 0); animation: paint 1.05s .5s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes paint { to { clip-path: inset(-10% -4% -10% 0); } }
.hero__lead { margin-top: 1.6rem; font-size: clamp(1.08rem, 1.45vw, 1.24rem); color: var(--text-2); max-width: 46ch; opacity: 0; animation: fadeUp .8s .75s var(--ease) forwards; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; margin-top: 2rem; opacity: 0; animation: fadeUp .8s .88s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .hero__ctas { display: grid; grid-template-columns: 1fr; gap: .8rem; } .hero__ctas .btn { width: 100%; } }

.hero__visual { position: relative; justify-self: center; width: min(100%, 500px); }
.hero__badge { position: relative; aspect-ratio: 1; transition: transform .6s var(--ease); will-change: transform; }
.hero__badge img { position: relative; width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 40px 60px rgba(var(--shadow-rgb), calc(.65 * var(--shadow-k)))); animation: stamp 1.15s .3s cubic-bezier(.2, 1.35, .35, 1) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-24deg) scale(.72); } to { opacity: 1; transform: none; } }
.splash { position: absolute; inset: -9%; width: 118%; height: 118%; overflow: visible; }
.splash__dot { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: dot .6s var(--d, .6s) cubic-bezier(.2, 1.6, .4, 1) forwards; }
.splash__dot.c-sky { fill: var(--sky); } .splash__dot.c-mint { fill: var(--mint); } .splash__dot.c-lime { fill: var(--lime); }
@keyframes dot { to { transform: scale(1); } }

.racebar {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 1rem 2rem;
  margin-top: clamp(28px, 5vh, 56px); padding: 1rem 1rem 1rem 1.6rem;
  background: rgba(var(--card-rgb), .74); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line-2); border-radius: 22px; text-decoration: none; color: var(--text);
  box-shadow: 0 30px 70px -24px rgba(var(--shadow-rgb), calc(.85 * var(--shadow-k)));
  opacity: 0; animation: fadeUp .9s 1.05s var(--ease) forwards;
  transition: border-color .3s, transform .45s var(--ease);
}
.racebar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--sky), var(--mint), var(--lime)); }
.racebar:hover { border-color: rgba(195, 249, 7, .5); transform: translateY(-3px); }
.racebar__label { display: grid; gap: .5rem; justify-items: start; }
.racebar__kicker { font-size: .88rem; font-weight: 600; color: var(--muted); }
.racebar__event { min-width: 0; }
.racebar__event strong { display: block; font: italic 800 clamp(1.5rem, 2.3vw, 2.05rem)/1 var(--f-display); text-transform: uppercase; }
.racebar__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .5rem; font-size: .93rem; color: var(--text-2); }
.racebar__meta > span { display: inline-flex; align-items: center; gap: .4rem; }
.racebar__meta .i { color: var(--lime-ink); }
.racebar .clock { min-width: 290px; }
.racebar__cta { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; padding: 0 1.4rem; border-radius: 14px; background: var(--lime); color: var(--on-accent); font: 700 1.14rem/1 var(--f-display); white-space: nowrap; }
.racebar__cta .i { transition: transform .35s var(--ease); }
.racebar:hover .racebar__cta .i { transform: translateX(4px); }
@media (max-width: 1100px) {
  .racebar { grid-template-columns: minmax(0, 1fr) auto; }
  .racebar__label { grid-column: 1 / -1; display: flex; align-items: center; gap: .8rem; }
  .racebar__event { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .racebar { grid-template-columns: 1fr; padding: 1.1rem 1rem 1rem 1.3rem; gap: .9rem; }
  .racebar .clock { min-width: 0; }
  .racebar__label { justify-content: space-between; }
}

/* Reloj de carrera */
.clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.clock > span { display: grid; justify-items: center; gap: .2rem; padding: .55rem .2rem .45rem; border-radius: 12px; background: rgba(var(--fg-rgb), .05); border: 1px solid var(--line); }
.clock b { font: 700 1.9rem/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--text); }
.clock small { font-size: .74rem; color: var(--muted); }
.clock.is-live b[data-unit="s"] { color: var(--lime-ink); }
.clock--xl b { font-size: clamp(2.2rem, 4.2vw, 3.3rem); }
.clock--xl > span { padding: .8rem .3rem .6rem; border-radius: 14px; }

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 28px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: 100%; display: grid; justify-items: center; margin-bottom: .6rem; }
  .hero__badge { width: min(62vw, 300px); }
}

/* ---------- Tarjetas de evento ---------- */
.egrid { display: grid; gap: clamp(18px, 2.2vw, 26px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.egrid--rest { margin-top: clamp(18px, 2.2vw, 26px); }
.egrid--all { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.ecard {
  --notch: var(--ink);
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden;
  text-decoration: none; color: inherit; transition: border-color .35s, transform .45s var(--ease);
}
.ecard:hover { border-color: var(--line-2); transform: translateY(-4px); }
.ecard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.ecard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ecard:hover .ecard__media img { transform: scale(1.05); }
.ecard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 2, 5, .35) 0%, transparent 35%, transparent 60%, rgba(var(--card-rgb), .9) 100%); }
.ecard__status { position: absolute; top: 14px; right: 14px; z-index: 2; }

/* Fecha con forma de dorsal: papel blanco y agujeros de alfiler */
.bib { position: absolute; z-index: 2; left: 16px; top: 16px; min-width: 66px; padding: .62rem .6rem .5rem; background: #fff; color: var(--on-accent); border-radius: 9px; text-align: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); transform: rotate(-3deg); }
.bib::before, .bib::after { content: ""; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: #c9d0d9; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .35); }
.bib::before { left: 7px; } .bib::after { right: 7px; }
.bib b { display: block; font: italic 900 2.15rem/.86 var(--f-display); }
.bib span { display: block; font: 700 .82rem/1 var(--f-body); text-transform: lowercase; letter-spacing: .02em; margin-top: .2rem; }

.ecard__body { display: grid; gap: .8rem; padding: 1.25rem 1.35rem 1.1rem; }
.ecard__title { font: italic 800 clamp(1.6rem, 2.2vw, 1.95rem)/.95 var(--f-display); text-transform: uppercase; }
.ecard__summary { color: var(--text-2); max-width: 52ch; }
.ecard__meta { display: grid; gap: .35rem; font-size: .95rem; color: var(--text-2); }
.ecard__meta li { display: flex; align-items: center; gap: .5rem; }
.ecard__meta .i { color: var(--muted); }
.ecard__foot { position: relative; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.35rem 1.15rem; border-top: 2px dashed var(--line-2); }
.ecard__foot::before, .ecard__foot::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--notch); border: 1px solid var(--line); }
.ecard__foot::before { left: -11px; } .ecard__foot::after { right: -11px; }
.ecard__price span { display: block; font-size: .84rem; color: var(--muted); }
.ecard__price b { display: block; font: 800 1.5rem/1.05 var(--f-display); }
.ecard__cta { display: inline-flex; align-items: center; gap: .7rem; font: 700 1.08rem/1 var(--f-display); color: var(--text); }
.ecard__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--on-accent); transition: transform .45s var(--ease), background-color .3s; }
.ecard:hover .ecard__go { transform: rotate(-45deg); }
.ecard--past { filter: saturate(.55); }
.ecard--past .ecard__go { background: var(--ink-4); color: var(--text); }

@media (min-width: 900px) {
  .ecard--featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .ecard--featured .ecard__media { grid-row: 1 / 3; aspect-ratio: auto; min-height: 420px; }
  .ecard--featured .ecard__media::after { background: linear-gradient(90deg, transparent 60%, rgba(var(--card-rgb), .8) 100%), linear-gradient(180deg, rgba(2, 2, 5, .35) 0%, transparent 30%); }
  .ecard--featured .ecard__body { align-content: start; padding: 2rem 2rem 1.2rem; gap: 1rem; }
  .ecard--featured .ecard__title { font-size: clamp(2.2rem, 3.6vw, 3.1rem); }
  .ecard--featured .ecard__foot { padding: 1.2rem 2rem 1.5rem; }
  .ecard--featured .ecard__foot::before { display: none; }
  .ecard--featured .bib { transform: rotate(-3deg) scale(1.15); transform-origin: top left; }
}

.empty { display: grid; justify-items: center; gap: .8rem; text-align: center; padding: clamp(40px, 7vw, 72px) 1.5rem; border: 1.5px dashed var(--line-2); border-radius: var(--r-l); }
.empty > .i { width: 2.6rem; height: 2.6rem; color: var(--lime-ink); }
.empty h3 { font: italic 800 1.8rem/1 var(--f-display); text-transform: uppercase; }
.empty p { color: var(--text-2); max-width: 44ch; }
.empty .btn { margin-top: .6rem; }

.tabs { display: inline-flex; gap: .3rem; padding: .3rem; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); margin-bottom: 2rem; }
.tabs a { padding: .6rem 1.1rem; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--text-2); }
.tabs a[aria-current] { background: var(--text); color: var(--ink); }

/* ---------- Ruta "cómo funciona" ---------- */
.route { --p: 0; }
.route__stops { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; counter-reset: km; }
.route__stops::before, .route__stops::after { content: ""; position: absolute; left: 28px; right: 28px; top: 58px; height: 4px; border-radius: 4px; }
.route__stops::before { background: repeating-linear-gradient(90deg, var(--line-2) 0 12px, transparent 12px 22px); }
.route__stops::after { right: auto; width: calc((100% - 56px) * var(--p)); background: var(--grad); box-shadow: 0 0 18px rgba(3, 223, 148, .55); }
.route__stop { position: relative; z-index: 1; display: grid; gap: .6rem; align-content: start; }
.route__km { font: italic 800 1.05rem/1 var(--f-display); color: var(--muted); transition: color .4s; }
.route__dot { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-2); border: 2px solid var(--line-2); color: var(--text-2); transition: background-color .5s var(--ease), border-color .5s, color .5s, transform .5s var(--ease), box-shadow .5s; }
.route__dot .i { width: 26px; height: 26px; }
.route__stop h3 { font: italic 800 1.5rem/1 var(--f-display); text-transform: uppercase; margin-top: .5rem; }
.route__stop p { color: var(--text-2); font-size: .98rem; max-width: 26ch; }
.route__stop.is-reached .route__dot { background: var(--lime); border-color: var(--lime); color: var(--on-accent); transform: scale(1.06); box-shadow: 0 0 0 6px rgba(195, 249, 7, .12); }
.route__stop.is-reached .route__km { color: var(--lime-ink); }
.route__stop--meta .route__dot { border-style: dashed; }
@media (max-width: 900px) {
  .route__stops { grid-template-columns: 1fr; gap: 1.8rem; padding-left: 0; }
  .route__stops::before, .route__stops::after { left: 29px; right: auto; top: 30px; bottom: 30px; width: 4px; height: auto; }
  .route__stops::before { background: repeating-linear-gradient(180deg, var(--line-2) 0 12px, transparent 12px 22px); }
  .route__stops::after { height: calc((100% - 60px) * var(--p)); bottom: auto; }
  .route__stop { grid-template-columns: 60px 1fr; column-gap: 1.1rem; }
  .route__km { grid-column: 2; grid-row: 1; align-self: end; }
  .route__dot { grid-column: 1; grid-row: 1 / 4; }
  .route__stop h3, .route__stop p { grid-column: 2; }
  .route__stop h3 { margin-top: 0; }
}

/* ---------- Ticket (HTML) ---------- */
.ticketsec__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ticketsec__copy .lead { margin-top: 1.1rem; }
.checklist { display: grid; gap: .8rem; margin-top: 1.8rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; }
.checklist .i { width: 1.35rem; height: 1.35rem; padding: .2rem; border-radius: 50%; background: rgba(195, 249, 7, .14); color: var(--lime-ink); stroke-width: 3; margin-top: .1rem; }
.ticketsec__demo { perspective: 1400px; }
@media (max-width: 900px) { .ticketsec__grid { grid-template-columns: 1fr; } }

.ticket {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 190px;
  background: var(--ink-2); border-radius: 22px; overflow: hidden;
  box-shadow: 0 50px 90px -30px rgba(var(--shadow-rgb), calc(.9 * var(--shadow-k))), 0 0 0 1px var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.ticket::before { content: ""; position: absolute; z-index: 2; inset: 0 0 auto 0; height: 7px; background: var(--grad); }
.ticket__main { padding: 26px 26px 24px; min-width: 0; }
.ticket__head { display: flex; align-items: center; gap: .8rem; }
.ticket__head img { width: 50px; height: 50px; border-radius: 50%; }
.ticket__head .brand__word { font-size: 1.45rem; }
.ticket__head small { display: block; color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.ticket__title { font: italic 800 clamp(1.6rem, 2.6vw, 2.15rem)/.95 var(--f-display); text-transform: uppercase; margin: 1.1rem 0 .7rem; }
.ticket__pill { display: inline-block; padding: .38rem .8rem; border-radius: 999px; background: var(--lime); color: var(--on-accent); font-weight: 700; font-size: .88rem; }
.ticket__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem 1.3rem; margin: 1.4rem 0 0; }
.ticket__grid div { min-width: 0; }
.ticket__grid dt { font-size: .76rem; color: var(--muted); font-weight: 600; }
.ticket__grid dd { margin: .1rem 0 0; font-weight: 700; font-size: .98rem; overflow-wrap: anywhere; }
.ticket__grid dd small { display: block; font-weight: 400; color: var(--text-2); font-size: .82rem; }
.ticket__stub { position: relative; display: grid; justify-items: center; align-content: center; gap: .55rem; padding: 26px 18px; background: var(--stub); border-left: 2px dashed var(--line-2); }
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); }
.ticket__stub::before { top: -12px; } .ticket__stub::after { bottom: -12px; }
.ticket__label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ticket__dorsal { font: italic 900 3.4rem/.9 var(--f-display); color: var(--lime-ink); }
.ticket__qr { width: 132px; padding: 9px; background: #fff; border-radius: 12px; }
.ticket__qr svg { width: 100%; height: auto; }
.ticket__code { font-weight: 700; letter-spacing: .06em; font-size: .92rem; color: var(--text); }
.ticket__shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .08) 45%, transparent 60%); background-size: 250% 100%; background-position: 120% 0; transition: background-position 1.2s var(--ease); }
.ticket:hover .ticket__shine { background-position: -30% 0; }
@media (max-width: 560px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket__stub { border-left: 0; border-top: 2px dashed var(--line-2); grid-template-columns: auto 1fr; grid-template-areas: "qr label" "qr dorsal" "qr code"; justify-items: start; column-gap: 1.1rem; }
  .ticket__stub::before, .ticket__stub::after { top: -13px; left: auto; bottom: auto; }
  .ticket__stub::before { left: -12px; } .ticket__stub::after { right: -12px; }
  .ticket__qr { grid-area: qr; width: 118px; }
  .ticket__label { grid-area: label; align-self: end; }
  .ticket__dorsal { grid-area: dorsal; }
  .ticket__code { grid-area: code; align-self: start; }
  .ticket__grid { grid-template-columns: 1fr; }
}

/* ---------- Reservas ---------- */
.reserve__panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: radial-gradient(120% 140% at 0% 0%, rgba(0, 180, 253, .16), transparent 55%), var(--ink-2); border: 1px solid var(--line); }
.reserve__icon { width: 2.6rem; height: 2.6rem; color: var(--sky-ink); margin-bottom: 1rem; }
.reserve__intro p { margin-top: 1rem; color: var(--text-2); }
.reserve__list { display: grid; gap: .7rem; align-content: center; }
.reserve__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.1rem; padding: .9rem 1rem; border-radius: 16px; background: rgba(var(--bg-rgb), .55); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, background-color .3s; }
.reserve__row:hover { border-color: rgba(0, 180, 253, .6); background: rgba(0, 180, 253, .06); }
.reserve__date { display: grid; justify-items: center; width: 58px; padding: .45rem 0; border-radius: 10px; background: var(--ink-3); font-size: .8rem; color: var(--text-2); }
.reserve__date b { font: italic 900 1.7rem/.9 var(--f-display); color: var(--text); }
.reserve__name strong { display: block; font: italic 800 1.35rem/1 var(--f-display); text-transform: uppercase; }
.reserve__name span { display: block; margin-top: .3rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .reserve__panel { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .reserve__btn { display: none; } .reserve__row { grid-template-columns: auto minmax(0, 1fr); } }

/* ---------- Preguntas ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 1.2rem; justify-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem .2rem; font-weight: 700; font-size: 1.15rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--lime-ink); }
.faq__icon { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); transition: transform .4s var(--ease), background-color .3s, border-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(135deg); background: var(--lime); border-color: var(--lime); color: var(--on-accent); }
.faq__item::details-content { block-size: 0; overflow-y: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
.faq__a { padding: 0 .2rem 1.4rem; color: var(--text-2); max-width: 62ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } .faq__intro { position: static; } }

/* ---------- Cierre ---------- */
.finale { position: relative; padding: clamp(80px, 12vw, 150px) 0; overflow: hidden; border-top: 1px solid var(--line); background:
  radial-gradient(60% 90% at 85% 100%, rgba(195, 249, 7, .14), transparent 60%),
  radial-gradient(60% 90% at 10% 0%, rgba(0, 180, 253, .16), transparent 60%), var(--ink); }
.finale__inner { display: grid; justify-items: center; text-align: center; gap: 2rem; }
.finale__title { font: italic 900 clamp(2.8rem, 8vw, 6.6rem)/.95 var(--f-display); text-transform: uppercase; max-width: 14ch; }
.finale__ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-1); padding: 56px 0 28px; font-size: .96rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer__brand .brand img { width: 56px; height: 56px; }
.footer__motto { margin-top: 1rem; color: var(--text-2); max-width: 30ch; }
.footer__icons { display: flex; gap: .7rem; margin-top: 1rem; color: var(--muted); }
.footer__icons .i { width: 1.5rem; height: 1.5rem; }
.footer__icons .i:nth-child(1) { color: var(--sky-ink); } .footer__icons .i:nth-child(2) { color: var(--lime-ink); } .footer__icons .i:nth-child(3) { color: var(--mint-ink); }
.footer__col { display: grid; gap: .55rem; align-content: start; }
.footer__col a, .footer__place { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-2); text-decoration: none; }
.footer__col a:hover { color: var(--text); }
.footer__title { font: 700 1.05rem/1 var(--f-display); color: var(--text); margin-bottom: .5rem; letter-spacing: .02em; }
.footer__base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Avisos ---------- */
.toasts { position: fixed; z-index: 90; top: calc(var(--nav-h) + 12px); right: 16px; display: grid; gap: .6rem; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; align-items: flex-start; gap: .7rem; padding: .95rem 1rem; border-radius: 14px; background: rgba(var(--card-rgb), .96); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -16px rgba(var(--shadow-rgb), calc(.85 * var(--shadow-k))); animation: toastIn .5s var(--ease); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.toast > .i { margin-top: .12rem; width: 1.3rem; height: 1.3rem; }
.toast p { flex: 1; font-weight: 500; }
.toast--success { border-color: rgba(195, 249, 7, .45); } .toast--success > .i { color: var(--lime-ink); }
.toast--error { border-color: rgba(255, 90, 103, .55); } .toast--error > .i { color: var(--danger-ink); }
.toast--info { border-color: rgba(0, 180, 253, .5); } .toast--info > .i { color: var(--sky-ink); }
.toast__close { border: 0; background: none; color: var(--muted); cursor: pointer; padding: .1rem; border-radius: 6px; }
.toast__close:hover { color: var(--text); }
.toast.is-leaving { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 16px 36px -10px rgba(37, 211, 102, .7); transition: transform .35s var(--ease); }
.wa-float .i { width: 30px; height: 30px; stroke-width: 1.8; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .42rem; align-content: start; }
.label { font-weight: 600; font-size: .95rem; }
.label .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .85rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: .78rem .95rem;
  background: var(--ink-1); color: var(--text);
  border: 1.5px solid var(--line-2); border-radius: 12px;
  font: 500 1rem/1.3 var(--f-body);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(var(--fg-rgb), .28); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(0, 180, 253, .18); background: var(--ink-2); }
.select { appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.error { color: var(--danger-ink); font-size: .88rem; font-weight: 500; }
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .95rem 1.05rem; border-radius: 14px; border: 1px solid; font-weight: 500; }
.alert .i { margin-top: .12rem; }
.alert--error { background: rgba(255, 90, 103, .08); border-color: rgba(255, 90, 103, .45); color: var(--alert-error); }
.alert--info { background: rgba(0, 180, 253, .07); border-color: rgba(0, 180, 253, .4); color: var(--alert-info); }
.alert--success { background: rgba(195, 249, 7, .07); border-color: rgba(195, 249, 7, .4); color: var(--alert-success); }
.alert--warn { background: rgba(251, 178, 65, .08); border-color: rgba(251, 178, 65, .45); color: var(--alert-warn); }
.grid-2 { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; font-size: .96rem; color: var(--text-2); }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: .05rem 0 0; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--ink-1); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input::after { content: ""; width: 11px; height: 6px; border: 2.5px solid var(--on-accent); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .25s var(--ease); }
.check input:checked { background: var(--lime); border-color: var(--lime); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.segmented { display: flex; gap: .5rem; flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; min-height: 46px; padding: 0 1rem; border-radius: 11px; border: 1.5px solid var(--line-2); font-weight: 600; cursor: pointer; transition: all .2s; }
.segmented input:checked + span { background: var(--text); color: var(--ink); border-color: var(--text); }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.pw { position: relative; }
.pw .input { padding-right: 3.2rem; }
.pw__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted); border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.pw__toggle:hover { color: var(--text); background: rgba(var(--fg-rgb), .06); }

/* ---------- Autenticación ---------- */
.auth { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.is-auth .footer { display: none; }
.is-auth .nav { background: transparent !important; border-color: transparent !important; backdrop-filter: none !important; }
.auth__panel { display: grid; place-items: center; padding: calc(var(--nav-h) + 24px) clamp(16px, 5vw, 64px) 48px; }
.auth__box { width: min(100%, 440px); display: grid; gap: 1.6rem; }
.auth__box h1 { font: italic 900 clamp(2.4rem, 5vw, 3.4rem)/.9 var(--f-display); text-transform: uppercase; }
.auth__box > p { color: var(--text-2); }
.auth__alt { text-align: center; color: var(--text-2); }
.auth__art { position: relative; overflow: hidden; display: grid; place-items: center; background: #05070b; border-left: 1px solid var(--line); }
.auth__art::before { content: ""; position: absolute; inset: 0; background: url('/img/malecon.jpg') center / cover; opacity: .35; }
.auth__art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, transparent 0 22%, rgba(2, 2, 5, .85) 70%); }
.auth__logo { position: relative; z-index: 1; width: min(62%, 420px); border-radius: 50%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)); animation: stamp 1s .1s cubic-bezier(.2, 1.35, .35, 1) both; }
.auth__quote { position: absolute; z-index: 1; left: 0; right: 0; bottom: 8%; text-align: center; font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.2 var(--f-brush); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transform: rotate(-3deg); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__art { display: none; } }

/* ---------- Detalle de evento ---------- */
.draftbar { position: fixed; z-index: 58; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100% - 32px); padding: .7rem 1rem; border-radius: 14px; background: rgba(251, 178, 65, .14); border: 1px solid rgba(251, 178, 65, .5); color: var(--alert-warn); font-size: .92rem; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.draftbar .i { color: var(--sunset); }
.evhero { position: relative; min-height: min(84vh, 760px); display: grid; align-items: end; padding: calc(var(--nav-h) + 40px) 0 clamp(32px, 5vw, 56px); overflow: hidden; isolation: isolate; }
.evhero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: evImg 1.6s var(--ease) forwards; }
@keyframes evImg { to { transform: scale(1); } }
.evhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--bg-rgb), .75) 0%, rgba(var(--bg-rgb), .2) 30%, rgba(var(--bg-rgb), .55) 62%, var(--ink) 100%), linear-gradient(90deg, rgba(var(--bg-rgb), .75) 0%, transparent 70%); }
.evhero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.evhero h1 { font: italic 900 clamp(2.8rem, 8vw, 6.6rem)/.95 var(--f-display); text-transform: uppercase; margin: 1rem 0 .9rem; max-width: 16ch; text-wrap: balance; }
.evhero .lead { color: var(--hero-lead); }
.facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.fact { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem .9rem; border-radius: 12px; background: rgba(var(--bg-rgb), .55); border: 1px solid var(--line-2); font-weight: 600; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fact .i { color: var(--lime-ink); }
.evhero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; align-items: center; }
.evhero__clock { width: min(380px, 100%); padding: 1.1rem; border-radius: 20px; background: rgba(var(--bg-rgb), .6); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.evhero__clock p { font-size: .9rem; color: var(--muted); margin-bottom: .7rem; font-weight: 600; }
.evhero__clock--today strong { display: block; font: italic 800 1.8rem/1 var(--f-display); text-transform: uppercase; color: var(--lime-ink); }
@media (max-width: 900px) { .evhero__grid { grid-template-columns: 1fr; } .evhero { min-height: 72vh; } }

.evlayout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: clamp(64px, 8vw, 110px); }
.evlayout__main { display: grid; gap: clamp(48px, 6vw, 72px); min-width: 0; }
.evlayout__side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 1rem; }
@media (max-width: 1000px) { .evlayout { grid-template-columns: 1fr; } .evlayout__side { position: static; } }
.block h2 { margin-bottom: 1.3rem; }
.prose { display: grid; gap: 1rem; color: var(--text-2); font-size: 1.06rem; max-width: 66ch; }

.distcards { display: grid; gap: 1rem; }
.distcard { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.4rem; padding: 1.3rem 1.4rem; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); transition: border-color .3s; }
.distcard:hover { border-color: var(--line-2); }
.distcard__km { font: italic 900 clamp(2.8rem, 5vw, 3.6rem)/.8 var(--f-display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 2.3ch; padding-right: .06em; }
.distcard__info h3 { font: italic 800 1.5rem/1 var(--f-display); text-transform: uppercase; }
.distcard__info p { color: var(--text-2); font-size: .95rem; margin-top: .35rem; }
.distcard__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .6rem; font-size: .9rem; color: var(--text-2); }
.distcard__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.distcard__buy { display: grid; justify-items: end; gap: .55rem; text-align: right; }
.distcard__price { font: 800 1.6rem/1 var(--f-display); }
.meter { --fill: var(--mint); width: 100%; height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--fill) 16%, transparent); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 6px; background: var(--fill); width: 0; transition: width 1.2s var(--ease); }
.meter.is-warn { --fill: var(--sunset); }
.meter.is-full { --fill: var(--danger); }
.distcard .meter { margin-top: .75rem; max-width: 320px; }
.spots { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
@media (max-width: 700px) {
  .distcard { grid-template-columns: auto minmax(0, 1fr); }
  .distcard__buy { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; justify-items: start; text-align: left; padding-top: 1rem; border-top: 1px dashed var(--line-2); }
}

.kitlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.kitlist li { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); font-weight: 600; }
.kitlist .i { color: var(--lime-ink); }
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; filter: grayscale(.2) contrast(1.05); background: var(--ink-2); }

.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; padding: 1.3rem; }
.card--glow { border-color: rgba(195, 249, 7, .35); background: linear-gradient(160deg, rgba(195, 249, 7, .07), transparent 45%), var(--ink-2); }
.card h2, .card h3 { font: italic 800 1.5rem/1 var(--f-display); text-transform: uppercase; margin-bottom: 1rem; }
.kv { display: grid; gap: .85rem; }
.kv > div { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: .7rem; align-items: start; }
.kv > div > .i { grid-row: 1 / 3; color: var(--muted); margin-top: .15rem; }
.kv dt, .kv dd { grid-column: 2; }
.kv dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kv dd { margin: .05rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.share { display: flex; gap: .5rem; flex-wrap: wrap; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: 0 .9rem; border-radius: 11px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.iconbtn:hover { color: var(--text); border-color: var(--text); }
.iconbtn.is-done { color: var(--lime-ink); border-color: var(--lime-line); }

.mbar { display: none; }
@media (max-width: 1000px) {
  .mbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 16px calc(.8rem + env(safe-area-inset-bottom)); background: rgba(var(--card-rgb), .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); transform: translateY(110%); transition: transform .45s var(--ease); }
  .mbar.is-visible { transform: none; }
  .mbar__price span { display: block; font-size: .78rem; color: var(--muted); }
  .mbar__price b { font: 800 1.35rem/1 var(--f-display); }
  .is-event .wa-float { bottom: 92px; }
}

/* ---------- Inscripción ---------- */
.steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.steps li { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .85rem .45rem .45rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .92rem; }
.steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); font: 800 .95rem/1 var(--f-display); }
.steps .is-current { color: var(--text); border-color: var(--line-2); }
.steps .is-current b { background: var(--lime); color: var(--on-accent); }
.steps .is-done b { background: var(--mint); color: var(--on-accent); }

.enroll { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: 96px; }
.enroll__side { position: sticky; top: calc(var(--nav-h) + 20px); }
@media (max-width: 1000px) { .enroll { grid-template-columns: 1fr; } .enroll__side { position: static; order: -1; } }
.fs { border: 0; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.fs + .fs { margin-top: 2.4rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.fs legend { padding: 0; margin-bottom: 1.1rem; font: italic 800 1.7rem/1 var(--f-display); text-transform: uppercase; display: flex; align-items: center; gap: .7rem; }
.fs legend b { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line-2); font-style: italic; font-size: 1.1rem; }

.picks { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick__box { display: grid; gap: .45rem; height: 100%; padding: 1.1rem 1.15rem; border-radius: 18px; border: 1.5px solid var(--line-2); background: var(--ink-1); transition: border-color .25s, background-color .25s, transform .3s var(--ease), box-shadow .3s; }
.pick:hover .pick__box { border-color: rgba(var(--fg-rgb), .32); }
.pick input:checked + .pick__box { border-color: var(--lime-line); background: linear-gradient(150deg, rgba(195, 249, 7, .1), transparent 55%), var(--ink-2); box-shadow: 0 0 0 4px rgba(195, 249, 7, .12); transform: translateY(-2px); }
.pick input:focus-visible + .pick__box { outline: 2px solid var(--focus); outline-offset: 3px; }
.pick input:disabled + .pick__box { opacity: .45; cursor: not-allowed; }
.pick__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pick__km { font: italic 900 2.2rem/.85 var(--f-display); }
.pick__tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: var(--on-accent); transition: all .25s var(--ease); }
.pick__tick .i { width: 15px; height: 15px; stroke-width: 3.2; transform: scale(0); transition: transform .3s var(--ease); }
.pick input:checked + .pick__box .pick__tick { background: var(--lime); border-color: var(--lime); }
.pick input:checked + .pick__box .pick__tick .i { transform: scale(1); }
.pick__name { font-weight: 700; }
.pick__meta { font-size: .88rem; color: var(--muted); }
.pick__price { font: 800 1.35rem/1 var(--f-display); margin-top: .2rem; }

.summary { display: grid; gap: 1rem; }
.summary__ev { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .9rem; align-items: center; }
.summary__ev img { width: 76px; height: 76px; object-fit: cover; border-radius: 14px; }
.summary__ev strong { font: italic 800 1.3rem/1 var(--f-display); text-transform: uppercase; display: block; }
.summary__ev span { font-size: .88rem; color: var(--muted); }
.summary__line { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; color: var(--text-2); }
.summary__line b { color: var(--text); text-align: right; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; border-top: 1px dashed var(--line-2); }
.summary__total span { font-weight: 600; }
.summary__total b { font: 800 2rem/1 var(--f-display); }
.summary__note { font-size: .88rem; color: var(--muted); }

/* ---------- Mi cuenta ---------- */
.acct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.regs { display: grid; gap: 1rem; }
.reg { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; padding: .9rem; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .3s; }
.reg:hover { border-color: var(--line-2); }
.reg__img { width: 120px; height: 90px; border-radius: 14px; object-fit: cover; }
.reg__title { font: italic 800 1.45rem/1 var(--f-display); text-transform: uppercase; }
.reg__meta { display: flex; gap: .4rem 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--text-2); margin-top: .45rem; }
.reg__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.reg__side { display: grid; justify-items: end; gap: .6rem; }
.reg--off { opacity: .55; }
@media (max-width: 700px) {
  .reg { grid-template-columns: 84px minmax(0, 1fr); }
  .reg__img { width: 84px; height: 84px; }
  .reg__side { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: start; align-items: center; }
}

.status-hero { display: grid; gap: 1.2rem; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--ink-2); border: 1px solid var(--line); }
.status-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.status-hero h1 { font: italic 900 clamp(2.2rem, 5vw, 3.6rem)/.9 var(--f-display); text-transform: uppercase; }
.codechip { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .5rem .45rem .9rem; border-radius: 12px; background: var(--ink-1); border: 1px solid var(--line-2); font-weight: 700; letter-spacing: .05em; }
.codechip button { border: 0; background: rgba(var(--fg-rgb), .06); color: var(--text-2); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.codechip button:hover { color: var(--text); }
.codechip button.is-done { color: var(--lime-ink); }

.track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.track li { position: relative; display: grid; gap: .5rem; font-size: .88rem; color: var(--muted); font-weight: 600; }
.track li::before { content: ""; height: 6px; border-radius: 6px; background: var(--ink-4); }
.track li.is-done::before { background: var(--mint); }
.track li.is-current::before { background: var(--grad); animation: pulse 1.8s ease-in-out infinite; }
.track li.is-current, .track li.is-done { color: var(--text); }
.track li.is-bad::before { background: var(--danger); }
@keyframes pulse { 50% { opacity: .55; } }
@media (max-width: 560px) { .track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; } }

.regpage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 44px); align-items: start; margin-top: 1.6rem; padding-bottom: 96px; }
.regpage__main { display: grid; gap: 1.4rem; min-width: 0; }
@media (max-width: 1000px) { .regpage { grid-template-columns: 1fr; } }

.pay-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-radius: 16px; background: var(--ink-1); border: 1px solid var(--line-2); }
.pay-amount span { color: var(--text-2); font-weight: 600; }
.pay-amount b { font: 800 2.3rem/1 var(--f-display); }
.accounts { display: grid; gap: .7rem; }
.account { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .9rem 1rem; border-radius: 16px; background: var(--ink-1); border: 1px solid var(--line); }
.account__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 180, 253, .12); color: var(--sky-ink); }
.account strong { display: block; }
.account .mono { display: block; font-size: 1.12rem; font-weight: 700; margin: .15rem 0; }
.account small { color: var(--muted); }

.dropzone { position: relative; display: grid; place-items: center; gap: .6rem; text-align: center; padding: 1.8rem 1.2rem; border-radius: 18px; border: 2px dashed var(--line-2); background: var(--ink-1); cursor: pointer; transition: border-color .25s, background-color .25s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--sky); background: rgba(0, 180, 253, .06); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone > .i { width: 2.2rem; height: 2.2rem; color: var(--sky-ink); }
.dropzone strong { font-size: 1.05rem; }
.dropzone span { font-size: .88rem; color: var(--muted); }
.dropzone__preview { display: none; width: 100%; align-items: center; gap: 1rem; text-align: left; }
.dropzone.has-file .dropzone__preview { display: flex; }
.dropzone.has-file .dropzone__empty { display: none; }
.dropzone__preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.dropzone__preview .i { width: 2.4rem; height: 2.4rem; color: var(--sky-ink); }
.dropzone__preview b { display: block; overflow-wrap: anywhere; }
.dropzone__preview small { color: var(--muted); }
.dropzone--cover { aspect-ratio: 16 / 8; padding: 0; overflow: hidden; }
.dropzone--cover .dropzone__empty { padding: 1rem; display: grid; justify-items: center; gap: .5rem; }
.dropzone--cover img.dropzone__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dropzone--cover .dropzone__change { position: absolute; right: 12px; bottom: 12px; z-index: 1; pointer-events: none; }

.verify { display: grid; place-items: center; min-height: 70vh; padding: calc(var(--nav-h) + 32px) 16px 64px; }
.verify__card { width: min(100%, 520px); display: grid; gap: 1.2rem; padding: clamp(22px, 4vw, 34px); border-radius: 26px; background: var(--ink-2); border: 1px solid var(--line); text-align: center; }
.verify__icon { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.verify__icon .i { width: 44px; height: 44px; stroke-width: 2.6; }
.verify__icon--ok { background: var(--lime); color: var(--on-accent); box-shadow: 0 0 0 10px rgba(195, 249, 7, .12); }
.verify__icon--bad { background: rgba(255, 90, 103, .15); color: var(--danger); }
.verify__icon--wait { background: rgba(251, 178, 65, .15); color: var(--sunset); }
.verify__card h1 { font: italic 900 2.6rem/.9 var(--f-display); text-transform: uppercase; }
.verify__dorsal { font: italic 900 4.5rem/.9 var(--f-display); color: var(--lime-ink); }
.verify__card .kv { text-align: left; }

.error-page { display: grid; place-items: center; min-height: 72vh; padding: calc(var(--nav-h) + 40px) 16px 64px; text-align: center; }
.error-page__code { font: italic 900 clamp(6rem, 22vw, 12rem)/.8 var(--f-display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.error-page h1 { font: italic 800 clamp(2rem, 4vw, 3rem)/1 var(--f-display); text-transform: uppercase; margin-top: 1rem; }
.error-page p { color: var(--text-2); margin: .9rem auto 1.8rem; max-width: 46ch; }

.terms { max-width: 760px; padding-bottom: 96px; }
.terms .prose { font-size: 1.08rem; }

/* ---------- Tema claro: ajustes por componente ---------- */
[data-theme="light"] .badge { color: color-mix(in srgb, var(--tone) 40%, #0b1320); background: color-mix(in srgb, var(--tone) 14%, #fff); border-color: color-mix(in srgb, var(--tone) 50%, transparent); }
[data-theme="light"] .badge::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 22%, transparent); }
[data-theme="light"] .tone-lime { --tone: #86b800; }
[data-theme="light"] .tone-muted { --tone: #6b7686; }
[data-theme="light"] .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(42% 55% at 80% 36%, rgba(0, 180, 253, .2), transparent 70%), radial-gradient(34% 44% at 66% 86%, rgba(195, 249, 7, .22), transparent 70%); }
[data-theme="light"] .hero__badge img { filter: drop-shadow(0 30px 40px rgba(22, 42, 72, .28)); }
[data-theme="light"] .racebar { border-color: var(--line); }
[data-theme="light"] .ecard { box-shadow: 0 18px 40px -26px rgba(22, 42, 72, .35); }
[data-theme="light"] .ecard:hover { box-shadow: 0 26px 50px -24px rgba(22, 42, 72, .42); }
[data-theme="light"] .ecard__media::after { background: linear-gradient(180deg, rgba(2, 2, 5, .28) 0%, transparent 32%, transparent 62%, rgba(255, 255, 255, .55) 100%); }
@media (min-width: 900px) { [data-theme="light"] .ecard--featured .ecard__media::after { background: linear-gradient(90deg, transparent 64%, rgba(255, 255, 255, .5) 100%), linear-gradient(180deg, rgba(2, 2, 5, .28) 0%, transparent 30%); } }
[data-theme="light"] .route__dot { box-shadow: 0 6px 18px -10px rgba(22, 42, 72, .4); }
[data-theme="light"] .route__stop.is-reached .route__dot { box-shadow: 0 0 0 6px rgba(134, 184, 0, .18); }
[data-theme="light"] .checklist .i { background: rgba(134, 184, 0, .16); }
[data-theme="light"] .card, [data-theme="light"] .distcard, [data-theme="light"] .status-hero, [data-theme="light"] .reg, [data-theme="light"] .verify__card, [data-theme="light"] .tabs, [data-theme="light"] .kitlist li { box-shadow: 0 14px 34px -26px rgba(22, 42, 72, .35); }
[data-theme="light"] .card--glow { border-color: rgba(121, 167, 0, .45); background: linear-gradient(160deg, rgba(195, 249, 7, .16), transparent 45%), var(--ink-2); }
[data-theme="light"] .pick input:checked + .pick__box { background: linear-gradient(150deg, rgba(195, 249, 7, .2), transparent 55%), var(--ink-2); box-shadow: 0 0 0 4px rgba(134, 184, 0, .16); }
[data-theme="light"] .reserve__panel { background: radial-gradient(120% 140% at 0% 0%, rgba(0, 180, 253, .12), transparent 55%), var(--ink-2); box-shadow: 0 20px 50px -34px rgba(22, 42, 72, .4); }
[data-theme="light"] .finale { background: radial-gradient(60% 90% at 85% 100%, rgba(195, 249, 7, .22), transparent 60%), radial-gradient(60% 90% at 10% 0%, rgba(0, 180, 253, .18), transparent 60%), var(--ink); }
[data-theme="light"] .alert--success { background: rgba(195, 249, 7, .16); border-color: rgba(121, 167, 0, .45); }
[data-theme="light"] .alert--warn { background: rgba(251, 178, 65, .14); }
[data-theme="light"] .toast--success { border-color: rgba(121, 167, 0, .5); }
[data-theme="light"] .draftbar { background: rgba(255, 244, 222, .95); }
[data-theme="light"] .evhero::after { background: linear-gradient(180deg, rgba(var(--bg-rgb), .82) 0%, rgba(var(--bg-rgb), .35) 32%, rgba(var(--bg-rgb), .7) 64%, var(--ink) 100%), linear-gradient(90deg, rgba(var(--bg-rgb), .9) 0%, rgba(var(--bg-rgb), .35) 75%); }
[data-theme="light"] .ticket { box-shadow: 0 40px 70px -34px rgba(22, 42, 72, .45), 0 0 0 1px var(--line); }
[data-theme="light"] .ticket__shine { background-image: linear-gradient(115deg, transparent 30%, rgba(0, 180, 253, .08) 45%, transparent 60%); }
[data-theme="light"] .mobile-menu__inner > a { color: var(--text); }
[data-theme="light"] .auth__art { background: #dfe7f0; }
[data-theme="light"] .auth__art::before { opacity: .5; }
[data-theme="light"] .auth__art::after { background: radial-gradient(circle at 50% 45%, rgba(var(--bg-rgb), .1) 0 22%, rgba(var(--bg-rgb), .86) 72%); }
[data-theme="light"] .auth__logo { filter: drop-shadow(0 30px 44px rgba(22, 42, 72, .32)); }
[data-theme="light"] .auth__quote { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .wa-float { box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .55); }

/* ---------- Cambio de tema: la página nueva se revela en círculo desde el botón ---------- */
:root.theme-vt::view-transition-old(root), :root.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:root.theme-vt::view-transition-group(root) { animation-duration: .7s; }

/* ---------- Revelado al hacer scroll (solo tarjetas) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .hero__line > span, .hero__lead, .hero__ctas, .racebar { transform: none; opacity: 1; }
  .hero__brush { clip-path: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .theme-toggle__stars i, [data-theme="light"] .theme-toggle__knob, [data-theme="light"] .theme-toggle__cloud { animation: none !important; }
}
