/* 25 Vueltas · EKATO
   Estructura replicada de 99laps.com, adaptada al brand book EKATO:
   Helvetica Neue unica familia, negro #171614, blanco, lima #B5FF81, azul #080CDF. */

:root {
  --black: #171614;
  --white: #ffffff;
  --lime: #b5ff81;
  --blue: #080cdf;
  --grey: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.28);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 2.2vw, 32px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
section { scroll-margin-top: 80px; }

/* Tipografia display: Helvetica Neue Bold, mayusculas, muy apretada */
.display {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-size: clamp(40px, 6.4vw, 96px);
}
.display--xl { font-size: clamp(56px, 11vw, 180px); }
.display--md { font-size: clamp(30px, 4vw, 56px); }
.display--sm { font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -0.03em; }
.display--center { text-align: center; }
.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.center { display: flex; justify-content: center; }

/* Pildoras */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid var(--white);
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.pill--white { background: var(--white); color: var(--black); }
.pill--white:hover { background: var(--lime); border-color: var(--lime); }
.pill--outline { background: transparent; color: var(--white); }
.pill--outline:hover { background: var(--white); color: var(--black); }
.pill--sm { padding: 8px 16px; font-size: 11px; }

/* Cabecera superior */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
}
.topbar__links { display: flex; gap: 22px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.topbar__links a { opacity: .85; }
.topbar__links a:hover { opacity: 1; color: var(--lime); }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.lang { font-size: 11px; font-weight: 700; letter-spacing: .06em; }

/* Navegacion flotante */
.floatnav {
  position: fixed; left: 50%; bottom: 18px; z-index: 30;
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 18px;
  padding: 8px 10px 8px 22px;
  background: rgba(23, 22, 20, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
}
.floatnav.is-on { transform: translate(-50%, 0); }
.floatnav a:not(.pill):hover { color: var(--lime); }
.floatnav__logo {
  border: 2px solid var(--white); border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: -0.02em;
}

/* HERO */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: var(--blue);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,22,20,.35) 0%, rgba(23,22,20,.1) 40%, rgba(23,22,20,.55) 100%); }
.hero__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px;
}
.logo-pill {
  border: clamp(4px, .6vw, 8px) solid var(--white);
  border-radius: 999px;
  padding: .06em .42em .1em;
  font-size: clamp(44px, 8.5vw, 132px);
  font-weight: 700; letter-spacing: -0.055em; line-height: 1;
  text-transform: uppercase;
}
.hero__date { font-size: clamp(26px, 3.4vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.hero__place { font-size: 14px; font-weight: 500; }
.hero__side {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: 220px; font-size: 10.5px; line-height: 1.35; text-transform: uppercase; letter-spacing: .04em; font-weight: 500;
  text-align: right;
}
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 26px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.hero__scroll .arrow { display: inline-flex; width: 26px; height: 26px; border: 1px solid var(--white); border-radius: 50%; align-items: center; justify-content: center; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.hero__brands {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
}
.hero__brands-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.hero__wordmark { height: 22px; width: auto; }

/* INTRO */
.intro { padding: clamp(80px, 11vw, 160px) var(--gutter) clamp(60px, 8vw, 120px); }
.intro__text {
  max-width: 560px; margin: 44px auto 70px;
  text-align: center; text-transform: uppercase; font-size: 11.5px; letter-spacing: .03em; line-height: 1.55; font-weight: 500;
}
.facts {
  max-width: 1000px; margin: 34px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts__cell { padding: 14px 10px; text-align: center; font-size: 13px; font-weight: 500; }
.facts__cell + .facts__cell { border-left: 1px solid var(--line); }

/* CIRCUITO */
.circuit { padding: 40px var(--gutter) clamp(80px, 10vw, 140px); }
.circuit__row {
  display: grid; grid-template-columns: 1fr minmax(320px, 2.2fr) 1fr;
  align-items: center; gap: 30px;
}
.circuit__left p { font-size: clamp(15px, 1.4vw, 20px); font-weight: 500; line-height: 1.35; }
.circuit__left p:first-child { padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.clock { font-size: .9em; }
.circuit__right { list-style: none; font-size: 10.5px; line-height: 1.5; font-weight: 500; justify-self: end; max-width: 210px; }
.track { position: relative; aspect-ratio: 600 / 240; color: var(--white); }
.track__oval { position: absolute; inset: 0; width: 100%; height: 100%; }
.track__media {
  position: absolute; left: 22%; right: 22%; top: -20%; bottom: -20%;
  overflow: hidden; background: var(--black);
}
.track__media video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); }

.counter {
  margin-top: clamp(60px, 7vw, 100px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
}
.counter__unit { display: flex; flex-direction: column; }
.counter__unit--right { align-items: flex-end; text-align: right; }
.counter__label { font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.counter__num { font-size: clamp(90px, 16vw, 240px); font-weight: 700; letter-spacing: -0.06em; line-height: .82; font-variant-numeric: tabular-nums; }
.counter__mid { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 20px; font-size: 13px; }
.counter__mid small { font-size: 11px; text-align: center; color: var(--grey); }

/* Simulacion de eliminacion */
.elim { margin-top: clamp(70px, 8vw, 120px); }
.elim__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.elim__status { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.elim { max-width: 760px; margin-left: auto; margin-right: auto; }
.elim__grid { display: grid; grid-template-columns: repeat(20, 1fr); gap: 8px; }
.dot {
  aspect-ratio: 1; border-radius: 50%;
  background: var(--white);
  transition: background .35s, transform .35s, opacity .35s;
}
.dot.out { background: transparent; box-shadow: inset 0 0 0 1px var(--line); transform: scale(.7); }
.dot.win { background: var(--lime); transform: scale(1.15); }

/* CORREDORES */
.runners { padding: clamp(60px, 8vw, 120px) var(--gutter); }
.runners__text { margin: 18px 0 40px; font-size: 13px; max-width: 420px; }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.card {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px;
  background: linear-gradient(180deg, var(--blue) 0%, #050896 55%, var(--black) 100%);
}
.card img {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 86%; object-fit: cover; object-position: top;
  filter: grayscale(1) brightness(.72) contrast(1.45);
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.card__top {
  position: absolute; top: 6px; left: 0; right: 0; text-align: center;
  font-size: clamp(16px, 2vw, 28px); font-weight: 700; letter-spacing: -0.04em; text-transform: uppercase;
  color: rgba(255,255,255,.22); line-height: 1;
}
.card__name {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-size: clamp(22px, 2.6vw, 38px); font-weight: 700; letter-spacing: -0.05em; text-transform: uppercase; line-height: 1;
}
.card--you { background: var(--lime); color: var(--black); display: flex; align-items: center; justify-content: center; }
.card--you .card__top { color: rgba(23,22,20,.25); }
.card__cta { border: 2px solid var(--black); border-radius: 999px; padding: 8px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.card--more { display: none; }
.cards.is-open .card--more { display: block; }
.cards.is-open .card--you { display: flex; }
.runners .center { margin-top: 34px; }

/* INSCRIPCION */
.apply { padding: clamp(80px, 10vw, 140px) var(--gutter); }
.apply__lead { margin: 18px 0 70px; font-size: 14px; }
.paths { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1060px; }
.path { border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px 26px; display: flex; flex-direction: column; align-items: flex-start; }
.path h4 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.path__sub { margin-top: 18px; font-size: 13px; font-weight: 700; }
.path__text { margin-top: 6px; font-size: 12px; color: var(--grey); max-width: 420px; }
.path ul { list-style: none; margin: 18px 0 0; font-size: 12px; }
.path li { padding-left: 16px; position: relative; margin-bottom: 4px; }
.path li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.path__note { margin: 24px 0 14px; font-size: 11px; color: var(--grey); }
.path .pill { margin-top: auto; }

/* LUGAR */
.place { padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(60px, 8vw, 110px); }
.place__intro { max-width: 520px; font-size: clamp(18px, 2vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 50px; }
.place__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
.place__address { font-size: 13px; font-weight: 500; }
.place__small { margin-top: 10px; font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; }
.stats { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.stats div { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.stats div:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line); }
.stats div:nth-child(even) { padding-left: 14px; }
.stats b { font-size: clamp(26px, 3vw, 44px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stats span { font-size: 11px; margin-top: 4px; color: var(--grey); }
.place__photo { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--blue); }
.place__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; mix-blend-mode: luminosity; }
.place .display--xl { margin-top: clamp(50px, 7vw, 100px); }
.place__text { margin-top: 20px; max-width: 520px; font-size: 13px; }

/* PARTNERS */
.partners { padding: 60px var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.partners__row { display: flex; justify-content: center; align-items: center; gap: 60px; margin: 24px 0 18px; }
.partners__logo { height: 34px; width: auto; }
.partners__note { font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; }

/* FAQ */
.faq { padding: clamp(80px, 10vw, 140px) var(--gutter); max-width: 1100px; margin: 0 auto; }
.faq h2 { margin-bottom: 36px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 0; font-size: clamp(15px, 1.5vw, 19px); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--lime); }
.faq details p { padding: 0 0 20px; max-width: 760px; font-size: 13.5px; color: var(--grey); }

/* SPONSORING */
.sponsor { padding: clamp(60px, 8vw, 120px) var(--gutter) clamp(90px, 11vw, 160px); max-width: 1100px; margin: 0 auto; }
.sponsor__lead { margin-top: 26px; font-size: clamp(18px, 2vw, 26px); font-weight: 500; max-width: 600px; line-height: 1.2; }
.sponsor__text { margin-top: 18px; font-size: 13px; max-width: 620px; color: var(--grey); }
.sponsor__cta { margin-top: 36px; font-size: clamp(22px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.sponsor__cta a { display: block; color: var(--lime); }
.sponsor__cta a:hover { text-decoration: underline; }

/* FOOTER */
.footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px var(--gutter) 90px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey);
}
.footer__logo { height: 18px; width: auto; }
.footer a:hover { color: var(--white); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .floatnav a:not(.floatnav__logo):not(.pill) { display: none; }
  .floatnav { padding: 8px 8px 8px 8px; gap: 10px; }
}
@media (max-width: 900px) {
  .topbar__links { display: none; }
  .hero__side { display: none; }
  .circuit__row { grid-template-columns: 1fr; gap: 50px; }
  .circuit__right { justify-self: start; max-width: none; }
  .track { margin: 0 4%; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .place__grid { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero__brands { left: auto; right: var(--gutter); transform: none; }
  .hero__scroll { font-size: 0; gap: 0; }
  .hero__scroll .arrow { font-size: 12px; }
  .facts { grid-template-columns: 1fr; }
  .facts__cell + .facts__cell { border-left: 0; border-top: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .elim__grid { grid-template-columns: repeat(10, 1fr); gap: 5px; }
  .counter__mid small { font-size: 9.5px; }
  .footer { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll .arrow { animation: none; }
}
