/* ==========================================================================
   Noviembre Azul 2026 — Design system
   Fuentes: Anton (display) + Barlow Condensed (acento deportivo) + Inter (texto), como boomballtour.com  |  Estilo: Accessible & Ethical
   ========================================================================== */

:root {
  /* Marca (tomada del logo) */
  --cyan-500: #1AA3E0;
  --cyan-700: #0A78AE;   /* texto/enlaces sobre blanco: 4.8:1 */
  --cyan-100: #DCEFFA;
  --cyan-50:  #F0F8FD;
  --navy-900: #0B2A52;
  --navy-700: #12407A;
  --orange-500: #F58220; /* acento: solo CTA */
  --orange-600: #E06E0A;

  /* Semánticos */
  --bg: #FFFFFF;
  --bg-soft: var(--cyan-50);
  --ink: #0F2742;
  --muted: #4A5F76;
  --border: #D5E4F0;
  --danger: #C62828;
  --success: #1B7F4B;
  --ring: #0A78AE;

  /* Tipografía */
  --font-head: "Anton", Impact, "Arial Narrow", sans-serif;      /* display: h1/h2, cifras */
  --font-hand: "Barlow Condensed", "Arial Narrow", sans-serif;    /* acento deportivo: eyebrow, nav */
  --font-ui: "Inter", system-ui, sans-serif;                      /* botones, h3, formularios */
  --font-body: "Inter", system-ui, sans-serif;

  /* Espaciado (ritmo 8) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11,42,82,.06), 0 2px 8px rgba(11,42,82,.06);
  --shadow-md: 0 8px 28px rgba(11,42,82,.12);
  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.22,.8,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-ui); line-height: 1.15; margin: 0 0 var(--s-4); color: var(--navy-900); letter-spacing: -.01em; text-wrap: balance; }
h1, h2 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
a { color: var(--cyan-700); }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, var(--s-9)); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #E8F2FA; }
.section--dark h2, .section--dark h3 { color: #fff; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: #C9DDF0; }
.eyebrow {
  display: inline-block; font-family: var(--font-hand); font-size: 1.15rem; font-weight: 700; font-style: italic;
  letter-spacing: .04em; text-transform: uppercase; color: var(--cyan-700); margin-bottom: var(--s-3);
}
.section--dark .eyebrow, .hero .eyebrow { color: #7FD0F5; }
.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* Accesibilidad */
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200; background: var(--navy-900);
  color: #fff; padding: var(--s-3) var(--s-5); border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
.section--dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #7FD0F5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--cta { background: var(--orange-500); color: var(--navy-900); }
.btn--cta:hover { background: var(--orange-600); box-shadow: 0 6px 18px rgba(245,130,32,.35); }
.btn--primary { background: var(--navy-700); color: #fff; }
.btn--primary:hover { background: var(--navy-900); }
.btn--ghost { border-color: currentColor; color: var(--navy-700); background: transparent; }
.btn--ghost:hover { background: var(--cyan-100); }
.hero .btn--ghost, .section--dark .btn--ghost { color: #fff; }
.hero .btn--ghost:hover, .section--dark .btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--sm { min-height: 44px; padding: .5rem 1.25rem; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Placeholders de imagen/logo */
.ph {
  display: grid; place-items: center; text-align: center; padding: var(--s-4);
  background: repeating-linear-gradient(45deg, var(--cyan-100), var(--cyan-100) 12px, #E9F5FC 12px, #E9F5FC 24px);
  border: 2px dashed #8DC6E6; border-radius: var(--radius); color: var(--cyan-700);
  font-family: var(--font-ui); font-size: .85rem; font-weight: 500;
}
.ph svg { margin: 0 auto var(--s-2); width: 2rem; height: 2rem; }
.ph--square { aspect-ratio: 1; }
.ph--wide { aspect-ratio: 16/10; }
.ph--tall { aspect-ratio: 4/5; }
.ph--logo { aspect-ratio: 1; width: 44px; border-radius: 10px; font-size: .6rem; padding: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flow-root; background: #fff;
  border-bottom: 1px solid var(--border); transition: background-color .35s, border-color .35s;
}
.site-header.is-scrolled { background: transparent; border-bottom-color: transparent; pointer-events: none; }
.header-inner {
  position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  pointer-events: auto; border-radius: 14px; background: transparent;
  transition: width .35s cubic-bezier(.215,.61,.355,1), height .35s cubic-bezier(.215,.61,.355,1), margin .35s cubic-bezier(.215,.61,.355,1), padding .35s, background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-scrolled .header-inner {
  height: 56px; margin-top: 16px; padding-inline: var(--s-4);
  background: rgba(255,255,255,.7); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
  box-shadow: 0 2px 14px rgba(11,42,82,.14), 0 0 0 1px rgba(11,42,82,.06);
}
@media (min-width: 961px) {
  .site-header.is-scrolled .header-inner { width: min(980px, calc(100% - 2rem)); }
}
.brand .ph--logo, .brand-name { transition: width .35s, font-size .35s; }
.site-header.is-scrolled .brand .ph--logo { width: 36px; }
.site-header.is-scrolled .brand-name { font-size: .95rem; }
.site-header.is-scrolled .btn--sm { min-height: 38px; padding: .35rem 1rem; font-size: .88rem; }
.btn--sm { transition: min-height .35s, padding .35s, font-size .35s, background-color .2s; }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--navy-900); }
.brand-name { font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; line-height: 1.05; }
.brand-name span { color: var(--cyan-500); display: block; }
.nav-list { display: flex; align-items: center; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border-radius: 999px;
  font-family: var(--font-ui); font-weight: 600; font-style: normal; font-size: .95rem; letter-spacing: .01em; color: var(--ink); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-link:hover { background: var(--cyan-50); color: var(--cyan-700); }
.nav-link[aria-current="page"] { color: var(--cyan-700); background: var(--cyan-100); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; color: var(--navy-900); }
.nav-toggle:hover { background: var(--cyan-50); }

/* Páginas que abren con hero oscuro: navbar transparente sobre el hero y blanco; al bajar vuelve a la píldora */
body:has(main > .hero:first-child, main > .page-hero:first-child) .site-header:not(.is-scrolled) {
  background: transparent; border-bottom-color: transparent; margin-bottom: calc(var(--header-h) * -1);
}
body:has(main > .hero:first-child, main > .page-hero:first-child) .site-header:not(.is-scrolled) :is(.brand, .nav-link, .nav-toggle) { color: #fff; }
body:has(main > .hero:first-child, main > .page-hero:first-child) .site-header:not(.is-scrolled) .nav-link:hover { background: rgba(255,255,255,.14); color: #fff; }
body:has(main > .hero:first-child, main > .page-hero:first-child) .site-header:not(.is-scrolled) .nav-link[aria-current="page"] { background: rgba(255,255,255,.2); color: #fff; }
body:has(main > .hero:first-child, main > .page-hero:first-child) .site-header:not(.is-scrolled) .nav-toggle:hover { background: rgba(255,255,255,.14); }
main > .hero:first-child { padding-top: calc(clamp(3rem, 7vw, 6rem) + var(--header-h)); }
main > .page-hero:first-child { padding-top: calc(var(--s-8) + var(--header-h)); }

@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute; inset: calc(100% + 8px) 0 auto 0; background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-md); padding: var(--s-4) 1rem var(--s-5); display: none;
  }
  .site-header.is-scrolled .header-inner { margin-inline: var(--s-3); }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .site-header .site-nav .nav-link { padding: 0 var(--s-4); justify-content: flex-start; min-height: 52px; font-size: 1.05rem; color: var(--ink); }
  .site-header .site-nav .nav-link:hover { background: var(--cyan-50); color: var(--cyan-700); }
  .site-header .site-nav .nav-link[aria-current="page"] { background: var(--cyan-100); color: var(--cyan-700); }
  .nav-list .btn { width: 100%; margin-top: var(--s-3); }
  /* Panel blanco del menú: mantener texto oscuro aunque el header sea transparente sobre el hero */
  body:has(main > .hero:first-child, main > .page-hero:first-child) .site-header:not(.is-scrolled) .site-nav .nav-link { color: var(--ink); }
  body:has(main > .hero:first-child, main > .page-hero:first-child) .site-header:not(.is-scrolled) .site-nav .nav-link:hover { background: var(--cyan-50); color: var(--cyan-700); }
  body:has(main > .hero:first-child, main > .page-hero:first-child) .site-header:not(.is-scrolled) .site-nav .nav-link[aria-current="page"] { background: var(--cyan-100); color: var(--cyan-700); }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 500px at 85% 10%, rgba(26,163,224,.35), transparent 60%), linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #7FD0F5; }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; grid-template-columns: 1.1fr .9fr; }
.hero-lead { font-size: 1.25rem; color: #D5E6F5; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block: var(--s-5) var(--s-6); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s-5); list-style: none; padding: 0; margin: 0; color: #D5E6F5; }
.hero-meta li { display: flex; align-items: center; gap: var(--s-2); }
.hero-meta .icon { color: #7FD0F5; }
.hero-ribbon { position: absolute; right: -60px; bottom: -80px; width: 380px; opacity: .08; pointer-events: none; }
.hero-visual { position: relative; }
.hero-visual .ph { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #D5E6F5; border-radius: var(--radius-lg); }

.countdown {
  margin-top: var(--s-5); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3);
  background: #fff; color: var(--navy-900); border-radius: var(--radius); padding: var(--s-4); box-shadow: var(--shadow-md);
}
.countdown div { text-align: center; }
.countdown strong { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 400; color: var(--navy-700); font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.countdown-label { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }

@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } .hero-visual .ph { aspect-ratio: 16/10; } }

/* Estadísticas */
.stats { margin-top: -2.5rem; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--s-6) var(--s-5); border: 1px solid var(--border);
}
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--cyan-700); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-5); } }

/* Layouts genéricos */
.split { display: grid; gap: var(--s-8); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s-6); } }
.grid-3 { display: grid; gap: var(--s-5); grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: var(--s-5); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #B7D8EE; }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--cyan-100); color: var(--navy-700); margin-bottom: var(--s-4); }
.section--dark .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.section--dark .card p { color: #C9DDF0; }
.section--dark .card-icon { background: rgba(127,208,245,.18); color: #7FD0F5; }

.checklist { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; }
.checklist .icon { color: var(--cyan-700); margin-top: 2px; }

/* Info de la carrera */
.info-card { display: flex; gap: var(--s-4); align-items: flex-start; }
.info-card h3 { font-size: 1.05rem; margin-bottom: var(--s-1); }

/* Carrusel de ediciones */
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--s-2) 2px var(--s-5);
  scrollbar-width: thin; scrollbar-color: var(--cyan-500) var(--cyan-100);
}
.edition-card { flex: 0 0 min(280px, 78%); scroll-snap-align: start; text-decoration: none; color: inherit; }
.edition-card .ph { margin-bottom: var(--s-4); }
.edition-card h3 { margin-bottom: var(--s-1); }
.edition-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.edition-year { font-family: var(--font-head); font-weight: 400; font-size: 2rem; color: var(--cyan-700); }
.rail-controls { display: flex; gap: var(--s-2); margin-top: var(--s-2); }
.icon-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--border); background: #fff; color: var(--navy-700); transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--cyan-100); border-color: var(--cyan-500); }
.icon-btn:disabled { opacity: .4; cursor: default; pointer-events: none; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); flex-wrap: wrap; }

/* Auspiciadores */
.sponsor-tier { margin-bottom: var(--s-7); }
.sponsor-tier h3 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: var(--s-4); }
.logo-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.logo-grid--lg { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.logo-grid .ph { aspect-ratio: 3/2; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .lead { margin-inline: auto; margin-bottom: var(--s-6); }

/* Footer (estilo boomballtour.com: tarjeta crema sobre marco azul, wordmark gigante) */
.site-footer { --cream: #F1E9DC; background: var(--navy-900); padding: 8px; color: var(--navy-900); font-size: 1rem; }
.footer-card { background: var(--cream); border-radius: 12px; padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2rem, 6vw, 6rem); overflow: hidden; max-width: 1760px; margin-inline: auto; }
.site-footer a { color: var(--navy-900); }
.site-footer a:hover { color: var(--cyan-700); }
.site-footer h3 { font-family: var(--font-ui); font-weight: 800; font-size: 1rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; color: var(--navy-900); margin: 0 0 var(--s-3); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1.25fr auto; gap: var(--s-7); padding-bottom: var(--s-8); border-bottom: 2px dotted rgba(11,42,82,.35); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-links a { font-weight: 800; text-transform: uppercase; text-decoration: none; letter-spacing: .02em; }
.footer-links a:hover { text-decoration: underline; }
.footer-sponsor { margin-top: var(--s-7); }
.footer-sponsor p { margin: 0 0 var(--s-2); color: var(--muted); }
.footer-sponsor-box { display: inline-block; width: 130px; text-decoration: none; }
.footer-sponsor-box img { display: block; width: 100%; height: auto; }
.footer-col--contact p { margin: 0 0 var(--s-2); color: var(--muted); font-size: 1.1rem; }
.footer-col--contact a { font-weight: 600; }
.footer-form label:not(.footer-check) { display: block; font-size: .85rem; color: var(--muted); margin: var(--s-3) 0 var(--s-1); }
.footer-form input[type="email"], .footer-form input[type="tel"], .footer-form input[type="text"] { width: 100%; min-height: 48px; padding: .6rem 1rem; border: 2px solid transparent; border-radius: 10px; background: #fff; color: var(--navy-900); font: inherit; box-shadow: 0 0 0 3px rgba(255,255,255,.7); }
.footer-form input:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.footer-form input[aria-invalid="true"] { border-color: var(--danger); }
.footer-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.footer-check { display: flex; gap: var(--s-3); align-items: flex-start; margin-top: var(--s-4); font-size: .8rem; line-height: 1.4; }
.footer-check input { width: 22px; height: 22px; flex: none; accent-color: var(--navy-900); }
.footer-submit { margin-top: var(--s-4); display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; padding: .75rem 2rem; border: 0; border-radius: 999px; background: var(--navy-900); color: #fff; font: 600 1rem var(--font-ui); cursor: pointer; transition: background-color .2s; }
.footer-submit:hover { background: var(--navy-700); }
.footer-submit:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.footer-form-msg { min-height: 1.4em; margin: var(--s-3) 0 0; font-size: .9rem; font-weight: 600; }
.footer-form-msg.is-error { color: var(--danger); }
.footer-form-msg.is-ok { color: var(--success); }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-3); align-items: flex-start; }
.footer-social a { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(11,42,82,.08); text-decoration: none; transition: background-color .2s, color .2s; }
.footer-social a:hover { background: var(--navy-900); color: #fff; }
.footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); padding-top: var(--s-7); }
.footer-wordmark { flex: 1 1 auto; min-width: 0; max-width: 820px; user-select: none; }
.footer-wordmark img { display: block; width: 100%; height: auto; }
.footer-legal { max-width: 360px; text-align: right; padding-bottom: var(--s-6); flex: none; }
.footer-legal p { margin: 0 0 .25rem; font-size: 1.1rem; }
.footer-legal .footer-copy { margin-top: var(--s-4); font-size: .85rem; color: var(--muted); }
@media (max-width: 1100px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-col--form { grid-column: 1 / -1; order: 3; } .footer-social { justify-content: flex-end; } }
@media (max-width: 1000px) { .footer-bottom { flex-direction: column; align-items: flex-start; } .footer-legal { text-align: left; padding-bottom: var(--s-5); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: var(--s-6); } .footer-social { justify-content: flex-start; } .footer-form-row { grid-template-columns: 1fr; } }


/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Formulario de inscripción
   ========================================================================== */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; padding-block: var(--s-8) calc(var(--s-8) + 1.5rem); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero .lead { color: #C9DDF0; }
.breadcrumb { display: flex; gap: var(--s-2); list-style: none; padding: 0; margin: 0 0 var(--s-4); font-size: .9rem; color: #9FC4E3; }
.breadcrumb a { color: #C9DDF0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); list-style: none; padding: 0; margin: var(--s-6) 0 0; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: var(--s-3); align-items: center; font-size: .95rem; color: #D5E6F5; }
.steps li::before {
  content: counter(step); flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--orange-500); color: var(--navy-900); font-family: var(--font-ui); font-weight: 700;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-7); margin-top: -3rem; align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.25rem, 4vw, 2.5rem); }
.aside-stack { display: grid; gap: var(--s-5); position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 960px) { .aside-stack { position: static; } }
.aside-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-5); }
.aside-card h2 { font-size: 1.1rem; margin-bottom: var(--s-3); }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.aside-card li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: .98rem; }
.aside-card .icon { color: var(--cyan-700); margin-top: 2px; }
.doc-link { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--ink); min-height: 48px; transition: background-color .2s, border-color .2s; }
.doc-link:hover { background: var(--cyan-50); border-color: var(--cyan-500); }
.doc-link small { display: block; color: var(--muted); }

fieldset { border: 0; padding: 0; margin: 0 0 var(--s-7); min-width: 0; }
legend { font-family: var(--font-ui); font-weight: 600; font-size: 1.2rem; color: var(--navy-900); padding: 0; margin-bottom: var(--s-5); display: flex; align-items: center; gap: var(--s-3); width: 100%; }
legend .num { width: 32px; height: 32px; border-radius: 50%; background: var(--cyan-100); color: var(--navy-700); display: grid; place-items: center; font-size: .9rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.field-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .field-grid { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: var(--s-2); font-size: 1rem; color: var(--navy-900); }
.field .opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field .hint { display: block; color: var(--muted); font-size: .9rem; margin-top: var(--s-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem 1rem; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #B9CFE2; border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2312407A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center; padding-right: 2.75rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--cyan-500); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 4px rgba(10,120,174,.2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus, .field.has-error select:focus { box-shadow: 0 0 0 4px rgba(198,40,40,.18); }
.error-msg { display: none; align-items: center; gap: var(--s-2); color: var(--danger); font-size: .92rem; font-weight: 600; margin-top: var(--s-2); }
.field.has-error .error-msg, .check.has-error .error-msg { display: flex; }

.radio-row { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.radio-pill span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-5); border: 2px solid #B9CFE2; border-radius: 999px; font-weight: 600; transition: all .2s; background: #fff; }
.radio-pill input:hover + span { border-color: var(--cyan-500); }
.radio-pill input:checked + span { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.radio-pill input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 3px; }

.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; padding: var(--s-4); border: 1px solid var(--border); border-radius: 12px; margin-bottom: var(--s-3); }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--navy-700); cursor: pointer; }
.check label { font-weight: 400; cursor: pointer; }
.check.has-error { border-color: var(--danger); background: #FFF6F6; }
.check .error-msg { grid-column: 2; margin-top: 0; }

.error-summary { display: none; border: 2px solid var(--danger); background: #FFF6F6; border-radius: var(--radius); padding: var(--s-5); margin-bottom: var(--s-6); }
.error-summary.is-visible { display: block; }
.error-summary h2 { font-size: 1.1rem; color: var(--danger); margin-bottom: var(--s-3); }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--danger); font-weight: 600; }
.error-summary:focus { outline: 3px solid var(--danger); outline-offset: 3px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form-actions .btn { min-width: 220px; }
.form-note { color: var(--muted); font-size: .92rem; margin: 0; }

.success { display: none; text-align: center; padding-block: var(--s-7); }
.success.is-visible { display: block; }
.success-icon { width: 80px; height: 80px; margin: 0 auto var(--s-5); border-radius: 50%; background: #E3F6EC; color: var(--success); display: grid; place-items: center; }
.success-icon .icon { width: 2.5rem; height: 2.5rem; }
.success:focus { outline: none; }

/* Página en construcción */
.soon { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--s-9); }
.soon .ph { width: 120px; margin: 0 auto var(--s-6); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
}

/* ==========================================================================
   Utilidades y ajustes (antes estilos en línea en el HTML)
   ========================================================================== */
.sprite { position: absolute; width: 0; height: 0; }
.lead--center { margin-inline: auto; }
.page-body { padding-bottom: var(--s-9); }
.form-note--lead { margin-bottom: var(--s-6); }
.error-msg .icon { width: 1.1rem; height: 1.1rem; }
.minor-note { margin-top: var(--s-5); }
.minor-note[hidden] { display: none; }
.aside-card--info { background: var(--cyan-50); }
.aside-card--info p { margin: .5rem 0 0; }
.doc-list { display: grid; gap: .75rem; }
.footer-bottom--plain { border-top: 0; padding-block: var(--s-6); }
.section-head--wide { max-width: none; }
.head-text { max-width: 640px; }
.card-link { margin-top: 1rem; }
.brand--light { color: #fff; margin-bottom: 1rem; }
.soon .ph { font-size: .8rem; }
.hero-ribbon path { fill: #fff; }

/* ==========================================================================
   Aliados — marquee oscuro (estilo designbomb.it)
   Fondo casi negro, título itálico ultra-bold en crema, logos monocromos en bucle
   ========================================================================== */
.allies { --allies-bg: #141414; --allies-cream: #F7F6EB; background: var(--allies-bg); color: var(--allies-cream); overflow: hidden; padding-block: clamp(4rem, 10vw, 8rem); }
.allies-head { position: relative; text-align: center; }
.allies-title {
  font-family: "Figtree", var(--font-ui); font-style: italic; font-weight: 900; text-transform: none;
  font-size: clamp(4rem, 14vw, 7rem); line-height: 1; letter-spacing: -.03em; color: var(--allies-cream); margin: 0;
}
.allies-sticker {
  position: absolute; top: -.5rem; left: calc(50% + clamp(6.5rem, 20vw, 14.5rem)); transform: rotate(12deg);
  display: grid; place-items: center; width: clamp(72px, 9vw, 104px); aspect-ratio: 1; border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  background: var(--cyan-500); color: var(--navy-900); font: 800 .7rem/1.1 var(--font-ui); text-transform: uppercase; letter-spacing: .04em; text-align: center;
  box-shadow: 0 0 0 3px var(--allies-bg), 0 0 0 5px var(--cyan-500);
}
.allies-lead { text-align: center; max-width: 46ch; margin: var(--s-5) auto clamp(2.5rem, 6vw, 4.5rem); padding-inline: 1rem; color: rgba(247,246,235,.7); }
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track { list-style: none; margin: 0; padding: 0; flex: none; display: flex; align-items: center; min-width: 100%; animation: marquee 40s linear infinite; }
.marquee-track li { flex: none; padding-inline: clamp(1.5rem, 4vw, 3.5rem); }
.ph-logo {
  display: grid; place-items: center; min-width: 130px; height: 44px; padding-inline: 1rem;
  border: 1px dashed rgba(247,246,235,.4); border-radius: 8px; color: rgba(247,246,235,.75);
  font: 600 .8rem var(--font-ui); letter-spacing: .04em;
}
/* Al subir logos reales: <img> en blanco/crema → filter: brightness(0) invert(1) */
.marquee img { height: 94px; width: auto; max-width: 208px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (max-width: 560px) { .allies-sticker { left: auto; right: 1rem; top: -1.5rem; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   Home — hero con video de fondo + filas "feature" (distribución de boomballtour.com)
   ========================================================================== */
.home .site-header { position: fixed; inset: 0 0 auto 0; background: transparent; border-bottom-color: transparent; pointer-events: none; }
/* El navbar del home (transparente arriba, píldora al bajar) usa las reglas .site-header / .is-scrolled de arriba */

.hero--video {
  min-height: 100svh; display: flex; align-items: center; text-align: center; background: var(--navy-900);
  padding-block: calc(var(--header-h) + 2rem) 5rem;
}
.hero-bg, .hero-video, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; opacity: 0; transition: opacity .5s linear; }
.hero-video.is-front { opacity: 1; z-index: 2; }
.hero-video.is-under { opacity: 1; z-index: 1; }
.hero-bg { z-index: 0; }
.hero-overlay { z-index: 3; }
.hero-overlay { background: linear-gradient(180deg, rgba(11,42,82,.6) 0%, rgba(11,42,82,.5) 45%, rgba(11,42,82,.85) 100%); }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero--video h1 { font-size: clamp(3rem, 9vw, 7rem); line-height: .95; max-width: 14ch; margin-inline: auto; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero--video .hero-lead { margin-inline: auto; }

/* Lockup "Yo me atrevo · 5K · 5 años · 5ta Edición 2026" */
.hero--video h1.lockup { display: flex; flex-direction: column; align-items: center; max-width: none; line-height: 1; margin-bottom: var(--s-5); text-shadow: none; }
.lockup-top, .lockup-bottom { font-family: var(--font-head); letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.lockup-top { font-size: clamp(2.2rem, 6.5vw, 4.5rem); color: var(--orange-500); transform: rotate(-3deg); margin-bottom: .1em; }
.lockup-bottom { position: relative; font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1.25; color: var(--orange-500); margin-top: .1em; }
.lockup-bottom span { color: #fff; }
.lockup-mid { position: relative; display: inline-block; }
.lockup-5k {
  display: block; font-family: var(--font-head); font-size: clamp(8rem, 26vw, 19rem); line-height: .9; color: var(--cyan-500);
  -webkit-text-stroke: clamp(8px, 1.6vw, 16px) #fff; paint-order: stroke fill; letter-spacing: .01em;
  filter: drop-shadow(clamp(4px, .9vw, 9px) clamp(4px, .9vw, 9px) 0 var(--orange-500));
}
.lockup-years {
  position: absolute; top: 4%; right: -2%; transform: rotate(-8deg); font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 3rem);
  line-height: 1; color: var(--cyan-500); background: #fff; padding: .15em .45em .2em; border-radius: 999px;
  box-shadow: 4px 4px 0 var(--orange-500); text-transform: lowercase;
}
.hero--video .btn { border-radius: 999px; }
.hero-pause {
  position: absolute; z-index: 2; right: 1rem; bottom: 1rem; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(11,42,82,.45); color: #fff; cursor: pointer;
}
.hero-pause:hover { background: rgba(11,42,82,.7); }
.hero-pause.is-paused .icon { clip-path: polygon(20% 15%, 20% 85%, 85% 50%); }

.stats--band { margin-top: 0; padding-block: var(--s-7); }

/* Filas feature: título enorme Anton en cian + media, alternadas */
.features .container { display: grid; gap: clamp(3rem, 8vw, 6rem); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-title { font-size: clamp(2.4rem, 6vw, 4.5rem); color: var(--cyan-500); margin-bottom: var(--s-4); }
.feature-body p { max-width: 52ch; color: var(--muted); font-size: 1.15rem; }
.feature-media { border-radius: var(--radius-lg); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature-media { order: 0; } }

/* Logo oficial en el header */
.brand-logo { height: 44px; width: auto; transition: height .35s; }
.site-header.is-scrolled .brand-logo { height: 38px; }
.brand-logo { transition: height .35s, filter .35s; }
body:has(main > .hero:first-child, main > .page-hero:first-child) .site-header:not(.is-scrolled) .brand-logo { filter: brightness(0) invert(1); }
.brand-logo--footer { height: 56px; }
.soon-logo { width: 220px; height: auto; margin: 0 auto var(--s-6); }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #4dc247; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.28); text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.wa-float:hover { background: #3fae3a; transform: scale(1.06); color: #fff; }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--navy-900); }
.wa-float-label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: .35rem .75rem; border-radius: 8px; background: #fff; color: var(--navy-900); font: 600 .85rem var(--font-ui); white-space: nowrap; box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: opacity .2s; }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { opacity: 1; }

/* Hero del home: lockup compacto abajo a la izquierda y cuenta regresiva abajo a la derecha (deja ver el video) */
.hero--video { align-items: flex-end; text-align: left; min-height: 100svh; padding-block: calc(var(--header-h) + 2rem) clamp(1.5rem, 4vw, 3rem); }
.hero--video .hero-content { flex-direction: row; align-items: flex-end; }
.hero--video .hero-main { display: flex; flex-direction: column; align-items: flex-start; }
.hero--video h1.lockup { align-items: flex-start; margin-bottom: var(--s-4); }
.hero--video .lockup-top { font-size: clamp(1.4rem, 3.2vw, 2.4rem); transform-origin: left center; }
.hero--video .lockup-bottom { font-size: clamp(1.1rem, 2.4vw, 1.8rem); }
.hero--video .lockup-5k { font-size: clamp(5.5rem, 12vw, 9.5rem); -webkit-text-stroke-width: clamp(5px, .8vw, 8px); filter: drop-shadow(clamp(3px, .5vw, 5px) clamp(3px, .5vw, 5px) 0 var(--orange-500)); }
.hero--video .lockup-years { font-size: clamp(.9rem, 1.9vw, 1.5rem); }
.hero--video .hero-actions { justify-content: flex-start; margin-block: 0; }
.hero-overlay { background: linear-gradient(180deg, rgba(11,42,82,.35) 0%, rgba(11,42,82,.1) 40%, rgba(11,42,82,.75) 100%); }
.hero-pause { bottom: auto; top: calc(var(--header-h) + 1rem); }
@media (max-width: 760px) { .hero--video .hero-content { flex-direction: column; align-items: flex-start; } }

/* Imágenes reales (reemplazan placeholders) */
.feature-media { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; box-shadow: var(--shadow-md); }
.edition-img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--s-4); }

/* Sección de cuenta regresiva (clara, con fondo 3D de partículas) */
.countdown-section { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #FFFFFF 0%, var(--cyan-100) 100%); color: var(--navy-900); padding-block: clamp(4rem, 10vw, 8rem); text-align: center; isolation: isolate; }
.cd-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cd-glow i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: cd-float 14s ease-in-out infinite alternate; }
.cd-glow i:nth-child(1) { width: 38vw; height: 38vw; left: -8vw; top: -10vw; background: var(--cyan-500); }
.cd-glow i:nth-child(2) { width: 30vw; height: 30vw; right: -6vw; bottom: -12vw; background: var(--orange-500); opacity: .35; animation-duration: 18s; animation-delay: -6s; }
.cd-glow i:nth-child(3) { width: 24vw; height: 24vw; left: 40vw; top: 30%; background: #7FD0F5; opacity: .4; animation-duration: 22s; animation-delay: -11s; }
@keyframes cd-float { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw, 4vw) scale(1.25); } }
.cd-inner { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-5); }
.countdown-section .eyebrow { color: var(--cyan-700); margin: 0; }
.countdown-section h2 { overflow-wrap: anywhere; color: var(--navy-900); margin: 0; font-size: clamp(2rem, 5.5vw, 4rem); text-transform: uppercase; }
.countdown-section .countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--s-4) 0; width: min(100%, 860px); gap: clamp(.5rem, 2vw, 1.5rem); background: transparent; box-shadow: none; padding: 0; }
.countdown-section .countdown div { background: rgba(255,255,255,.8); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 2rem) .5rem; box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.countdown-section .countdown strong { color: var(--navy-700); font-size: clamp(2.6rem, 9vw, 6rem); }
.countdown-section .countdown span { color: var(--muted); font-size: clamp(.75rem, 1.6vw, 1rem); }

/* Hero: título a la izquierda, botones a la derecha */
.hero--video .hero-content { width: min(100% - 2rem, var(--container)); }
.hero--video .hero-main { width: 100%; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.hero--video h1.lockup { margin-bottom: 0; }
.hero--video .hero-actions { justify-content: flex-end; }
@media (max-width: 760px) { .hero--video .hero-main { flex-direction: column; align-items: flex-start; } .hero--video .hero-actions { justify-content: flex-start; } }

/* Efectos del contador: roll al cambiar, pulso en segundos, brillo al pasar el mouse */
.countdown-section .countdown strong { display: inline-block; font-variant-numeric: tabular-nums; }
.countdown-section .countdown strong.is-roll { animation: cd-roll .45s var(--ease); }
@keyframes cd-roll { from { transform: translateY(-45%) rotateX(70deg); opacity: 0; filter: blur(4px); } to { transform: none; opacity: 1; filter: none; } }
.countdown-section .countdown div { transition: transform .25s var(--ease), box-shadow .25s; }
.countdown-section .countdown div:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(18,64,122,.2); }
.countdown-section .countdown div:last-child { animation: cd-pulse 1s ease-in-out infinite; }
.countdown-section .countdown div:last-child strong { color: var(--cyan-500); }
@keyframes cd-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(26,163,224,.35); } 50% { box-shadow: 0 0 0 12px rgba(26,163,224,0); } }
@media (prefers-reduced-motion: reduce) { .cd-glow i, .countdown-section .countdown div:last-child { animation: none; } }

/* Título del hero un poco más a la izquierda que el logo (solo en pantallas grandes) */
@media (min-width: 1000px) { .hero--video h1.lockup { margin-left: -2.5rem; } }

/* Hero de inscripción: líneas de viento 3D (three.js) detrás del contenido */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.wind-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }
.form-layout { position: relative; z-index: 2; } /* queda por encima del hero (que ahora es posicionado) */

/* Logo del hero (reemplaza el lockup de texto) */
.hero--video .hero-logo { display: block; width: auto; height: clamp(110px, 23vh, 210px); max-width: 100%; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }

/* Hero: logo y botones hacia los costados; los botones quedan por encima del botón flotante de WhatsApp (54px + 16px) */
.hero--video { padding-bottom: calc(54px + 16px + 1.5rem); }
.hero--video .hero-content { width: calc(100% - clamp(1.5rem, 4vw, 4rem)); max-width: none; }
.hero--video h1.lockup { margin-left: 0; margin-right: 0; }

/* Móvil: logo a la izquierda, botones pequeños a la derecha */
@media (max-width: 760px) {
  .hero--video .hero-main { flex-direction: row; flex-wrap: nowrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3); }
  .hero--video .hero-actions { order: 2; flex-direction: column; align-items: flex-start; flex: 0 1 auto; gap: var(--s-2); }
  .hero--video h1.lockup { order: 1; flex: none; margin-left: 0; margin-right: auto; }
  .hero--video .hero-logo { height: clamp(105px, 21vh, 161px); }
  .hero--video .hero-actions .btn { min-height: 40px; padding: .45rem 1rem; font-size: .85rem; gap: .4rem; }
  .hero--video .hero-actions .btn .icon { width: 16px; height: 16px; }
}

/* Botón de WhatsApp en el navbar (solo móvil/tablet, donde se oculta el flotante) */
.wa-header { display: none; align-items: center; gap: .4rem; flex: none; min-height: 32px; padding: .25rem .7rem; margin-left: auto; border-radius: 999px; font: 600 .78rem var(--font-ui); background: rgba(77,194,71,.55); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-decoration: none; transition: background-color .2s, transform .2s var(--ease); }
.wa-header:hover { background: rgba(63,174,58,.9); color: #fff; transform: scale(1.06); }
.wa-header:focus-visible { outline: 3px solid var(--navy-900); outline-offset: 2px; }
@media (max-width: 960px) {
  .wa-float { display: none; }
  .hero--video { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
  .wa-header { display: inline-flex; margin-right: calc(var(--s-3) * -1); }
}

/* Móvil: el lugar baja a una segunda línea bajo la fecha */
@media (max-width: 760px) {
  .eyebrow .eb-sep { display: none; }
  .eyebrow .eb-place { display: block; }
}

.eyebrow--upright { font-style: normal; }

/* Campañas sociales: 5 tarjetas, la última fila queda centrada */
@media (min-width: 961px) {
  .grid-3--center { grid-template-columns: repeat(6, 1fr); }
  .grid-3--center > .card { grid-column: span 2; }
  .grid-3--center > .card:nth-child(4) { grid-column: 2 / span 2; }
  .grid-3--center > .card:nth-child(5) { grid-column: 4 / span 2; }
}

/* Título de la banda de cifras */
.stats--band .section-head { margin-bottom: var(--s-5); }

/* Sello "Juntos por la salud": salta y se balancea, con pausa entre saltos */
.allies-sticker { transform-origin: 50% 90%; animation: sticker-hop 3.4s cubic-bezier(.3,.7,.4,1) infinite; }
@keyframes sticker-hop {
  0%, 52%, 100% { transform: translateY(0) rotate(12deg) scale(1, 1); }
  10%  { transform: translateY(2px) rotate(12deg) scale(1.08, .9); }
  24%  { transform: translateY(-20px) rotate(2deg) scale(.96, 1.05); }
  36%  { transform: translateY(0) rotate(20deg) scale(1.08, .92); }
  44%  { transform: translateY(-6px) rotate(8deg) scale(1, 1); }
  48%  { transform: translateY(0) rotate(14deg) scale(1.03, .97); }
}
@media (prefers-reduced-motion: reduce) { .allies-sticker { animation: none; } }

/* Pie: botones de WhatsApp (voluntario, donar, auspiciar) */
.footer-col--form > p { margin: 0 0 var(--s-4); color: var(--muted); }
.footer-actions { display: grid; gap: var(--s-3); justify-items: start; }
.site-footer .footer-action, .site-footer .footer-action:visited { margin-top: 0; text-decoration: none; color: #fff; }
.site-footer .footer-action:hover { background: var(--navy-700); color: #fff; }

/* Inscripción: entrega de kits y dorsales (información destacada) */
.kits { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #E8F2FA; padding-block: clamp(2.5rem, 6vw, var(--s-8)); }
.kits .eyebrow { color: #7FD0F5; }
.kits-head h2 { color: #fff; margin-block: var(--s-2) var(--s-3); }
.kits-head .lead { color: #C9DDF0; }
.kits-alert { display: flex; gap: var(--s-4); align-items: flex-start; margin-block: var(--s-6); padding: var(--s-5); border-radius: var(--radius); background: var(--orange-500); color: var(--navy-900); font-size: 1.05rem; }
.kits-alert .icon { flex: none; width: 2rem; height: 2rem; }
.kits-alert p { margin: 0; }
.kits-grid { display: grid; gap: var(--s-4); }
.kit-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow-md); }
.kit-card h3 { display: flex; gap: .5rem; align-items: center; font-size: 1.15rem; color: var(--navy-700); margin: 0 0 var(--s-3); }
.kit-card h3 .icon { color: var(--cyan-700); }
.kit-card p { margin: 0 0 var(--s-3); }
.kit-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
.kit-card--main { border-top: 6px solid var(--cyan-500); }
.kit-chip { display: inline-flex; gap: .4rem; align-items: center; background: var(--cyan-100); color: var(--navy-700); font-weight: 700; font-size: .9rem; padding: .3rem .75rem; border-radius: 999px; margin-bottom: var(--s-3); }
.kit-chip .icon { width: 1rem; height: 1rem; }
.kit-time { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.1; color: var(--navy-900); }
.kit-place { display: flex; gap: .5rem; align-items: flex-start; font-weight: 600; }
.kit-place .icon { flex: none; color: var(--cyan-700); margin-top: 2px; }
.kit-place small { font-weight: 400; color: var(--muted); }
.kit-extra { background: var(--bg-soft); border-radius: 10px; padding: .6rem .8rem; font-size: .95rem; }
.kit-card--dorsal { background: var(--cyan-100); border: 2px solid var(--cyan-500); }
@media (min-width: 720px) { .kits-grid { grid-template-columns: repeat(2, 1fr); } .kit-card--dorsal { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .kits-grid { grid-template-columns: repeat(6, 1fr); } .kit-card--main { grid-column: span 3; } .kit-card:not(.kit-card--main):not(.kit-card--dorsal) { grid-column: span 2; } .kit-card--dorsal { grid-column: 1 / -1; } }

.steps a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.steps a:hover { color: #7FD0F5; }
.kits-alert--end { margin-top: var(--s-5); margin-bottom: 0; }

/* Título de la sección del formulario de inscripción */
.form-head { text-align: center; max-width: 760px; margin: clamp(2.5rem, 6vw, var(--s-8)) auto var(--s-7); scroll-margin-top: 4rem; }
.form-head .eyebrow { display: inline-block; background: var(--orange-500); color: var(--navy-900); padding: .3em 1em; border-radius: 999px; }
.form-head h2 { font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1; color: var(--navy-900); margin-block: var(--s-3) var(--s-4); }
.form-head h2::after { content: ""; display: block; width: 5rem; height: 6px; border-radius: 3px; margin: var(--s-4) auto 0; background: linear-gradient(90deg, var(--orange-500), var(--cyan-500)); }
.form-head .lead { margin-inline: auto; }
.form-head + .form-layout { margin-top: 0; }
#form-closed[hidden] { display: none; }

/* Cronograma del día (inscripción) */
.crono { padding-bottom: var(--s-9, 5rem); }
.crono-list { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; }
.crono-list::before { content: ""; position: absolute; left: 7.4rem; top: .6rem; bottom: .6rem; width: 2px; background: linear-gradient(var(--navy-700), rgba(11,61,120,.15)); }
.crono-list li { position: relative; display: grid; grid-template-columns: 6.4rem 1fr; gap: 0 2.4rem; padding: .85rem 0; align-items: start; }
.crono-list li::before { content: ""; position: absolute; left: calc(7.4rem - 6px); top: 1.35rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-700); }
.crono-list time { text-align: right; font-family: var(--font-head); font-size: 1.25rem; color: var(--navy-700); line-height: 1.6; white-space: nowrap; }
.crono-list h3 { margin: 0; font-size: 1.1rem; line-height: 1.5; color: var(--ink); }
.crono-list p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.crono-list .is-start::before { background: var(--orange-500); border-color: var(--orange-500); box-shadow: 0 0 0 5px rgba(242,138,31,.2); }
.crono-list .is-start time { color: var(--orange-500); }
.crono-list .is-key::before { background: var(--navy-700); }
@media (max-width: 520px) {
  .crono-list::before { left: 5.4rem; }
  .crono-list li { grid-template-columns: 4.6rem 1fr; gap: 0 1.8rem; }
  .crono-list li::before { left: calc(5.4rem - 6px); }
  .crono-list time { font-size: 1.05rem; }
}
/* Menos espacio entre el formulario y el cronograma */
.crono { padding-top: clamp(2.5rem, 6vw, var(--s-8)); padding-bottom: var(--s-8); }
.crono .form-head { margin-top: 0; }
#cronograma { scroll-margin-top: 6rem; }

/* Botón "Cronograma" junto al de inscripción */
.btn--crono { background: transparent; color: var(--navy-700); border: 2px solid var(--navy-700); }
.btn--crono:hover { background: var(--navy-700); color: #fff; }
body:has(main > .hero:first-child, main > .page-hero:first-child) .site-header:not(.is-scrolled) .btn--crono { color: #fff; border-color: rgba(255,255,255,.75); }
body:has(main > .hero:first-child, main > .page-hero:first-child) .site-header:not(.is-scrolled) .btn--crono:hover { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 960px) {
  .site-header .site-nav .btn--crono { justify-content: center; }
  body:has(main > .hero:first-child, main > .page-hero:first-child) .site-header:not(.is-scrolled) .site-nav .btn--crono { color: var(--navy-700); border-color: var(--navy-700); }
  body:has(main > .hero:first-child, main > .page-hero:first-child) .site-header:not(.is-scrolled) .site-nav .btn--crono:hover { background: var(--navy-700); color: #fff; }
}

/* Mensaje de éxito: cómo recibir el dorsal */
.success-steps { list-style: none; margin: var(--s-5) auto 0; padding: 0; max-width: 560px; display: grid; gap: var(--s-3); text-align: left; }
.success-steps li { background: var(--cyan-50, #EAF6FB); border-radius: var(--radius); padding: .8rem 1rem; line-height: 1.45; }
.success-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-6); }

.kit-note { font-size: .8em; font-weight: 400; color: var(--muted); margin-top: var(--s-2); }

/* Organizadores (misma estética oscura que las ediciones) */
.org-strip { background: var(--navy-900); color: #F7F6EB; padding-block: clamp(3rem, 7vw, 5.5rem); }
.org-strip-label { margin: 0 0 var(--s-6); text-align: center; font-family: "Figtree", var(--font-ui); font-style: italic; font-weight: 900; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; letter-spacing: -.03em; text-transform: none; color: #F7F6EB; border: 0; padding: 0; }
.org-strip-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-6) clamp(2rem, 5vw, 4.5rem); }
.org-strip-logos a { display: block; text-decoration: none; color: inherit; }
.org-strip-logos img { display: block; height: 140px; width: auto; max-width: min(100%, 360px); object-fit: contain; opacity: .92;
  filter: brightness(0) invert(1) drop-shadow(0 0 0 rgba(79,179,232,0)); transition: filter .35s ease, opacity .35s ease; }
.org-strip-logos li:hover img, .org-strip-logos a:focus-visible img { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(79,179,232,.95)) drop-shadow(0 0 32px rgba(27,111,184,.8)); }
.org-strip-logos.js-reveal li { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 160ms); }
.org-strip-logos.js-reveal.is-in li { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .org-strip-logos.js-reveal li { opacity: 1; transform: none; transition: none; } .org-strip-logos img { transition: none; } }
