/* =====================================================================
   MAIN.CSS  ·  Estilos principales del micrositio
   Template de Landing Pages para Eventos Especiales · Origin / Enrolit
   ---------------------------------------------------------------------
   ÍNDICE (usa Ctrl+F para saltar a una sección):
     1.  VARIABLES DE MARCA  <-- AQUÍ SE CAMBIAN COLORES Y TIPOGRAFÍA
     2.  RESET Y BASE
     3.  TIPOGRAFÍA
     4.  UTILIDADES Y LAYOUT (contenedor, secciones, botones, badges)
     5.  HEADER / NAVEGACIÓN
     6.  HERO
     7.  CUENTA REGRESIVA (COUNTDOWN)
     8.  INFORMACIÓN DEL EVENTO (datos rápidos)
     9.  DISTANCIAS (5K / 10K / 15K)
     10. CRONOGRAMA (TIMELINE)
     11. BENEFICIOS
     12. RUTA
     13. UBICACIÓN / MAPA
     14. INSCRIPCIONES (tarjetas VIP / Carrera)
     15. FAQ (acordeón)
     16. PATROCINADORES
     17. CTA FINAL
     18. FOOTER
     19. EXTRAS (botón "subir", scroll indicator)

   CONSEJO PARA PRINCIPIANTES:
   - Los COLORES y la TIPOGRAFÍA se cambian SOLO en la sección 1 (VARIABLES).
     Cambia un valor ahí y se actualiza en toda la página.
   - Las medidas responsive (móvil/tablet) están en "responsive.css".
   - Las animaciones están en "animations.css".
   ===================================================================== */


/* =====================================================================
   1. VARIABLES DE MARCA   ←★★★  CAMBIA AQUÍ COLORES Y FUENTES  ★★★
   ---------------------------------------------------------------------
   Todo el sitio usa estas variables. Para "re-marcar" el template para
   otro evento, normalmente solo necesitas cambiar valores de esta lista.
   ===================================================================== */
:root {

  /* ---- COLORES PRINCIPALES (marca del evento) ---------------------- */
  --c-bg-deep:    #25305C;   /* ★ Fondo principal del sitio               */
  --c-bg:         #25305C;   /* Fondo general (igual al principal)        */
  --c-surface:    #2f3c70;   /* Tarjetas / superficies (algo más claras)  */
  --c-surface-2:  #3a4884;   /* Tarjetas elevadas / hover                 */

  --c-primary:    #e61e7b;   /* Magenta principal (botones, acentos)     */
  --c-primary-2:  #ff4da6;   /* Rosa claro (degradados, brillos)         */
  --c-purple:     #8a3ffb;   /* Púrpura de apoyo                         */
  --c-gold:       #ffd56a;   /* Dorado cálido (glow tipo "C" del hero)   */
  --c-gold-soft:  #ffe9b0;   /* Dorado suave                             */

  /* ---- TEXTO ------------------------------------------------------- */
  --c-text:       #f5f4ff;   /* Texto principal sobre fondo oscuro       */
  --c-text-muted: #b6b2e0;   /* Texto secundario / descripciones         */
  --c-text-dim:   #8783b8;   /* Texto terciario / notas                  */
  --c-on-accent:  #ffffff;   /* Texto sobre botones de color             */

  /* ---- BORDES Y LÍNEAS -------------------------------------------- */
  --c-border:      rgba(255, 255, 255, 0.10);
  --c-border-soft: rgba(255, 255, 255, 0.06);

  /* ---- DEGRADADOS (reutilizables) -------------------------------- */
  --grad-primary: linear-gradient(135deg, #ff4da6 0%, #e61e7b 45%, #8a3ffb 100%);
  --grad-text:    linear-gradient(100deg, #ff7cc0 0%, #ff4da6 40%, #c46bff 100%);
  --grad-gold:    linear-gradient(120deg, #ffe9b0 0%, #ffd56a 55%, #ffb648 100%);
  --grad-surface: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));

  /* HERO (RESPALDO): si falta la imagen del hero, se ve este degradado
     de marca para que NUNCA aparezca un hueco vacío. */
  --hero-fallback:
      radial-gradient(circle at 64% 42%, rgba(255, 213, 106, 0.30), transparent 42%),
      radial-gradient(circle at 30% 30%, rgba(255, 77, 166, 0.28), transparent 45%),
      radial-gradient(circle at 78% 80%, rgba(138, 63, 251, 0.30), transparent 50%),
      linear-gradient(150deg, #2c396f 0%, #25305C 60%, #202a52 100%);

  /* ---- TIPOGRAFÍA  (las fuentes se cargan en el <head> del HTML) -- */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif; /* Títulos */
  --font-body:    "Montserrat", "Segoe UI", system-ui, sans-serif; /* Texto   */

  /* ---- ESCALA DE TAMAÑOS DE TEXTO (fluida: se adapta a la pantalla) */
  --fs-hero:    clamp(2.6rem, 6vw + 1rem, 6rem);     /* Título del hero  */
  --fs-h2:      clamp(2rem, 3.2vw + 1rem, 3.4rem);   /* Títulos sección  */
  --fs-h3:      clamp(1.25rem, 1vw + 0.9rem, 1.6rem);/* Subtítulos       */
  --fs-lead:    clamp(1.05rem, 0.6vw + 0.9rem, 1.3rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;

  /* ---- ESPACIADO --------------------------------------------------- */
  --space-section: clamp(4.5rem, 9vw, 9rem);  /* Aire vertical entre secciones */
  --container:     1200px;                    /* Ancho máximo del contenido    */
  --gutter:        clamp(1.25rem, 4vw, 3rem); /* Margen lateral                */

  /* ---- BORDES REDONDEADOS ----------------------------------------- */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* ---- SOMBRAS ----------------------------------------------------- */
  --shadow-sm:  0 4px 14px rgba(0, 0, 0, 0.20);
  --shadow:     0 18px 50px rgba(8, 6, 30, 0.45);
  --shadow-lg:  0 30px 80px rgba(8, 6, 30, 0.55);
  --shadow-glow: 0 14px 40px rgba(230, 30, 123, 0.35);

  /* ---- TRANSICIONES ------------------------------------------------ */
  --t-fast: 0.18s ease;
  --t:      0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-slow: 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);

  /* ---- ALTURA DEL HEADER (se usa para el scroll de anclas) -------- */
  --header-h: 76px;
}


/* =====================================================================
   2. RESET Y BASE
   ===================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

/* El atributo hidden SIEMPRE oculta (aunque el elemento tenga display:flex).
   Se usa para "desactivar" secciones sin borrar su código (reutilizables). */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;          /* Desplazamiento suave al hacer clic en el menú */
  scroll-padding-top: var(--header-h); /* Que el header fijo no tape el título destino */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg-deep);
  /* Brillos sutiles de marca en el fondo de toda la página */
  background-image:
    radial-gradient(circle at 12% 8%,  rgba(138, 63, 251, 0.10), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(230, 30, 123, 0.10), transparent 32%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
iframe { display: block; max-width: 100%; }

img { height: auto; }

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

ul, ol { list-style: none; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* Foco visible y accesible para teclado (NO quitar: ayuda a accesibilidad) */
:focus-visible {
  outline: 3px solid var(--c-primary-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Selección de texto con color de marca */
::selection {
  background: var(--c-primary);
  color: #fff;
}


/* =====================================================================
   3. TIPOGRAFÍA
   ===================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

p { color: var(--c-text-muted); }

strong { color: var(--c-text); font-weight: 600; }

/* Texto con degradado de marca (para palabras destacadas en títulos) */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* =====================================================================
   4. UTILIDADES Y LAYOUT
   ===================================================================== */

/* Contenedor central: limita el ancho y agrega márgenes laterales */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Sección genérica: espaciado vertical estándar */
.section {
  position: relative;
  padding-block: var(--space-section);
}

/* Cabecera de sección (etiqueta + título + descripción) */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head.is-center {
  margin-inline: auto;
  text-align: center;
}

/* Etiqueta pequeña tipo "píldora" arriba de los títulos */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary-2);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  background: rgba(255, 77, 166, 0.06);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-primary-2);
  box-shadow: 0 0 12px var(--c-primary-2);
}

.section-title { font-size: var(--fs-h2); margin-bottom: 1rem; }

.section-desc {
  font-size: var(--fs-lead);
  color: var(--c-text-muted);
  max-width: 60ch;
}
.section-head.is-center .section-desc { margin-inline: auto; }

/* ---- BOTONES ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.8rem;
  border-radius: var(--radius-pill);
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }

/* Botón primario (relleno de color) */
.btn-primary {
  color: var(--c-on-accent);
  background-image: var(--grad-primary);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: 0 22px 50px rgba(230, 30, 123, 0.45);
}

/* Botón secundario (contorno / vidrio) */
.btn-ghost {
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Botón dorado (acentos especiales tipo VIP) */
.btn-gold {
  color: #2a1c00;
  /* Degradado dorado del botón final: #FABE06 (250,190,6) → #FFF154 (255,241,84) */
  background-image: linear-gradient(120deg, #FABE06 0%, #FFF154 100%);
  box-shadow: 0 14px 36px rgba(250, 190, 6, 0.30);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(255, 184, 72, 0.42); }

.btn-lg { padding: 1.15rem 2.4rem; font-size: 1.08rem; }
.btn-full { width: 100%; }

/* Flecha que se mueve un poco en hover (microinteracción) */
.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(4px); }

/* Tarjeta base reutilizable (efecto vidrio sutil / glassmorphism) */
.card {
  position: relative;
  background: var(--grad-surface), var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

/* Línea/acento superior decorativo en tarjetas (opcional) */
.card-accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0.9;
}


/* =====================================================================
   5. HEADER / NAVEGACIÓN
   - Empieza transparente y al hacer scroll obtiene fondo + blur + sombra
     (la clase "is-scrolled" la agrega main.js).
   ===================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t), box-shadow var(--t), border-color var(--t), height var(--t);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(19, 18, 52, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--c-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo / marca del evento en el header (texto editable o imagen) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.brand .brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}
.brand img { height: 40px; width: auto; }

/* Navegación principal */
.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--c-text-muted);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav a:hover { color: var(--c-text); background: rgba(255, 255, 255, 0.06); }

/* El botón "Inscríbete" dentro del menú solo se muestra en móvil
   (en escritorio ya existe el botón del header). Ver responsive.css. */
.nav .nav-cta { display: none; }

.header-cta { display: inline-flex; align-items: center; gap: 0.75rem; }

/* Botón "hamburguesa" (solo visible en móvil; ver responsive.css) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.04);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
/* Animación a "X" cuando el menú está abierto */
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: rotate(45deg); }
.nav-toggle.is-open span::after  { transform: rotate(-45deg) translateY(-4px); }


/* =====================================================================
   6. HERO / BANNER PRINCIPAL
   - El banner es una IMAGEN completa (SIN texto encima).
   - Se muestra una imagen distinta en escritorio y en móvil (etiqueta
     <picture> en el HTML), por eso aquí NO hay reglas de "imagen de fondo".
   - Debajo va la sección "hero-intro" con el título y la descripción.
   ===================================================================== */

/* Contenedor del banner: deja sitio para el header fijo y un color de
   respaldo de marca por si la imagen no carga. */
.hero-banner {
  position: relative;
  /* El banner arranca en la MISMA parte superior de la página (sin header). */
  padding-top: 0;
  background-color: var(--c-bg-deep);  /* respaldo si la imagen no carga */
  background-image: var(--hero-fallback);
  line-height: 0;                      /* elimina el hueco bajo la imagen */
}
/* La imagen del banner se muestra COMPLETA (sin recortar) a todo el ancho */
.hero-banner__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- INTRO (título + descripción + botones, debajo del banner) ------ */
.hero-intro { text-align: center; }
.hero-intro .hero__badge { margin-inline: auto; }
.hero-intro__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.04;
  margin-bottom: 1.2rem;
  color: #ffffff;              /* blanco por lineamientos de marca */
}
.hero-intro__subtitle {
  font-size: var(--fs-lead);
  color: var(--c-text);
  max-width: 60ch;
  margin: 0 auto 2.2rem;
}
.hero-intro .hero__actions { justify-content: center; margin-bottom: 2.4rem; }
.hero-intro .hero__facts { justify-content: center; }

/* Badge dorado (reutilizable) */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--c-gold-soft);
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 213, 106, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(255, 213, 106, 0.08);
  margin-bottom: 1.5rem;
}

/* Botones del intro */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mini-datos rápidos (fecha, lugar, distancias) */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.hero__fact { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__fact .k {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.hero__fact .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-text);
}


/* =====================================================================
   7. CUENTA REGRESIVA (COUNTDOWN)
   - El valor de la FECHA se cambia en scripts/countdown.js
   ===================================================================== */
.countdown {
  position: relative;
  z-index: 2;
}
.countdown__card {
  padding: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
}
.countdown__label {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--fs-small);
  color: var(--c-primary-2);
  margin-bottom: 1.6rem;
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 2vw, 1.5rem);
  max-width: 680px;
  margin-inline: auto;
}
.count-box {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.8rem) 0.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c-border);
}
.count-box .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.count-box .unit {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.countdown__note {
  margin-top: 1.6rem;
  font-size: var(--fs-small);
  color: var(--c-text-dim);
}
/* Mensaje cuando el evento ya llegó / pasó (lo muestra el JS) */
.countdown__done {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--c-gold-soft);
}


/* =====================================================================
   8. INFORMACIÓN DEL EVENTO (datos rápidos en cuadrícula "bento")
   ===================================================================== */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.fact-card {
  padding: 1.6rem;
  border-radius: var(--radius);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.fact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--grad-surface), var(--c-surface-2);
}
.fact-card .ic {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 77, 166, 0.12);
  color: var(--c-primary-2);
}
.fact-card .ic svg { width: 24px; height: 24px; }
.fact-card .k {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 0.2rem;
}
.fact-card .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-text);
}
.fact-card .v small { display:block; font-weight: 400; font-size: 0.85rem; color: var(--c-text-muted); }


/* =====================================================================
   9. DISTANCIAS (5K / 10K / 15K)
   ===================================================================== */
.dist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.dist-card {
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform var(--t), border-color var(--t);
}
.dist-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.2); }
.dist-card .km {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dist-card.is-featured { border-color: rgba(255, 77, 166, 0.4); }
.dist-card .tag {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-gold-soft);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 213, 106, 0.1);
  border: 1px solid rgba(255, 213, 106, 0.3);
}
.dist-card h3 { font-size: var(--fs-h3); }
.dist-card p { font-size: 0.95rem; }
.dist-card ul { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.dist-card li {
  display: flex; gap: 0.6rem; align-items: center;
  font-size: 0.9rem; color: var(--c-text-muted);
}
.dist-card li::before {
  content: ""; flex: 0 0 auto;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}


/* =====================================================================
   10. CRONOGRAMA (TIMELINE vertical elegante)
   ===================================================================== */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 2.2rem;
}
/* Línea vertical */
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-primary-2), var(--c-purple), transparent);
}
.tl-item { position: relative; padding-bottom: 2.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {        /* punto del timeline */
  content: "";
  position: absolute;
  left: -2.2rem; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 3px solid var(--c-primary);
  box-shadow: 0 0 0 4px rgba(230, 30, 123, 0.15);
}
.tl-item .when {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--c-gold-soft);
  margin-bottom: 0.25rem;
}
.tl-item h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.tl-item p { font-size: 0.92rem; }


/* =====================================================================
   11. BENEFICIOS (cuadrícula de íconos)
   ===================================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}
.benefit {
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius);
  text-align: left;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.benefit:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.2);
  background: var(--grad-surface), var(--c-surface-2);
}
.benefit .ic {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-primary);
  color: #fff;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-glow);
}
.benefit .ic svg { width: 28px; height: 28px; }
.benefit h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.benefit p { font-size: 0.9rem; }


/* =====================================================================
   12. RUTA (imagen del recorrido)
   ===================================================================== */
.route-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
  background: var(--c-surface);
}
.route-wrap img { width: 100%; height: auto; display: block; }
.route-note {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--c-text-dim);
  text-align: center;
}


/* =====================================================================
   13. UBICACIÓN / MAPA (2 columnas en desktop)
   ===================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}
.location-info { display: flex; flex-direction: column; gap: 1.4rem; }
.location-info .addr {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  background: var(--grad-surface), var(--c-surface);
  border: 1px solid var(--c-border);
}
.location-info .addr .ic { color: var(--c-primary-2); flex: 0 0 auto; }
.location-info .addr .ic svg { width: 26px; height: 26px; }
.location-info .addr p { color: var(--c-text); font-weight: 500; }

/* Tarjeta de información logística (puntos, llegada, estacionamiento...) */
.logistics {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
}
.logistics h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.logistics li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--c-border-soft);
  font-size: 0.92rem;
  color: var(--c-text-muted);
}
.logistics li:last-child { border-bottom: none; }
.logistics li .ic { color: var(--c-primary-2); flex: 0 0 auto; margin-top: 2px; }
.logistics li .ic svg { width: 18px; height: 18px; }
.logistics li strong { display: block; color: var(--c-text); }

/* Contenedor del mapa embebido */
.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
  min-height: 380px;
  background: var(--c-surface);
}
.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: saturate(1.05) contrast(1.02);
}


/* =====================================================================
   14. INSCRIPCIONES (2 tarjetas premium: VIP / Carrera)
   ===================================================================== */
.reg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
}
/* Cuando queda UNA sola tarjeta, se centra y no ocupa todo el ancho. */
.reg-grid.is-single {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
}
.reg-card {
  display: flex;
  flex-direction: column;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.reg-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-lg);
}
/* Imagen superior de la tarjeta (con degradado de respaldo si falta) */
.reg-card .media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--hero-fallback);
  background-size: cover;
  background-position: center;
  display: grid; place-items: center;
}
.reg-card .media img { width: 100%; height: 100%; object-fit: cover; }
.reg-card .media .media-label {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  text-align: center;
  padding: 1rem;
}
.reg-card .price {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #2a1c00;
  background: var(--grad-gold);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.reg-card .body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}
.reg-card h3 { font-size: var(--fs-h3); }
.reg-card .body p { font-size: 0.95rem; }
/* Resalta la frase del donativo (color dorado + negrita) */
.hl-donativo { color: var(--c-gold); font-weight: 700; }
.reg-card ul { display: flex; flex-direction: column; gap: 0.55rem; }
.reg-card li {
  display: flex; gap: 0.6rem; align-items: center;
  font-size: 0.92rem; color: var(--c-text-muted);
}
.reg-card li .ic { color: var(--c-primary-2); flex: 0 0 auto; }
.reg-card li .ic svg { width: 18px; height: 18px; }
.reg-card .btn { margin-top: auto; }


/* =====================================================================
   15. FAQ (acordeón accesible)
   ===================================================================== */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--grad-surface), var(--c-surface);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item.is-open { border-color: rgba(255, 77, 166, 0.4); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--c-text);
}
.faq-q .chev {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: transform var(--t), background var(--t);
}
.faq-item.is-open .faq-q .chev {
  transform: rotate(180deg);
  background: var(--grad-primary);
  color: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.faq-a .faq-a-inner {
  padding: 0 1.5rem 1.4rem;
  color: var(--c-text-muted);
  font-size: 0.95rem;
}


/* =====================================================================
   16. PATROCINADORES  (una sola imagen con todos los logos)
   ===================================================================== */
.sponsors-image {
  background: #ffffff;                 /* la imagen viene sobre fondo blanco */
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
}
.sponsors-image img {
  width: 100%;
  height: auto;
  display: block;
}


/* =====================================================================
   17. CTA FINAL (banda grande de llamada a la acción)
   ===================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 213, 106, 0.18), transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(138, 63, 251, 0.25), transparent 45%),
    var(--grad-primary);
  background-size: cover;
  box-shadow: var(--shadow-lg);
}
.cta h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: #fff;
  margin-bottom: 1rem;
}
.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-lead);
  max-width: 56ch;
  margin: 0 auto 2rem;
}
.cta .btn-gold { box-shadow: 0 18px 50px rgba(0,0,0,0.25); }


/* =====================================================================
   18. FOOTER (minimalista)
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  margin-top: var(--space-section);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.footer-brand { max-width: 360px; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; }

.footer-cols { display: flex; flex-wrap: wrap; gap: 3rem; }
.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--c-text-muted);
  font-size: 0.92rem;
  padding: 0.3rem 0;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--c-text); }

/* Redes sociales */
.socials { display: flex; gap: 0.6rem; }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-text-muted);
  transition: transform var(--t), background var(--t), color var(--t);
}
.socials a:hover { transform: translateY(-3px); background: var(--grad-primary); color: #fff; }
.socials a svg { width: 20px; height: 20px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border-soft);
  font-size: 0.85rem;
  color: var(--c-text-dim);
}


/* =====================================================================
   19. EXTRAS
   ===================================================================== */

/* Botón flotante "volver arriba" (lo controla main.js) */
.to-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 90;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* Evita que el contenido quede pegado al borde en pantallas muy anchas */
.section:last-of-type { margin-bottom: 0; }

/* Enlace "Saltar al contenido": oculto hasta que recibe foco con el teclado */
.skip-link:focus { left: 1rem !important; top: 1rem !important; }
