/* =========================================================
   KERS PERÚ · Deportes y Eventos
   Estilo base: página "Navidad Fest Running" (rojo + Audiowide)
   ========================================================= */

:root {
  color-scheme: dark;
  /* Paleta oficial Neón Fest Run (tomada del logo) */
  --mint: #3df5c9;
  --cyan: #17c2f2;
  --blue: #2fa1e5;
  --violet: #7371bb;
  --plum: #b64091;
  --magenta: #e51e74;
  --pink: #f06da5;
  --blush: #f6accc;

  --accent: #e51e74;            /* magenta del logo */
  --accent-deep: #9c1a6b;       /* magenta profundo para texto sobre blanco */
  --hot: #ff3d8f;               /* brillo neón */
  --grad: linear-gradient(90deg, #3df5c9 0%, #17c2f2 28%, #7371bb 55%, #e51e74 78%, #f6accc 100%);
  --grad-v: linear-gradient(180deg, #3df5c9 0%, #17c2f2 30%, #7371bb 60%, #e51e74 100%);
  --grad-btn: linear-gradient(90deg, #17c2f2 0%, #7371bb 45%, #e51e74 100%, #17c2f2 150%);
  --grad-band: linear-gradient(135deg, #0b6fa8 0%, #4a3a9c 50%, #a3175a 100%);

  --night-2: #1c0d38;
  --ink: #0e0a1e;
  --ink-2: #171030;
  --black: #07060f;
  --paper: #f8f5fb;
  --paper-2: #ede7f5;
  --white: #ffffff;
  --text-dark: #1a1026;
  --muted-dark: #625574;
  --muted-light: rgba(255, 255, 255, .8);
  --line-light: rgba(255, 255, 255, .22);
  --glow: 0 0 16px rgba(23, 194, 242, .55), 0 0 40px rgba(229, 30, 116, .4);
  --glow-pink: 0 0 14px rgba(229, 30, 116, .7), 0 0 34px rgba(229, 30, 116, .35);

  --f-display: "Audiowide", "Arial Black", "Segoe UI", sans-serif;
  --f-body: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2.1vw, 1.4rem); }
h4 { font-size: 1rem; letter-spacing: .04em; }
p { margin: 0; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted-light); max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-display); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: #fff;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.tnum { font-variant-numeric: tabular-nums; }

/* separador blanco corto: firma del diseño original */
.rule {
  display: block; width: 130px; height: 2px; background: #fff; margin: 0 auto;
  transform-origin: center; border-radius: 2px;
}
.rule--left { margin: 0; transform-origin: left; }
.band--paper .rule, .band--black .rule, .band--deep .rule, .band--ink .rule { background: var(--grad); }

.section-head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin-inline: auto; }
.section-head--left { justify-items: start; text-align: left; }
.section-head--left .lead { margin-inline: 0; }

/* ---------- Bandas / secciones ---------- */
.band { position: relative; padding-block: clamp(64px, 9vw, 112px); isolation: isolate; overflow: hidden; }
.band--tight { padding-block: clamp(44px, 6vw, 72px); }
.band--neon { background: var(--grad-band); }
.band--neon::before, .band--paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--tex) center / cover no-repeat;
  opacity: .32; mix-blend-mode: multiply;
}
.band--neon::before { --tex: url("../img/bg-gris.webp"); }
.band--deep { background: radial-gradient(120% 90% at 50% 0%, #3b1466 0%, var(--night-2) 55%, var(--black) 100%); }
.band--black { background: var(--black); }
.band--ink { background: var(--ink); }
.band--paper { background: var(--paper); color: var(--text-dark); }
.band--paper::before { --tex: url("../img/bg-gris.webp"); opacity: .22; mix-blend-mode: normal; }
.band--paper .lead { color: var(--muted-dark); }
.band--paper .eyebrow { color: var(--accent-deep); }

/* ---------- Botones ---------- */
.btn {
  --bg: #fff; --fg: var(--accent-deep); --bd: #fff;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.7em; min-height: 52px;
  font-family: var(--f-display); font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; text-align: center; line-height: 1.2;
  color: var(--fg); background: var(--bg); background-size: 200% 100%; background-position: 0 0;
  border: 2px solid var(--bd); border-radius: 10px;
  cursor: pointer;
  transition: transform .35s var(--ease-out), background-color .3s, background-position .6s var(--ease-out), color .3s, box-shadow .3s;
  will-change: transform;
}
.btn:hover { --bg: transparent; --fg: #fff; box-shadow: var(--glow); }
.btn:active { transform: scale(.97); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--ghost { --bg: transparent; --fg: #fff; --bd: #fff; }
.btn--ghost:hover { --bg: #fff; --fg: var(--accent-deep); }
.btn--neon { --bg: var(--grad-btn); --fg: #fff; --bd: transparent; }
.btn--neon:hover { --bg: var(--grad-btn); --bd: transparent; --fg: #fff; background-position: 100% 0; }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: .6em 1.1em; font-size: .78rem; }
.btn--pulse { animation: neonPulse 2.4s ease-in-out infinite; }
.band--paper .btn { --bg: var(--grad-btn); --fg: #fff; --bd: transparent; }
.band--paper .btn:hover { --bg: var(--grad-btn); --fg: #fff; background-position: 100% 0; box-shadow: 0 10px 30px rgba(92, 60, 160, .3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ripple del click */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .45); transform: scale(0);
  animation: ripple .65s ease-out forwards;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; gap: 22px;
  background: radial-gradient(circle at 50% 45%, #3b1466 0%, var(--black) 70%);
  transition: opacity .5s ease, visibility .5s;
}
.preloader__inner { display: grid; gap: 20px; justify-items: center; }
.preloader__logo { width: min(280px, 70vw); animation: logoIn .7s var(--ease-out) both; }
.preloader__bar { width: min(280px, 70vw); height: 3px; background: rgba(255, 255, 255, .15); border-radius: 3px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; animation: loadBar .8s var(--ease-out) forwards; }
.is-loaded .preloader { opacity: 0; visibility: hidden; }

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 120;
  height: 3px; width: 100%; transform-origin: left; transform: scaleX(0);
  background: var(--grad);
  box-shadow: 0 0 10px rgba(23, 194, 242, .8);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header__row { display: flex; align-items: center; gap: 20px; height: var(--header-h); transition: height .35s var(--ease-out); }
.site-header.is-solid { background: rgba(12, 8, 26, .92); backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.site-header.is-solid .site-header__row { height: 62px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 150px; height: auto; transition: transform .4s var(--ease-back); }
.brand:hover img { transform: skewX(-8deg) translateX(3px); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__link, .nav__more > button {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border: 0; background: none; cursor: pointer;
  font-family: var(--f-display); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.nav__link::after, .nav__more > button::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out); box-shadow: 0 0 8px rgba(23, 194, 242, .7);
}
.nav__link:hover::after, .nav__link.is-active::after, .nav__more:hover > button::after, .nav__more.is-active > button::after { transform: scaleX(1); transform-origin: left; }
.nav__more { position: relative; }
.nav__more svg { width: 12px; height: 12px; transition: transform .3s; }
.nav__more:hover svg, .nav__more:focus-within svg { transform: rotate(180deg); }
.nav__drop {
  position: absolute; top: 100%; right: 0; min-width: 220px;
  display: grid; padding: 10px; gap: 2px;
  background: rgba(12, 8, 26, .97); border: 1px solid var(--line-light); border-radius: 14px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: top right;
  transition: opacity .25s, transform .35s var(--ease-out), visibility .25s;
}
.nav__more:hover .nav__drop, .nav__more:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__drop a {
  padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: .9rem;
  transition: background .2s, padding-left .25s var(--ease-out), color .2s;
}
.nav__drop a:hover, .nav__drop a.is-active { background: rgba(229, 30, 116, .16); padding-left: 18px; color: #fff; }
.header-cta { margin-left: 8px; }

.burger {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: none; cursor: pointer;
  position: relative; border-radius: 10px;
}
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease-out), opacity .2s, top .35s var(--ease-out); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  padding: calc(var(--header-h) + 20px + env(safe-area-inset-top, 0px)) var(--gutter) calc(30px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(160deg, #0b6fa8 0%, #4a3a9c 45%, #a3175a 80%, var(--night-2) 100%);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 40px) 38px);
  transition: clip-path .7s var(--ease-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
.mobile-menu a {
  font-family: var(--f-display); font-size: clamp(1.15rem, 5vw, 1.6rem); text-transform: uppercase; text-decoration: none;
  padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .15);
  opacity: 0; transform: translateX(-30px);
  transition: opacity .4s, transform .5s var(--ease-out), padding-left .3s;
}
.mobile-menu a.is-active { color: #fff; padding-left: 12px; box-shadow: inset 3px 0 0 #fff; }
.menu-open .mobile-menu a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 45ms + 180ms); }
.mobile-menu .btn { margin-top: 18px; opacity: 0; transition: opacity .4s .7s; }
.menu-open .mobile-menu .btn { opacity: 1; }

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(60px, 9vw, 120px)) clamp(70px, 9vw, 120px);
  background: var(--black);
}
.kb { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.kb__slide {
  position: absolute; inset: -4%; background: center / cover no-repeat;
  opacity: 0; transform: scale(1);
  transition: opacity 1.2s ease;
}
.kb__slide.is-active { opacity: 1; animation: kenburns 7s linear forwards; }
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px circle at var(--mx, 70%) var(--my, 30%), rgba(23, 194, 242, .26), transparent 60%),
    linear-gradient(180deg, rgba(7, 6, 15, .55) 0%, rgba(70, 25, 120, .55) 55%, rgba(7, 6, 15, .96) 100%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__title { font-size: clamp(2.5rem, 7.2vw, 5.4rem); line-height: 1.02; }
.hero__title .glow { color: #fff; text-shadow: var(--glow); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-light); background: rgba(0, 0, 0, .28); backdrop-filter: blur(6px);
  font-size: .86rem; font-weight: 500;
}
.chip svg { width: 16px; height: 16px; }
.band--paper .chip { border-color: rgba(92, 60, 160, .25); background: #fff; color: var(--accent-deep); }

/* tarjeta de cuenta regresiva */
.count-card {
  position: relative; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .15);
  display: grid; gap: 18px;
}
.count-card__label { font-family: var(--f-display); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown__unit { display: grid; gap: 6px; justify-items: center; }
.countdown__num {
  position: relative; width: 100%; display: grid; place-items: center;
  padding: 14px 0; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, #140a2c 0%, #2a1650 50%, #1c0f3a 50%, #0d0720 100%);
  font-family: var(--f-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(23, 194, 242, .8), 0 0 26px rgba(229, 30, 116, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  perspective: 300px;
}
.countdown__num.flip span { display: inline-block; animation: flipIn .5s var(--ease-out); }
.countdown__txt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.count-card .btn { width: 100%; }
.count-card__foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--muted-light); }
.count-card__foot b { color: #fff; font-weight: 600; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; background: #fff; color: var(--accent-deep);
  padding-block: 14px; transform: rotate(-1.4deg) scale(1.03); margin-block: -10px;
  z-index: 2; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.marquee--neon { background: var(--grad-btn); color: #fff; transform: rotate(1.2deg) scale(1.03); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font-family: var(--f-display); font-size: clamp(.95rem, 2vw, 1.3rem); text-transform: uppercase; white-space: nowrap;
}
.marquee__item i { width: 10px; height: 10px; background: currentColor; transform: rotate(45deg); display: inline-block; }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(56px, 8vw, 100px)) clamp(56px, 7vw, 90px);
  text-align: center;
}
.page-hero .wrap { display: grid; gap: 16px; justify-items: center; }
.page-hero h1 { font-size: clamp(2rem, 5.6vw, 4rem); }
.page-hero .lead { margin-inline: auto; }
.crumbs { display: flex; gap: 8px; font-size: .82rem; color: var(--muted-light); flex-wrap: wrap; justify-content: center; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Grids y tarjetas ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: 1.2fr .8fr; }

.card {
  position: relative; display: grid; gap: 12px; align-content: start;
  padding: clamp(22px, 2.6vw, 30px); border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, .24); border: 1px solid rgba(255, 255, 255, .16);
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s, background-color .3s;
}
.card:hover { border-color: rgba(255, 255, 255, .45); box-shadow: 0 26px 50px rgba(0, 0, 0, .35); }
.card p, .card li { color: var(--muted-light); }
.band--paper .card { background: #fff; border-color: rgba(92, 60, 160, .1); box-shadow: 0 14px 34px rgba(40, 15, 80, .08); }
.band--paper .card:hover { border-color: rgba(229, 30, 116, .35); box-shadow: 0 26px 50px rgba(40, 15, 80, .16); }
.band--paper .card p, .band--paper .card li { color: var(--muted-dark); }
.card__icon {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  transition: transform .5s var(--ease-back), background-color .3s;
}
.card__icon svg { width: 30px; height: 30px; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); background: #fff; color: var(--accent-deep); }
.band--paper .card__icon { background: rgba(229, 30, 116, .08); border-color: rgba(229, 30, 116, .2); color: var(--accent); }
.band--paper .card:hover .card__icon { background: var(--accent); color: #fff; }
.card__num { font-family: var(--f-display); font-size: .8rem; letter-spacing: .14em; color: rgba(255, 255, 255, .6); }
.band--paper .card__num { color: var(--accent); }

/* tilt 3D */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt > * { transform: translateZ(0); }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.list li { position: relative; padding-left: 26px; }
.list li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px;
  border: 2px solid #fff; border-radius: 3px; transform: rotate(45deg);
}
.band--paper .list li::before { border-color: var(--accent); }

/* bloque imagen con marco */
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.frame:hover img { transform: scale(1.06); }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); pointer-events: none; }
.frame--tilted { transform: rotate(-2deg); }
.frame__tag {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); font-size: .8rem; font-weight: 500;
}

/* ---------- Estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .18); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: rgba(14, 8, 34, .62); padding: clamp(22px, 3vw, 34px) 18px; display: grid; gap: 4px; text-align: center; }
.stat__num { font-family: var(--f-display); font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: var(--glow); }
.stat__txt { font-size: .86rem; color: var(--muted-light); }

/* ---------- Timeline de eventos ---------- */
.timeline { position: relative; display: grid; gap: clamp(26px, 4vw, 44px); }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: rgba(255, 255, 255, .15);
}
.timeline__fill {
  position: absolute; left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%) scaleY(var(--p, 0)); transform-origin: top;
  background: var(--grad-v); box-shadow: 0 0 12px rgba(23, 194, 242, .7);
}
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.tl-item::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--black); border: 3px solid #fff; z-index: 1;
  transition: background .4s, box-shadow .4s;
}
.tl-item.is-in::before { background: var(--hot); box-shadow: 0 0 0 6px rgba(229, 30, 116, .25), var(--glow); }
.tl-item:nth-child(even) .tl-item__media { order: 2; }
.tl-item__body { display: grid; gap: 12px; justify-items: start; }
.tl-item__date { font-family: var(--f-display); color: var(--mint); letter-spacing: .1em; font-size: .85rem; text-shadow: 0 0 10px rgba(61, 245, 201, .5); }
.tl-item__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.tl-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.tl-item:hover .tl-item__media img { transform: scale(1.05); }
.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  background: #fff; color: var(--accent-deep);
}
.badge--live { background: var(--grad-btn); color: #fff; box-shadow: var(--glow); animation: neonPulse 2s infinite; }
.badge--ghost { background: transparent; border: 1px solid var(--line-light); color: #fff; }

/* ---------- Ruta (recorrido) ---------- */
.route { position: relative; display: grid; gap: 0; padding-left: 64px; }
.route__line { position: absolute; left: 22px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.route__line span { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--p, 0)); border-radius: 4px; background: var(--grad-v); box-shadow: 0 0 14px rgba(23, 194, 242, .7); }
.route__runner {
  position: absolute; left: 4px; top: calc(12px + (100% - 64px) * var(--p, 0)); width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .15), var(--glow); z-index: 2;
}
.route__runner svg { width: 24px; height: 24px; animation: runBob .5s ease-in-out infinite alternate; }
.route__stop { position: relative; padding: 14px 0 22px; display: grid; gap: 4px; }
.route__stop::before {
  content: ""; position: absolute; left: -48px; top: 20px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--black); border: 3px solid rgba(255, 255, 255, .5); transition: border-color .3s, background .3s;
}
.route__stop.is-passed::before { background: #fff; border-color: #fff; }
.route__stop h4 { font-size: 1.02rem; }
.route__stop p { color: var(--muted-light); font-size: .92rem; }
.route__stop--key h4 { color: #fff; text-shadow: var(--glow); }
.route-summary { display: grid; gap: 16px; position: sticky; top: 100px; }

/* ---------- Precios / pago ---------- */
.price-card {
  position: relative; display: grid; gap: 14px; padding: clamp(26px, 3vw, 36px); border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .2); text-align: center; justify-items: center;
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.price-card--hot { background: #fff; color: var(--text-dark); border-color: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.price-card--hot p { color: var(--muted-dark); }
.price-card__tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); }
.price { font-family: var(--f-display); font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: .4em; vertical-align: super; margin-right: 4px; }
.price-card--hot .price { color: var(--accent); }
.price-card:hover { transform: translateY(-6px); }
/* Preventa apagada (agotada) */
.price-card--off { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); color: #8a8696; filter: grayscale(1); box-shadow: none; }
.price-card--off:hover { transform: none; }
.price-card--off .eyebrow, .price-card--off p { color: #8a8696 !important; }
.price-card--off .eyebrow::before { background: #8a8696 !important; }
.price-card--off .price { color: #6f6b7b; text-decoration: line-through; text-decoration-thickness: 3px; }
.price-card__tag--off { background: #3a3744; color: #b9b5c4; box-shadow: none; }
.btn--off { --bg: transparent; --fg: #8a8696; --bd: rgba(255, 255, 255, .15); cursor: not-allowed; pointer-events: none; box-shadow: none; }

.pay { display: grid; gap: 14px; }
.pay__item {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center;
  padding: 18px 20px; border-radius: 16px; background: #fff; color: var(--text-dark);
  border: 1px solid rgba(92, 60, 160, .12); box-shadow: 0 10px 26px rgba(40, 15, 80, .07);
}
.pay__logo {
  grid-row: span 2; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--f-display); font-size: .7rem; color: #fff; background: var(--accent);
}
.pay__logo--yape { background: #6c1f8f; }
.pay__logo--ibk { background: #0a8f4e; }
.pay__logo--bcp { background: #0b3f91; }
.pay__name { font-weight: 600; }
.pay__rows { display: grid; gap: 6px; }
.pay__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .92rem; color: var(--muted-dark); }
.pay__row code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .98rem; color: var(--text-dark); font-weight: 600; letter-spacing: .02em; user-select: all; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px;
  border: 1px solid rgba(92, 60, 160, .25); background: rgba(229, 30, 116, .06); color: var(--accent-deep);
  font-size: .76rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.copy:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.copy.is-done { background: #0a8f4e; border-color: #0a8f4e; color: #fff; }
.copy svg { width: 14px; height: 14px; }

/* pasos de inscripción */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 10px, transparent 10px 18px);
  background-size: 200% 100%; animation: dashMove 12s linear infinite;
}
.step { position: relative; display: grid; gap: 10px; justify-items: center; text-align: center; }
.step__n {
  counter-increment: step; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--accent); font-family: var(--f-display); font-size: 1.5rem;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .12); position: relative; z-index: 1;
  transition: transform .5s var(--ease-back), box-shadow .4s;
}
.step__n::before { content: counter(step); }
.step:hover .step__n { transform: scale(1.1) rotate(-6deg); box-shadow: 0 0 0 10px rgba(255, 255, 255, .2), var(--glow); }
.step p { color: var(--muted-light); font-size: .93rem; }

/* ---------- Categorías ---------- */
.cat {
  position: relative; overflow: hidden; display: grid; gap: 10px; padding: 28px 24px 26px;
  border-radius: var(--radius-lg); border: 2px solid #fff; text-align: center; justify-items: center;
  background: rgba(0, 0, 0, .18);
  transition: transform .45s var(--ease-out), background-color .35s, color .35s;
}
.cat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #fff;
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.cat { isolation: isolate; }
.cat:hover { color: var(--accent-deep); }
.cat:hover::before { transform: none; }
.cat:hover .cat__age { color: var(--accent); }
.cat__name { font-family: var(--f-display); font-size: 1.35rem; text-transform: uppercase; }
.cat__who { font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.cat__age { font-family: var(--f-display); font-size: 2rem; line-height: 1; transition: color .35s; }
.cat__age small { font-size: .45em; letter-spacing: .1em; }
.cat svg { width: 44px; height: 44px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line-light); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .12); }
th { font-family: var(--f-display); font-weight: 400; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(0, 0, 0, .3); }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(255, 255, 255, .06); }
td.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Premios / podio ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 14px; max-width: 640px; margin-inline: auto; }
.podium__col { display: grid; gap: 12px; justify-items: center; text-align: center; }
.podium__bar {
  width: 100%; border-radius: 14px 14px 0 0; display: grid; place-items: start center; padding-top: 16px;
  font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 2.6rem);
  background: linear-gradient(180deg, #fff 0%, #cdefff 100%); color: var(--accent);
  height: var(--h); transform-origin: bottom; transform: scaleY(0); transition: transform 1.1s var(--ease-back);
  box-shadow: 0 -10px 40px rgba(255, 255, 255, .15);
}
.podium.is-in .podium__bar { transform: scaleY(1); }
.podium__col:nth-child(1) .podium__bar { transition-delay: .25s; }
.podium__col:nth-child(3) .podium__bar { transition-delay: .45s; }
.podium__col--first .podium__bar { background: linear-gradient(180deg, #fff 0%, #ffc6de 100%); box-shadow: 0 -10px 60px rgba(255, 255, 255, .3), var(--glow); }
.podium__label { font-size: .9rem; color: var(--muted-light); }
.medal { width: 64px; height: 64px; animation: swing 3s ease-in-out infinite; transform-origin: top center; }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.filter {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-light); background: transparent; cursor: pointer;
  font-size: .86rem; font-weight: 500; transition: background .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: #fff; }
.filter.is-active { background: #fff; color: var(--accent-deep); border-color: #fff; }
.gallery { columns: 3 280px; column-gap: 16px; }
.g-item {
  break-inside: avoid; margin-bottom: 16px; position: relative; display: block; width: 100%;
  border: 0; padding: 0; background: #140a2c; border-radius: 14px; overflow: hidden; cursor: zoom-in;
  transition: opacity .4s, transform .5s var(--ease-out);
}
.g-item img { width: 100%; transition: transform .9s var(--ease-out), filter .5s; }
.g-item::after {
  content: attr(data-caption); position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; text-align: left;
  font-size: .82rem; font-weight: 500; color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent);
  transform: translateY(100%); transition: transform .45s var(--ease-out);
}
.g-item:hover img { transform: scale(1.07); filter: saturate(1.2); }
.g-item:hover::after, .g-item:focus-visible::after { transform: none; }
.g-item.is-hidden { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 180; display: grid; place-items: center;
  background: rgba(7, 4, 18, .93); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  padding: 60px 16px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: min(1100px, 100%); }
.lightbox img { max-height: 76vh; width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: scale(.94); transition: transform .45s var(--ease-out); }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { color: var(--muted-light); font-size: .9rem; text-align: center; }
.lb-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s;
}
.lb-btn:hover { background: var(--grad-btn); transform: scale(1.08); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }

/* ---------- Auspiciadores ---------- */
.sponsors { position: relative; }
.carousel { position: relative; overflow: hidden; padding-inline: 44px; }
.carousel__track { display: flex; transition: transform .7s var(--ease-out); }
.carousel__slide { flex: 0 0 calc(100% / var(--per, 6)); padding: 10px; }
.logo-tile {
  height: 120px; display: grid; place-items: center; padding: 16px; border-radius: 14px;
  background: #fff; box-shadow: 0 8px 24px rgba(40, 15, 80, .08); border: 1px solid rgba(92, 60, 160, .08);
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.logo-tile img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .8; transition: filter .45s, opacity .45s, transform .45s var(--ease-out); }
.logo-tile:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(40, 15, 80, .16); }
.logo-tile:hover img { filter: none; opacity: 1; transform: scale(1.05); }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--grad-btn); background-size: 200% 100%; color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 2;
  transition: background .2s, transform .2s;
}
.carousel__arrow:hover { background-position: 100% 0; transform: translateY(-50%) scale(1.1); }
.carousel__arrow svg { width: 18px; height: 18px; }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(92, 60, 160, .25); cursor: pointer; transition: width .35s var(--ease-out), background .3s; }
.dots button.is-active { width: 28px; background: var(--grad-btn); }

.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.logo-wall .logo-tile { height: 130px; }
.name-tile {
  height: 130px; display: grid; place-items: center; text-align: center; padding: 16px; border-radius: 14px;
  background: #fff; border: 1px dashed rgba(92, 60, 160, .3); color: var(--accent-deep);
  font-weight: 600; font-size: .95rem; transition: transform .45s var(--ease-out), background .3s, color .3s;
}
.name-tile:hover { transform: translateY(-6px); background: var(--grad-btn); color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: 16px; background: rgba(0, 0, 0, .24); border: 1px solid rgba(255, 255, 255, .16);
  transition: background .3s, border-color .3s;
}
.faq details[open] { background: rgba(0, 0, 0, .38); border-color: rgba(255, 255, 255, .4); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 22px; height: 22px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; background: #fff; transition: transform .35s var(--ease-out); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq__body { overflow: hidden; }
.faq__body > div { padding: 0 22px 20px; color: var(--muted-light); display: grid; gap: 10px; }

/* ---------- Contacto ---------- */
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; padding: 18px 20px; border-radius: 16px;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .16); text-decoration: none;
  transition: transform .35s var(--ease-out), border-color .3s, background .3s;
}
a.contact-item:hover { transform: translateX(6px); border-color: #fff; background: rgba(0, 0, 0, .4); }
.contact-item .card__icon { grid-row: span 2; width: 50px; height: 50px; }
.contact-item span { font-size: .82rem; color: var(--muted-light); }
.contact-item b { font-weight: 600; word-break: break-word; }

.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: #fff; color: var(--text-dark); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.field { display: grid; gap: 6px; }
.field label { font-size: .84rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid #ddd3e8; background: #faf7fc;
  font: inherit; font-size: .95rem; color: var(--text-dark); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(229, 30, 116, .12); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { --bg: var(--grad-btn); --fg: #fff; --bd: transparent; }
.form .btn:hover { --bg: var(--grad-btn); --bd: transparent; --fg: #fff; background-position: 100% 0; }
.form__note { font-size: .82rem; color: var(--muted-dark); }
.form__out { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: #f1fbf6; border: 1px solid #bfe8d2; color: #0a5c34; font-size: .9rem; }

/* ---------- CTA final ---------- */
.cta-band { text-align: center; }
.cta-band .wrap { display: grid; gap: 22px; justify-items: center; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.6rem); }

/* callout */
.note {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
}
.note svg { width: 24px; height: 24px; margin-top: 2px; }
.note p { color: #fff; }
.band--paper .note { background: #fbf1f8; border-color: rgba(229, 30, 116, .25); }
.band--paper .note p { color: var(--text-dark); }

.doc-link {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; text-decoration: none;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .2); transition: transform .35s var(--ease-out), border-color .3s, background .3s;
}
.doc-link:hover { transform: translateY(-4px); border-color: #fff; background: rgba(0, 0, 0, .4); }
.doc-link .card__icon { width: 50px; height: 50px; flex: none; }
.doc-link b { display: block; }
.doc-link span { font-size: .84rem; color: var(--muted-light); }
.doc-link .arrow { margin-left: auto; width: 22px; height: 22px; flex: none; transition: transform .3s var(--ease-out); }
.doc-link:hover .arrow { transform: translate(4px, -4px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); padding-block: 64px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 3px solid transparent; border-image: var(--grad) 1; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { font-family: var(--f-display); font-size: .82rem; letter-spacing: .14em; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; color: var(--muted-light); font-size: .93rem; transition: color .2s, padding-left .25s var(--ease-out); }
.footer-links a:hover { color: #fff; padding-left: 6px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { width: 230px; }
.footer-brand p { color: var(--muted-light); font-size: .93rem; max-width: 36ch; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-light); transition: background .25s, transform .35s var(--ease-back), border-color .25s;
}
.socials a:hover { background: var(--grad-btn); border-color: transparent; transform: translateY(-4px) rotate(-6deg); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: var(--muted-light); }

/* volver arriba */
.to-top {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  width: 48px; height: 48px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--grad-btn); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(229, 30, 116, .45);
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.8);
  transition: opacity .35s, transform .45s var(--ease-back), visibility .35s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: var(--glow); }
.to-top svg { width: 22px; height: 22px; }
.to-top .ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); }
.to-top .ring rect { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 220; stroke-dashoffset: calc(220 - 220 * var(--p, 0)); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 999px;
  background: #1faa59; color: #fff; text-decoration: none; font-weight: 600; font-size: .88rem;
  box-shadow: 0 10px 30px rgba(31, 170, 89, .45);
  transition: transform .35s var(--ease-back), box-shadow .3s;
}
.wa-float:hover { transform: translateY(-4px) scale(1.03); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1faa59; animation: ping 2.2s ease-out infinite; }

/* transición entre páginas */
.page-wipe {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: linear-gradient(120deg, #3df5c9, #17c2f2 30%, #7371bb 60%, #e51e74);
  transform: scaleX(0); transform-origin: right;
}
.page-wipe.is-in { transform: scaleX(1); transform-origin: left; transition: transform .45s var(--ease-out); }
.page-wipe.is-out { transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease-out); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 190;
  padding: 12px 20px; border-radius: 12px; background: #fff; color: var(--text-dark); font-weight: 600; font-size: .9rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45); transform: translate(-50%, calc(100% + 60px)); visibility: hidden; transition: transform .45s var(--ease-back), visibility .45s;
  display: flex; gap: 10px; align-items: center;
}
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }
.toast svg { width: 18px; height: 18px; color: #0a8f4e; }

/* SPA de vista previa: una página a la vez */
.spa .page { display: none; }
.spa .page.is-current { display: block; }

/* =========================================================
   ANIMACIONES DE ENTRADA (equivalentes a Elementor + nuevas)
   ========================================================= */
.js [data-anim] { opacity: 0; }
.js [data-anim].is-in { opacity: 1; animation-duration: .9s; animation-fill-mode: both; animation-timing-function: var(--ease-out); animation-delay: var(--d, 0ms); }
.js [data-anim="fade-up"].is-in { animation-name: fadeInUp; }
.js [data-anim="fade-left"].is-in { animation-name: fadeInLeft; }
.js [data-anim="fade-right"].is-in { animation-name: fadeInRight; }
.js [data-anim="slide-right"].is-in { animation-name: slideInRight; }
.js [data-anim="fade"].is-in { animation-name: fadeIn; }
.js [data-anim="zoom"].is-in { animation-name: zoomIn; }
.js [data-anim="wobble"].is-in { animation-name: wobbleIn; animation-duration: 1.2s; }
.js [data-anim="flip"].is-in { animation-name: flipUp; }
.js [data-anim="blur"].is-in { animation-name: blurIn; animation-duration: 1.1s; }
.js [data-anim="mask"].is-in { animation-name: maskUp; animation-duration: 1.1s; }
.js [data-anim="rule"] { opacity: 1; transform: scaleX(0); }
.js [data-anim="rule"].is-in { animation-name: ruleGrow; }

/* texto dividido en letras */
.split-text .w { display: inline-block; white-space: nowrap; }
.split-text .ch { display: inline-block; }
.js .split-text .ch { opacity: 0; transform: translateY(.6em) rotate(8deg); }
.js .split-text.is-in .ch { animation: charUp .7s var(--ease-out) both; animation-delay: calc(var(--ci) * 28ms + var(--d, 0ms)); }

@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 46px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-60px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(60px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes slideInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes wobbleIn {
  0% { opacity: 0; transform: none; }
  10% { opacity: 1; }
  15% { transform: translate3d(-18%, 0, 0) rotate(-5deg); }
  30% { transform: translate3d(12%, 0, 0) rotate(3deg); }
  45% { transform: translate3d(-9%, 0, 0) rotate(-3deg); }
  60% { transform: translate3d(6%, 0, 0) rotate(2deg); }
  75% { transform: translate3d(-3%, 0, 0) rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes flipUp { from { opacity: 0; transform: perspective(900px) rotateX(-70deg) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes blurIn { from { opacity: 0; filter: blur(14px); transform: scale(1.06); } to { opacity: 1; filter: none; transform: none; } }
@keyframes maskUp { from { opacity: 1; clip-path: inset(100% 0 0 0); transform: translateY(30px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@keyframes ruleGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes charUp { from { opacity: 0; transform: translateY(.6em) rotate(8deg); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes neonPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 30, 116, .55), 0 0 18px rgba(229, 30, 116, .35); } 50% { box-shadow: 0 0 0 10px rgba(229, 30, 116, 0), 0 0 34px rgba(229, 30, 116, .7); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
@keyframes logoIn { from { opacity: 0; transform: translateX(-40px) skewX(-18deg); } to { opacity: 1; transform: none; } }
@keyframes loadBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flipIn { from { transform: rotateX(90deg); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes runBob { from { transform: translateY(-1px) rotate(-4deg); } to { transform: translateY(2px) rotate(4deg); } }
@keyframes swing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes dashMove { to { background-position: -200% 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.floaty { animation: floaty 5s ease-in-out infinite; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero__grid, .split, .split--wide-left { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .steps::before { display: none; }
  .route-summary { position: static; }
  .timeline::before, .timeline__fill { left: 11px; }
  .tl-item { grid-template-columns: 1fr; gap: 18px; padding-left: 40px; }
  .tl-item::before { left: 11px; top: 26px; }
  .tl-item:nth-child(even) .tl-item__media { order: 0; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid.grid--m2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--m2 .card { padding: 18px; }
  .grid--m2 .card__icon { width: 46px; height: 46px; }
  .grid--m2 h3 { font-size: .9rem; overflow-wrap: anywhere; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .countdown { gap: 6px; }
  .podium { gap: 8px; }
  .wa-float span { display: none; }
  .wa-float { padding: 12px; }
  .carousel { padding-inline: 34px; }
  .logo-tile { height: 100px; }
  .route { padding-left: 56px; }
  .btn { width: 100%; }
  .btn-row .btn, .hero__copy .btn { width: auto; flex: 1 1 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-anim], .js .split-text .ch { opacity: 1 !important; transform: none !important; }
  .kb__slide.is-active { animation: none; }
  .marquee__track { animation: none; }
  .preloader { display: none; }
}

/* botón dentro del menú móvil */
.mobile-menu a.btn { border: 2px solid #fff; padding: .95em 1.7em; font-size: .92rem; transform: none; }

/* =========================================================
   LOGO OFICIAL NEÓN FEST RUN
   ========================================================= */
.neon-logo { margin: 0; display: grid; gap: 4px; justify-items: start; font-size: 1rem; }
.neon-logo--center { justify-items: center; }
.neon-logo img {
  width: min(560px, 100%); height: auto;
  filter: drop-shadow(0 0 10px rgba(23, 194, 242, .45)) drop-shadow(0 0 22px rgba(229, 30, 116, .35));
  animation: neonOn 1.8s steps(1, end) .3s both, neonBreath 4s ease-in-out 2.2s infinite;
}
.neon-logo__year {
  font-family: var(--f-display); font-size: clamp(1.8rem, 4.6vw, 3rem); letter-spacing: .32em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-left: .32em;
}
.neon-logo--center .neon-logo__year { padding-left: .32em; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kers-logo { filter: drop-shadow(0 0 18px rgba(23, 194, 242, .35)); }

/* encendido de letrero neón: parpadea y se queda prendido */
@keyframes neonOn {
  0% { opacity: 0; }
  8% { opacity: 1; }
  12% { opacity: .15; }
  18% { opacity: 1; }
  24% { opacity: .3; }
  30% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes neonBreath {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(23, 194, 242, .45)) drop-shadow(0 0 22px rgba(229, 30, 116, .35)); }
  50% { filter: drop-shadow(0 0 16px rgba(61, 245, 201, .6)) drop-shadow(0 0 34px rgba(229, 30, 116, .55)); }
}
@media (prefers-reduced-motion: reduce) { .neon-logo img { animation: none; } }

/* =========================================================
   AUSPICIADORES (logos actuales, fichas oscuras como en la web)
   ========================================================= */
.logo-tile {
  height: 120px; display: grid; place-items: center; padding: 16px; border-radius: 14px;
  background: #120b26; border: 1px solid rgba(255, 255, 255, .1); box-shadow: none;
  position: relative; isolation: isolate;
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s;
}
.logo-tile::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: var(--grad); opacity: 0; transition: opacity .35s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.logo-tile img { max-height: 76px; width: auto; max-width: 100%; object-fit: contain; filter: none; opacity: .9; transition: opacity .35s, transform .45s var(--ease-out); }
.logo-tile--white img { filter: brightness(0) invert(1); }
.logo-tile--card img { background: #fff; border-radius: 8px; padding: 4px; max-height: 80px; }
.logo-tile:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--glow); }
.logo-tile:hover::before { opacity: 1; }
.logo-tile:hover img { opacity: 1; transform: scale(1.06); filter: none; }
.logo-tile--white:hover img { filter: brightness(0) invert(1); }
.logo-tile__name { font-weight: 600; font-size: .9rem; text-align: center; color: #fff; }
.band--ink .dots button { background: rgba(255, 255, 255, .25); }
.band--ink .dots button.is-active { background: var(--grad-btn); }
.logo-wall { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
