/* ==========================================================================
   Stgo10K 2027 — estilos
   Traducción 1:1 del diseño "Stgo10K 2027.dc.html"
   ========================================================================== */

:root {
  --blue: #0A32FF;
  --blue-deep: #062BE0;
  --navy: #0A1A6B;
  --lime: #B8F500;
  --graphite: #3C3D42;
  --paper: #F4F5F0;
  --paper-2: #EEF0E6;
  --white: #fff;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--blue);
  font-family: 'Archivo', Helvetica, sans-serif;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lime); text-decoration: none; }
img { display: block; }

/* Foco visible para navegación con teclado (el diseño usa all:unset en botones) */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

/* `clip` en vez de `hidden` para no romper el nav sticky */
.page { overflow-x: hidden; overflow-x: clip; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Tipografía compartida ---------- */
.eyebrow {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .14em;
  margin-bottom: 10px;
}
.eyebrow--flush { margin-bottom: 0; }
.eyebrow--lime { color: var(--lime); }
.eyebrow--blue { color: var(--blue); }
.eyebrow--navy { color: var(--navy); }

.h2 {
  margin: 0;
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -.02em;
}
.h2--xl { font-size: clamp(34px, 5vw, 72px); line-height: .92; }
.h2--lg { font-size: clamp(34px, 4.6vw, 64px); line-height: .94; }
.h2--blue { color: var(--blue); }

.body-lg { margin: 0; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.pretty { text-wrap: pretty; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- Botón sesgado (skew) ---------- */
.skew-btn {
  display: block;
  font-stretch: 125%;
  font-weight: 900;
  transform: skewX(-8deg);
}
.skew-btn > span { display: block; transform: skewX(8deg); }

.skew-btn--nav,
.skew-btn--hero { background: var(--lime); color: var(--navy); }
.skew-btn--nav:hover,
.skew-btn--hero:hover { background: var(--white); color: var(--blue); }

.skew-btn--nav { font-size: 13px; letter-spacing: .04em; padding: 13px 20px; }
.skew-btn--hero { font-size: 17px; padding: 19px 30px; }

.skew-btn--blue { background: var(--blue); color: var(--white); font-size: 15px; padding: 17px 26px; }
.skew-btn--blue:hover { background: var(--graphite); color: var(--lime); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.nav__logo { display: flex; }
.nav__logo img { height: 46px; width: auto; display: block; }
.nav__links {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  margin-left: auto;
  flex-wrap: wrap;
  font-stretch: 110%;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
}
.nav__link { color: var(--white); }
.nav__link:hover { color: var(--lime); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--blue);
  overflow: hidden;
  isolation: isolate;
}
.hero__bgtext {
  position: absolute;
  inset: 0;
  z-index: -1;
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(220px, 34vw, 560px);
  line-height: .78;
  letter-spacing: -.04em;
  color: var(--blue-deep);
  white-space: nowrap;
  user-select: none;
}
.hero__stripe-top {
  position: absolute;
  left: 0; top: 0;
  width: 34%;
  height: 44px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6% 70%, 0 100%);
}
.hero__stripe-bottom {
  position: absolute;
  right: 0; bottom: 0;
  width: 46%;
  height: 56px;
  background: var(--lime);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) var(--gutter) clamp(88px, 9vw, 136px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero__tags {
  display: flex;
  align-items: center;
  gap: 12px;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .14em;
}
.hero__tag { background: var(--lime); color: var(--navy); padding: 5px 10px; }
.hero__title {
  margin: 0;
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(64px, 10.5vw, 168px);
  line-height: .84;
  letter-spacing: -.03em;
  color: var(--lime);
  transform: rotate(-3deg);
  transform-origin: left center;
}
.hero__lead {
  margin: 0;
  max-width: 560px;
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.25;
  text-wrap: pretty;
}
.hl { color: var(--lime); }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__link {
  color: var(--white);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .06em;
  padding: 19px 8px;
  border-bottom: 3px solid var(--lime);
}
.hero__link:hover { color: var(--lime); }

.hero__media { position: relative; min-width: 0; }
.hero__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  clip-path: polygon(0 4%, 100% 0, 96% 100%, 3% 96%);
  background: var(--blue-deep);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  display: block;
}

/* Countdown */
.countdown {
  position: absolute;
  left: clamp(-28px, -2vw, -8px);
  bottom: 28px;
  background: var(--graphite);
  padding: 18px 22px 16px;
  max-width: calc(100% - 16px);
  transform: rotate(-2deg);
}
.countdown__label {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--lime);
  margin-bottom: 10px;
}
.countdown__grid { display: flex; gap: 18px; font-variant-numeric: tabular-nums; }
.countdown__num {
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1;
}
.countdown__num--lime { color: var(--lime); }
.countdown__unit { font-size: 11px; letter-spacing: .12em; font-weight: 600; }

/* ==========================================================================
   FECHAS
   ========================================================================== */
.fechas { background: var(--graphite); position: relative; }
.fechas__inner { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.fechas__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.fechas__intro { margin: 0; max-width: 420px; font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.fechas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 14px;
}

.fecha-card {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 22px 20px;
  border: 2px solid rgba(255, 255, 255, .28);
  background: transparent;
  color: var(--white);
  font-family: inherit;
  transition: background .15s, color .15s;
  --sub: var(--lime);
}
.fecha-card.is-on {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--navy);
  --sub: var(--navy);
}
.fecha-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
}
.fecha-card__status { color: var(--sub); }
.fecha-card__date {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-stretch: 125%;
  font-weight: 900;
  line-height: .85;
}
.fecha-card__day { font-size: clamp(72px, 7vw, 104px); letter-spacing: -.04em; }
.fecha-card__mon { font-size: 28px; }
.fecha-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  border-top: 2px solid currentColor;
  padding-top: 14px;
}
.fecha-card__when { font-size: 12px; letter-spacing: .1em; font-weight: 600; }
.fecha-card__comuna { font-stretch: 112%; font-weight: 800; font-size: 21px; margin-top: 2px; }
.fecha-card__arrow { font-stretch: 125%; font-weight: 900; font-size: 22px; }

/* ==========================================================================
   BIENVENIDA / INFORMACIÓN
   ========================================================================== */
.bienvenida { background: var(--paper); color: var(--graphite); }
.bienvenida__inner {
  padding-top: clamp(56px, 7vw, 112px);
  padding-bottom: clamp(56px, 7vw, 112px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.bienvenida__photos {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
  min-width: 0;
}
.bienvenida__photo-main {
  grid-row: span 2;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  display: block;
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
}
.bienvenida__photo-sq {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.bienvenida__photo-sq--a { object-position: 50% 35%; }
.bienvenida__photo-sq--b { object-position: 50% 12%; }
.bienvenida__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.bienvenida__ctas {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}
.bases-link {
  color: var(--blue);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 15px;
  border-bottom: 3px solid var(--lime);
  padding-bottom: 3px;
}
.bases-link:hover { color: var(--graphite); }

/* ==========================================================================
   HORARIOS + CIRCUITO
   ========================================================================== */
.horarios {
  background: var(--blue);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.horarios__bgtext {
  position: absolute;
  right: -2%;
  top: -6%;
  z-index: -1;
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(200px, 30vw, 480px);
  line-height: .8;
  letter-spacing: -.04em;
  color: var(--blue-deep);
  white-space: nowrap;
  user-select: none;
}
.horarios__inner { padding-top: clamp(56px, 7vw, 112px); padding-bottom: clamp(56px, 7vw, 112px); }
.fecha-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: var(--lime);
  color: var(--navy);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .1em;
  padding: 7px 12px;
  margin-bottom: 28px;
}
.horarios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(40px, 5vw, 80px);
}
.largada {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  font-stretch: 125%;
  font-weight: 900;
  color: var(--lime);
  line-height: .9;
}
.largada__time { font-size: clamp(72px, 10vw, 152px); letter-spacing: -.04em; }
.largada__meta { font-size: 24px; color: var(--white); }
.horarios__text { max-width: 520px; }

.circuito { scroll-margin-top: 90px; }
.circuito__comuna { font-stretch: 112%; font-weight: 700; font-size: 20px; }
.dist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  margin-top: 6px;
}
.dist { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.dist--10k { background: var(--lime); color: var(--navy); }
.dist--5k { border: 2px solid var(--lime); }
.dist__num {
  font-stretch: 125%;
  font-weight: 900;
  font-size: 84px;
  line-height: .82;
  letter-spacing: -.04em;
}
.dist--5k .dist__num { color: var(--lime); }
.dist__name { font-stretch: 112%; font-weight: 800; font-size: 18px; margin-top: 8px; }
.dist__time { font-size: 15px; font-weight: 600; }
.dist__btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  margin-top: 10px;
  font-family: inherit;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .06em;
  padding: 14px 16px;
  text-align: center;
}
.dist__btn--dark { background: var(--navy); color: var(--white); }
.dist__btn--dark:hover { background: var(--blue); }
.dist__btn--lime { background: var(--lime); color: var(--navy); }
.dist__btn--lime:hover { background: var(--white); }
/* Circuito aún no publicado: mismo color, sin hover ni puntero */
.dist__btn:disabled { cursor: default; }
.dist__btn--dark:disabled:hover { background: var(--navy); }
.dist__btn--lime:disabled:hover { background: var(--lime); }

/* ==========================================================================
   INSCRIPCIONES
   ========================================================================== */
.inscripcion { background: var(--paper); color: var(--graphite); scroll-margin-top: 70px; }
.inscripcion__inner { padding-top: clamp(56px, 7vw, 112px); padding-bottom: clamp(56px, 7vw, 112px); }
.inscripcion__title { margin-bottom: 30px; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 3px solid var(--blue);
}
.tab {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  font-family: inherit;
  padding: 14px 22px;
  background: transparent;
  color: var(--graphite);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .04em;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.tab.is-on { background: var(--blue); color: var(--white); }
.tab:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }

/* Fechas con inscripciones cerradas: visibles pero no seleccionables */
.tab--pronto { cursor: not-allowed; color: #8A8C93; }
.tab__estado {
  align-self: center;
  font-stretch: 100%;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .14em;
  padding: 3px 7px 2px;
  border: 1px solid currentColor;
}
.tab__estado--abiertas { border-color: transparent; background: var(--lime); color: var(--navy); }
.tab--pronto.is-on { background: var(--paper-2); color: var(--graphite); box-shadow: inset 0 -3px 0 var(--graphite); }

.inscripcion__panel {
  background: #fff;
  border: 1px solid #D9DBD2;
  border-top: 0;
  min-height: 380px;
}
.inscripcion__ticketera[hidden], .inscripcion__pronto[hidden] { display: none; }
.inscripcion__ticketera, .inscripcion__pronto { min-height: inherit; }
.inscripcion__pronto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: inherit;
  padding: 40px 20px;
  text-align: center;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(10, 50, 255, .04) 14px 28px);
}
.inscripcion__ticketera iframe { display: block; width: 100%; height: 380px; border: 0; } /* efluj embed.js ajusta la altura */
.inscripcion__fecha { font-stretch: 125%; font-weight: 900; font-size: 22px; color: var(--blue); }
.inscripcion__badge {
  font-stretch: 125%;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--navy);
  background: var(--lime);
  padding: 7px 12px 6px;
  transform: skewX(-8deg);
}
.inscripcion__texto { max-width: 46ch; margin: 4px 0 10px; color: var(--graphite); line-height: 1.5; text-wrap: pretty; }
.inscripcion__cta { border: 0; cursor: pointer; font-family: inherit; }

/* ==========================================================================
   KIT
   ========================================================================== */
.kit { background: var(--lime); color: var(--navy); }
.kit__inner { padding-top: clamp(56px, 7vw, 112px); padding-bottom: clamp(56px, 7vw, 112px); }
.kit__title {
  margin: 0 0 40px;
  max-width: 1000px;
  font-size: clamp(32px, 4.6vw, 66px);
  line-height: .94;
  color: var(--blue);
}
.kit__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.kit__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
  line-height: 1.55;
  min-width: 0;
}
.kit__copy p { margin: 0; }
.kit__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  font-stretch: 112%;
  font-weight: 800;
  font-size: 16px;
}
.kit__items > div { background: var(--navy); color: var(--lime); padding: 13px 16px; }
.kit__h3 { margin: 14px 0 0; font-stretch: 125%; font-weight: 900; font-size: 19px; color: var(--blue); }
.kit__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.kit__card {
  background: var(--blue);
  color: var(--white);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: rotate(1.2deg);
  min-width: 0;
}
.kit__row { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.kit__row--first { padding-top: 0; }
.kit__row--last { padding-bottom: 0; border-bottom: 0; }
.kit__label { font-stretch: 125%; font-weight: 800; font-size: 12px; letter-spacing: .14em; color: var(--lime); }
.kit__value {
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
  margin-top: 6px;
}
.kit__value--sm { font-stretch: 112%; font-weight: 800; font-size: 22px; line-height: 1.2; }

/* ==========================================================================
   SPONSORS
   ========================================================================== */
.sponsors { background: var(--white); color: var(--graphite); }
.sponsors__inner { padding-top: clamp(56px, 7vw, 112px); padding-bottom: clamp(56px, 7vw, 112px); }
.sponsors__title {
  margin: 0 0 clamp(28px, 4vw, 56px);
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: .94;
}

/* Tablero de aliados: filas centradas separadas por una línea fina */
.aliados { display: flex; flex-direction: column; }
.aliados__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px clamp(32px, 6vw, 72px);
  padding: 28px 0 32px;
  border-top: 1px solid #DDE0E8;
}
.aliados__row:first-child { border-top: 0; padding-top: 0; }

.aliado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.aliado__tier {
  margin: 0;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--navy);
}
.aliado__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
}
.aliados__row--grid .aliado__logos { min-height: 84px; }

.logo { display: block; width: auto; max-width: 100%; object-fit: contain; }
.logo--marley { height: 130px; }
.logo--huawei { width: min(100%, 320px); height: auto; }
.logo--asics { height: 60px; }
.logo--tall { height: 84px; }
.logo--sm { height: 56px; }
.logo--lastlap { height: 60px; }
.logo--sporthub { width: 203px; max-width: 100%; padding: 0 26px; height: auto; }

@media (max-width: 560px) {
  .aliados__row--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aliados__row--grid > .aliado:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .logo--marley { height: 110px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}
.footer__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  z-index: -2;
}
.footer__tint { position: absolute; inset: 0; background: var(--blue); opacity: .82; z-index: -1; }
.footer__stripe {
  position: absolute;
  left: 0; top: 0;
  width: 40%;
  height: 36px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 96% 60%, 0 100%);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 120px) var(--gutter) clamp(48px, 5vw, 72px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; flex-direction: column; gap: 26px; }
.footer__title {
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(56px, 9vw, 140px);
  line-height: .84;
  letter-spacing: -.03em;
  color: var(--lime);
  transform: rotate(-3deg);
  transform-origin: left bottom;
}
.footer__logo { height: 72px; width: auto; align-self: flex-start; }
.footer__social { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__label { font-stretch: 125%; font-weight: 800; font-size: 13px; letter-spacing: .14em; }
.footer__ig {
  background: var(--lime);
  color: var(--navy);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 16px;
  padding: 15px 22px;
}
.footer__ig:hover { background: var(--white); color: var(--blue); }
.footer__credits { background: var(--graphite); text-align: center; font-size: 13px; padding: 11px 16px; }
.footer__credits a { color: var(--lime); }

/* ==========================================================================
   MODAL CIRCUITO
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 26, 107, .96);
  display: flex;
  flex-direction: column;
}
.modal[hidden] { display: none; }
.modal__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--gutter);
}
.modal__title { font-stretch: 125%; font-weight: 900; font-size: 18px; }
.modal__close {
  all: unset;
  cursor: pointer;
  background: var(--lime);
  color: var(--navy);
  font-family: inherit;
  font-stretch: 125%;
  font-weight: 900;
  font-size: 13px;
  padding: 12px 16px;
}
.modal__body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px 24px;
}
.modal__body img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ==========================================================================
   RESPONSIVE
   Breakpoints: 940px (tablet: menú hamburguesa), 560px (móvil), 400px (móvil chico)
   ========================================================================== */

/* Elementos que solo existen en móvil */
.nav__toggle { display: none; }
.lbl-short { display: none; }

/* ---------- Tablet y menor ---------- */
@media (max-width: 940px) {
  /* Nav: logo + CTA + hamburguesa en una sola línea */
  .nav__inner { flex-wrap: nowrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .nav__logo img { height: 38px; }
  .skew-btn--nav { margin-left: auto; white-space: nowrap; }
  .nav__toggle {
    all: unset;
    box-sizing: border-box;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    cursor: pointer;
  }
  .nav__toggle span { display: block; height: 3px; background: var(--white); transition: transform .2s, opacity .2s; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    flex-direction: column;
    gap: 0;
    padding: 0 var(--gutter) 12px;
    background: var(--blue);
    border-bottom: 3px solid var(--lime);
    font-size: 15px;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__link { display: block; padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .14); }

  /* Tabs de inscripción 2x2 */
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { padding: 13px 16px; flex-wrap: wrap; gap: 2px 10px; }

  /* Kit: ítems 2x2 */
  .kit__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Aliados: fila de 4 en 2x2 */
  .aliados__row--4 { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; }

  /* Área de toque cómoda */
  .bases-link { padding-top: 12px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 560px) {
  /* Títulos: escala con el ancho para no cortarse */
  .h2--xl,
  .h2--lg,
  .sponsors__title,
  .kit__title { font-size: clamp(26px, 8.6vw, 40px); }

  /* Hero */
  .hero__inner { gap: 40px; }
  .hero__copy { gap: 22px; }
  .hero__tags { flex-wrap: wrap; gap: 8px 12px; font-size: 12px; letter-spacing: .1em; }
  .hero__tags > span { white-space: nowrap; }
  .hero__stripe-top { height: 28px; }
  .hero__ctas { gap: 8px 14px; }
  .skew-btn--hero { font-size: 16px; padding: 17px 26px; }

  /* Fechas: tarjetas más compactas */
  .fechas__head { margin-bottom: 24px; }
  .fecha-card { gap: 16px; padding: 18px 18px 16px; }
  .fecha-card__day { font-size: 64px; }
  .fecha-card__mon { font-size: 24px; }

  /* Píldora de fecha: texto corrido */
  .fecha-pill { display: inline-block; line-height: 1.45; letter-spacing: .06em; }

  /* Circuito */
  .dist__num { font-size: 72px; }

  /* Inscripción */
  .inscripcion__panel { min-height: 300px; }
  .inscripcion__fecha { font-size: 19px; }
  .inscripcion__cta { font-size: 12px; padding: 14px 16px; }
  .inscripcion__pronto { padding: 32px 14px; }
  .inscripcion__badge { font-size: 11px; }

  /* Kit */
  .kit__title { margin-bottom: 28px; }
  .kit__card { transform: rotate(.8deg); }

  /* Footer */
  .footer__logo { height: 56px; }
}

/* ---------- Móvil chico ---------- */
@media (max-width: 400px) {
  .nav__inner { gap: 8px; }
  .nav__logo img { height: 30px; }
  .skew-btn--nav { font-size: 11px; padding: 11px 12px; }
  .nav__toggle { width: 40px; padding: 0 8px; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }

  .countdown { padding: 14px 16px 12px; }
  .countdown__label { font-size: 10px; letter-spacing: .1em; }
  .countdown__grid { gap: 12px; }
  .countdown__num { font-size: 28px; }
  .countdown__unit { font-size: 10px; letter-spacing: .08em; }

  .kit__items { grid-template-columns: minmax(0, 1fr); }
}
