@font-face { font-family: "A4Speed"; src: url("../assets/fonts/A4SPEED-Bold.ttf") format("truetype"); font-weight: 400; font-display: swap; }

/* =========================================================
   VUELTA A LOS MOLINOS 2027 — estilos
   Paleta y tipografía del Resumen de Marca (rojo #ef2925, azul #060658, celeste #9dd1d6, A4 SPEED)
   ========================================================= */
:root {
  --ink: #04042a;
  --ink-2: #0a0a3d;
  --ink-3: #141455;
  --paper: #f2f8f9;
  --paper-2: #dcedef;
  --accent: #ef2925;
  --navy: #060658;
  --sky: #9dd1d6;
  --accent-2: #ff6b4a;
  --line: rgba(242, 248, 249, .14);
  --muted: rgba(242, 248, 249, .62);

  --f-brand: "A4Speed", "Anton", Impact, sans-serif;
  --f-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --f-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;

  --wrap: min(1240px, 100% - clamp(32px, 6vw, 96px));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { width: var(--wrap); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- tipografía utilitaria ---------- */
.eyebrow {
  font-family: var(--f-cond);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: .8em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--center { display: flex; justify-content: center; }
.eyebrow--dark { color: var(--ink); }
.title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .005em;
  margin-top: .25em;
}
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* split text */
.split-line { display: inline-block; vertical-align: top; overflow: hidden; padding: .16em 0 .04em; margin: -.16em 0 -.04em; }
.split-line > span { display: inline-block; will-change: transform; }
.word { display: inline-block; white-space: pre; }

/* ---------- botones ---------- */
.btn {
  --bh: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  height: var(--bh); padding: 0 1.8em;
  border-radius: 999px;
  font-family: var(--f-cond); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .12em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  cursor: pointer; border: 0;
}
.btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent::before { background: var(--paper); }
.btn--ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { --bh: 42px; font-size: .9rem; padding: 0 1.3em; }
.btn--lg { --bh: 60px; }
.btn--xl { --bh: 76px; font-size: 1.35rem; padding: 0 2.4em; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--ink);
  pointer-events: none;
}
.loader__inner { text-align: center; color: var(--paper); }
.loader__icon { width: 92px; margin: 0 auto 18px; animation: spin 1.6s linear infinite; }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader__count { font-family: var(--f-display); font-size: 3.4rem; line-height: 1; }
.loader__label { font-family: var(--f-cond); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; color: var(--muted); margin-top: 10px; }
.loader__curtain { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px clamp(16px, 3vw, 48px);
  transition: background .5s var(--ease), padding .5s var(--ease), transform .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(4, 4, 42, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-block: 10px;
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { height: 46px; width: auto; transition: height .5s var(--ease); }
.nav.is-scrolled .nav__logo img { height: 38px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-family: var(--f-cond); font-weight: 600; font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px 28px 40px;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-family: var(--f-display); font-size: clamp(2.6rem, 12vw, 4rem); text-transform: uppercase; line-height: 1.1; }
.menu .btn { align-self: flex-start; }

@media (max-width: 900px) {
  .nav { gap: 12px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__burger {
    display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; border-radius: 50%;
    background: transparent; border: 1.5px solid var(--line); cursor: pointer; padding: 0;
  }
  .nav__burger span { width: 18px; height: 2px; background: var(--paper); transition: transform .4s var(--ease); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-start; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__sky {
  position: absolute; inset: 0; z-index: -5;
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(239, 41, 37, .55) 0%, rgba(239, 41, 37, 0) 55%),
    linear-gradient(180deg, #020218 0%, #060658 34%, #33206e 58%, #a3243f 80%, #ef4a3a 100%);
}
.hero__stars {
  position: absolute; inset: 0 0 45% 0; z-index: -4; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 10%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 6%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 38%, #fff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .25; } }
.hero__sun {
  position: absolute; z-index: -4;
  left: 50%; bottom: 34%;
  width: min(60vw, 720px); aspect-ratio: 1;
  translate: -50% 50%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe0cc 0%, #ff7a55 30%, rgba(239, 41, 37, .35) 52%, rgba(239, 41, 37, 0) 70%);
  filter: blur(2px);
}
.hero__layer { position: absolute; left: 0; width: 100%; z-index: -3; }
.hero__layer--far { bottom: 18%; height: 34vh; fill: #2c1650; opacity: .9; }
.hero__layer--turbines { bottom: 4%; height: 56vh; z-index: -2; }
.hero__layer--turbines .ridge { fill: #120838; }
.hero__layer--turbines .t-tower,
.hero__layer--turbines .t-rotor path { fill: #120838; }
.hero__layer--turbines .t-rotor circle.hub { fill: #120838; }
.hero__layer--near { bottom: -2px; height: 26vh; z-index: -1; fill: var(--ink); }
.t-rotor { transform-box: fill-box; transform-origin: center; animation: spin var(--spd, 6s) linear infinite; }
.t-light { fill: #ff3b30; animation: blink 2.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .1; } }

.hero__content {
  position: relative;
  padding-top: clamp(96px, 13vh, 150px);
  padding-inline: 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(14px, 2.2vh, 26px);
}
.hero__edition {
  font-family: var(--f-cond); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(6px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(239, 41, 37, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(239, 41, 37, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 41, 37, 0); } }
.hero__logo { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.6vh, 18px); }
.hero__icon { width: clamp(78px, 9vw, 128px); filter: drop-shadow(0 10px 30px rgba(239, 41, 37, .45)); animation: spin 14s linear infinite; }
.hero__wordmark { width: clamp(250px, 30vw, 430px); height: auto; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .45)); }
.hero__date { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); font-family: var(--f-display); text-transform: uppercase; line-height: .85; }
.hero__days { display: flex; align-items: center; gap: .1em; font-size: clamp(4.4rem, 11vw, 9.5rem); color: var(--paper); text-shadow: 0 8px 40px rgba(0, 0, 0, .35); font-family: var(--f-brand); }
.hero__days em { font-style: normal; color: var(--accent); font-size: .55em; margin: 0 .08em; }
.hero__month { display: flex; flex-direction: column; align-items: flex-start; text-align: left; font-family: var(--f-brand); }
.hero__month strong { font-weight: 400; font-size: clamp(2rem, 4.6vw, 4rem); }
.hero__month small { font-size: clamp(2rem, 4.6vw, 4rem); color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.countdown { display: flex; gap: clamp(8px, 1.4vw, 14px); margin-top: 4px; }
.countdown > div {
  min-width: 74px; padding: 10px 8px 8px; border-radius: 14px;
  background: rgba(4, 4, 42, .45); box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center;
}
.countdown b {  font-weight: 400; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; font-family: var(--f-brand); }
.countdown span { font-family: var(--f-cond); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-cond); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 1.5px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: scrollLine 1.8s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

@media (max-width: 600px) {
  .hero__date { flex-direction: column; gap: 4px; }
  .hero__month { flex-direction: row; gap: .3em; align-items: baseline; }
  .countdown > div { min-width: 62px; }
  .hero__edition { letter-spacing: .16em; font-size: .78rem; white-space: nowrap; }
  .countdown b { font-size: 1.5rem; }
  .hero__scroll { display: none; }
  .hero__content { padding-bottom: 120px; }
}

/* ---------- ticker ---------- */
.ticker {
  background: var(--accent); color: var(--ink);
  overflow: hidden; padding: 18px 0;
  transform: rotate(-1.5deg) scale(1.03);
  position: relative; z-index: 2;
  margin-top: -1px;
}
.ticker__track { display: flex; width: max-content; align-items: center; gap: 28px; white-space: nowrap; will-change: transform; }
.ticker span { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.6rem); text-transform: uppercase; }
.ticker i { font-style: normal; font-size: 1.4rem; }

/* ---------- intro ---------- */
.intro { padding: clamp(110px, 16vw, 220px) 0 clamp(80px, 12vw, 160px); }
.intro__text {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.05;
  margin-top: 28px; max-width: 18ch;
  max-width: 1100px;
}
.intro__text .word { opacity: .14; transition: none; }
.intro__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.intro__pills span {
  font-family: var(--f-cond); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line);
}

/* ---------- distancias ---------- */
.distances { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); color: var(--ink); border-radius: 36px 36px 0 0; position: relative; z-index: 1; }
.distances .eyebrow { color: var(--accent); }
.dist-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; }
.dist-card {
  position: relative; overflow: hidden;
  background: #fff; border-radius: var(--radius);
  padding: 26px 26px 30px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 20px 50px -30px rgba(0,0,0,.25);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.dist-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.dist-card--main { background: var(--ink); color: var(--paper); }
.dist-card__top { display: flex; justify-content: space-between; align-items: center; }
.dist-card__idx { font-family: var(--f-cond); font-weight: 700; letter-spacing: .2em; opacity: .4; }
.dist-card__km { display: flex; align-items: baseline; gap: 8px;  line-height: .8; font-family: var(--f-brand); }
.dist-card__km b { font-weight: 400; font-size: clamp(6rem, 11vw, 10rem); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dist-card__km small { font-size: 2.2rem; color: var(--accent); }
.dist-card__route { width: 100%; height: 60px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; overflow: visible; }
.dist-card p { color: inherit; opacity: .72; max-width: 32ch; }
.tag {
  display: inline-block;
  font-family: var(--f-cond); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--ink);
}
.tag--outline { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .8; }

.extra-cats {
  margin-top: 46px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px;
  font-family: var(--f-cond); font-size: 1.25rem; font-weight: 600; text-align: center;
}
.extra-cats .muted { color: rgba(4, 4, 42,.55); }
.extra-cats__chips { display: flex; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .04em;
}
.chip svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

@media (max-width: 900px) {
  .dist-grid { grid-template-columns: 1fr; }
}

/* ---------- parejas ---------- */
.couples {
  position: relative; overflow: hidden;
  background: var(--accent); color: var(--ink);
  padding: clamp(100px, 13vw, 180px) 0;
}
.couples__bg { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 0; pointer-events: none; }
.couples__bg span {
  font-family: var(--f-display); text-transform: uppercase; white-space: nowrap;
  font-size: clamp(9rem, 26vw, 26rem); line-height: .85;
  color: transparent; -webkit-text-stroke: 2px rgba(4, 4, 42, .12);
  will-change: transform;
}
.couples .wrap { position: relative; }
.couples__badge {
  position: absolute; right: 0; top: -40px;
  width: clamp(120px, 14vw, 180px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.couples__badge svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.couples__badge text { font-family: var(--f-cond); font-weight: 700; font-size: 17px; letter-spacing: .2em; fill: var(--ink); }
.couples__badge b {
  width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--accent);
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 400; font-size: clamp(1rem, 1.6vw, 1.4rem); text-transform: uppercase;
}
.couples__title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.6rem, 12vw, 12rem); line-height: .86; margin-top: 18px; max-width: 10ch;
}
.couples__lead { font-size: clamp(1.1rem, 1.6vw, 1.45rem); font-weight: 500; max-width: 58ch; margin-top: 28px; }
.couples__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(48px, 6vw, 80px); }
.couples__block { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.couples__block h3 { font-family: var(--f-cond); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .95rem; color: var(--accent); margin-bottom: 22px; }
.modes { display: grid; gap: 10px; }
.modes li {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.modes li:hover { background: rgba(255,255,255,.05); transform: translateX(6px); }
.modes b { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.1rem); text-transform: uppercase; line-height: 1; }
.modes small { color: var(--muted); font-family: var(--f-cond); letter-spacing: .14em; text-transform: uppercase; }
.modes__icons { display: flex; }
.modes__icons i { width: 34px; height: 34px; border-radius: 50%; display: block; box-shadow: 0 0 0 3px var(--ink); }
.modes__icons i + i { margin-left: -10px; }
.modes__icons .m { background: var(--paper); }
.modes__icons .f { background: var(--accent); }
.ages { display: grid; gap: 22px; }
.ages li { position: relative; display: flex; align-items: baseline; gap: 8px; padding-bottom: 14px; }
.ages b { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); text-transform: uppercase; line-height: 1; }
.ages small { color: var(--muted); font-family: var(--f-cond); letter-spacing: .14em; text-transform: uppercase; }
.ages__bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--line); border-radius: 4px; overflow: hidden; }
.ages__bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; width: calc(var(--w) * 100%); transition: transform 1.4s var(--ease); }
.ages.is-in .ages__bar::after { --p: 1; }
.ages li:nth-child(2) .ages__bar::after { transition-delay: .15s; }
.ages li:nth-child(3) .ages__bar::after { transition-delay: .3s; }
.couples__claim {
  margin-top: clamp(48px, 6vw, 80px);
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1;
}
.couples__claim span { color: var(--paper); }

@media (max-width: 900px) {
  .couples__grid { grid-template-columns: 1fr; }
  .couples__badge { top: -70px; }
}

/* ---------- agenda ---------- */
.agenda { padding: clamp(100px, 12vw, 170px) 0; }
.timeline { position: relative; display: grid; gap: clamp(24px, 3vw, 40px); padding-left: clamp(36px, 6vw, 80px); }
.timeline__line { position: absolute; left: clamp(10px, 2vw, 24px); top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline__line i { position: absolute; inset: 0; background: linear-gradient(var(--accent), var(--accent-2)); transform-origin: top; transform: scaleY(0); }
.tl-item {
  position: relative;
  display: grid; grid-template-columns: minmax(170px, 260px) 1fr; gap: clamp(20px, 4vw, 60px); align-items: start;
  padding: clamp(26px, 3vw, 40px); border-radius: var(--radius);
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .5s var(--ease);
}
.tl-item:hover { background: var(--ink-3); }
.tl-item::before {
  content: ""; position: absolute; top: 42px;
  left: calc(-1 * clamp(36px, 6vw, 80px) + clamp(10px, 2vw, 24px) - 7px);
  width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--accent);
}
.tl-item--main { background: linear-gradient(135deg, #3a0a1e 0%, var(--ink-2) 60%); box-shadow: inset 0 0 0 1.5px rgba(239, 41, 37,.5); }
.tl-item--main::before { background: var(--accent); }
.tl-item__date { display: flex; align-items: flex-start; gap: 14px; font-family: var(--f-display); text-transform: uppercase; line-height: .85; }
.tl-item__day { font-size: clamp(4.5rem, 8vw, 7rem); color: var(--accent); font-family: var(--f-brand); }
.tl-item__month { font-size: clamp(1.6rem, 2.6vw, 2.4rem); padding-top: .2em; }
.tl-item__month small { font-family: var(--f-cond); font-size: .9rem; letter-spacing: .2em; color: var(--muted); }
.tl-item__body h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1; margin: 14px 0 12px; }
.tl-item__body p { color: var(--muted); max-width: 62ch; }
.tl-list { display: grid; gap: 10px; }
.tl-list li { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid var(--line); }
.tl-list li:first-child { border-top: 0; padding-top: 4px; }
.tl-list b { font-family: var(--f-cond); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; }
.tl-list small { color: var(--muted); }
@media (max-width: 760px) {
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- experiencia ---------- */
.experience { position: relative; height: clamp(520px, 90vh, 900px); overflow: hidden; display: grid; place-items: center; }
.experience__media { position: absolute; inset: -15% 0; }
.experience__media .ph { height: 100%; border-radius: 0; }
.experience__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(4, 4, 42,.25) 30%, rgba(4, 4, 42,.35) 70%, var(--ink) 100%); }
.experience__text { position: relative; width: var(--wrap); text-align: center; }
.experience__quote { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 5.6rem); line-height: .98; max-width: 16ch; margin-inline: auto; text-shadow: 0 6px 40px rgba(0,0,0,.4); }
.experience__quote .word { opacity: .2; }

/* ---------- placeholders de foto ---------- */
.ph {
  --h: 20;
  position: relative; width: 100%; height: 100%; min-height: 100%;
  border-radius: inherit; overflow: hidden;
  background:
    radial-gradient(80% 60% at 70% 20%, hsl(calc(var(--h) + 20) 90% 65% / .55), transparent 60%),
    linear-gradient(180deg, hsl(var(--h) 45% 32%) 0%, hsl(calc(var(--h) - 10) 35% 18%) 100%);
  display: grid; place-items: center; place-content: center;
}
.ph::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: hsl(calc(var(--h) - 10) 30% 10% / .85);
  clip-path: polygon(0 60%, 14% 38%, 28% 52%, 44% 22%, 58% 46%, 72% 30%, 86% 50%, 100% 34%, 100% 100%, 0 100%);
}
.ph span {
  position: relative; z-index: 1;
  font-family: var(--f-cond); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem;
  color: rgba(255,255,255,.7); padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.25);
  text-align: center;
}

/* ---------- inscripción ---------- */
.signup { padding: clamp(100px, 12vw, 170px) 0; background: radial-gradient(70% 50% at 50% 0%, rgba(239, 41, 37,.16), transparent 70%); }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 18px; }
.price {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: clamp(28px, 3vw, 40px);
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .6s var(--ease);
}
.price:hover { transform: translateY(-6px); }
.price--hl { background: var(--paper); color: var(--ink); box-shadow: none; }
.price__label { font-family: var(--f-cond); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .95rem; opacity: .75; }
.price__value { display: flex; align-items: flex-start; gap: 6px;  line-height: .9; font-family: var(--f-brand); }
.price__value small { font-size: 2rem; color: var(--accent); margin-top: .2em; }
.price__value b { font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.9rem); white-space: nowrap; }
.price p { opacity: .6; }
.price__ribbon {
  position: absolute; top: 22px; right: -42px; transform: rotate(35deg);
  background: var(--accent); color: var(--ink); padding: 6px 50px;
  font-family: var(--f-cond); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
}
.installments {
  margin: 30px auto 0; max-width: 858px;
  display: flex; align-items: center; gap: 22px;
  padding: 22px 30px; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
}
.installments__num {  font-size: 4.4rem; line-height: .8; color: var(--accent); font-family: var(--f-brand); }
.installments p { font-size: 1.15rem; }
.installments b { font-family: var(--f-cond); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .06em; }
.signup__cta { display: flex; justify-content: center; margin-top: 54px; }
@media (max-width: 760px) {
  .prices { grid-template-columns: 1fr; }
  .btn--xl { --bh: 66px; font-size: 1.1rem; padding: 0 1.6em; }
}

/* ---------- galería teaser ---------- */
.gallery-teaser { position: relative; padding-top: clamp(60px, 8vw, 100px); }
.gallery-teaser__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 48px); overflow: hidden; }
.gallery-teaser__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.gallery-teaser__head .title { font-size: clamp(3rem, 7vw, 6rem); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-cond); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 2px solid var(--accent);
}
.link-arrow svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }
.gallery-teaser__track { display: flex; gap: 18px; padding-inline: max(calc((100vw - 1240px) / 2), clamp(16px, 3vw, 48px)); width: max-content; align-items: center; will-change: transform; }
.gt-item { margin: 0; flex: none; width: clamp(260px, 32vw, 480px); }
.gt-item .ph { aspect-ratio: 4 / 3; height: auto; border-radius: var(--radius); }
.gt-item--tall .ph { aspect-ratio: 3 / 4; width: 78%; }
.gt-item--tall { width: clamp(220px, 24vw, 380px); }
.gt-item--tall .ph { width: 100%; }
.gt-item figcaption { margin-top: 12px; font-family: var(--f-cond); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; color: var(--muted); }
.gt-item .ph { transition: transform .8s var(--ease); }
.gt-item:hover .ph { transform: scale(.97); }
.gt-more {
  aspect-ratio: 1; width: clamp(220px, 22vw, 340px); border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); text-transform: uppercase; text-align: center; line-height: 1;
  transition: transform .6s var(--ease);
}
.gt-more svg { width: 40px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.gt-more:hover { transform: scale(1.06) rotate(-4deg); }
@media (max-width: 760px) {
  .gallery-teaser__pin { height: auto; padding-bottom: 60px; }
  .gallery-teaser__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .gallery-teaser__track::-webkit-scrollbar { display: none; }
  .gt-item { scroll-snap-align: center; width: 78vw; }
  .gt-item--tall { width: 62vw; }
  .gt-more { width: 56vw; }
}

/* ---------- sponsors ---------- */
.sponsors { padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.logos { margin-top: 44px; display: grid; gap: 18px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos__row { display: flex; overflow: hidden; }
.logos__track { display: flex; gap: 18px; padding-right: 18px; flex: none; animation: marquee 32s linear infinite; }
.logos__row--rev .logos__track { animation-direction: reverse; animation-duration: 38s; }
.logos:hover .logos__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.logo-ph, .logo-img {
  flex: none; width: clamp(170px, 18vw, 240px); height: clamp(84px, 9vw, 110px);
  display: grid; place-items: center; border-radius: 16px;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .08em; color: rgba(242, 248, 249,.35);
  transition: color .4s var(--ease), background .4s var(--ease);
}
.logo-ph:hover { color: var(--paper); background: var(--ink-3); }
.logo-img { background: #fff; box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); width: clamp(200px, 22vw, 290px); height: clamp(100px, 10vw, 130px); transition: transform .5s var(--ease); }
.logo-img:hover { transform: translateY(-4px) scale(1.03); }
.logo-img img { max-width: 72%; max-height: 62%; object-fit: contain; }

/* ---------- footer ---------- */
.footer { background: var(--paper); color: var(--ink); padding-top: clamp(80px, 10vw, 140px); border-radius: 36px 36px 0 0; }
.footer__claim p { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2.6rem, 8.4vw, 8.4rem); line-height: 1.02; }
.footer__claim .word { opacity: .15; }
.footer__bottom { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: clamp(60px, 8vw, 110px); padding: 34px 0; border-top: 1px solid rgba(4, 4, 42,.15); }
.footer__logo { height: 64px; width: auto; }
.footer__info { flex: 1; min-width: 220px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); transition: background .4s var(--ease), transform .4s var(--ease); }
.footer__social a:hover { background: var(--accent); color: var(--ink); transform: translateY(-4px); }
.footer__social svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.footer__social .fill { fill: currentColor; stroke: none; }
.footer__legal { display: flex; justify-content: space-between; padding: 22px 0 30px; font-size: .9rem; opacity: .6; border-top: 1px solid rgba(4, 4, 42,.15); }

/* ---------- estados de animación iniciales (solo con JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); }
.js [data-card] { opacity: 0; transform: translateY(60px); }
.js [data-hero-item] { opacity: 0; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js [data-card], .js [data-hero-item] { opacity: 1; transform: none; }
  .intro__text .word, .experience__quote .word, .footer__claim .word { opacity: 1; }
}

/* =========================================================
   GALERÍA
   ========================================================= */
.page-gallery .nav { background: rgba(4, 4, 42, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.page-gallery .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.g-hero { padding: clamp(130px, 18vh, 200px) 0 clamp(30px, 4vw, 50px); background: radial-gradient(80% 60% at 80% 0%, rgba(239, 41, 37,.18), transparent 70%); }
.g-back { display: flex; width: max-content; margin-bottom: 28px; font-family: var(--f-cond); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; color: var(--muted); transition: color .3s; }
.g-back:hover { color: var(--accent); }
.g-title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(4.5rem, 16vw, 15rem); line-height: .85; margin-top: 10px; }
.g-sub { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin-top: 18px; }
.g-tabs { position: relative; display: inline-flex; gap: 4px; margin-top: 44px; padding: 6px; border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow-x: auto; }
.g-tab { position: relative; z-index: 1; border: 0; background: none; color: var(--paper); cursor: pointer; padding: 14px 24px; border-radius: 999px; font-family: var(--f-cond); font-weight: 700; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transition: color .4s var(--ease); }
.g-tab.is-active { color: var(--ink); }
.g-tabs__pill { position: absolute; left: 6px; top: 6px; bottom: 6px; border-radius: 999px; background: var(--accent); transition: transform .6s var(--ease), width .6s var(--ease); }
.g-subtabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.g-subtabs[hidden] { display: none; }
.g-chip { border: 0; cursor: pointer; padding: 10px 18px; border-radius: 999px; background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-family: var(--f-cond); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: background .3s, color .3s, box-shadow .3s; }
.g-chip:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.g-chip.is-active { background: var(--paper); color: var(--ink); box-shadow: none; }
.g-grid-wrap { padding: 20px 0 clamp(80px, 10vw, 140px); }
.g-grid { columns: 3 300px; column-gap: 16px; }
.g-item { position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; border-radius: 14px; overflow: hidden; }
.g-item img, .g-item .ph { width: 100%; height: auto; display: block; transition: transform 1s var(--ease), filter .6s; }
.g-item .ph { min-height: 0; }
.g-item:hover img, .g-item:hover .ph { transform: scale(1.06); }
.g-item__zoom { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-family: var(--f-display); font-size: 1.5rem; transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease); }
.g-item:hover .g-item__zoom, .g-item:focus-visible .g-item__zoom { transform: scale(1) rotate(0); }
.g-empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 1.2rem; }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(6, 8, 8, .94); backdrop-filter: blur(10px); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; grid-column: 2; }
.lb__media { width: min(100%, 1200px); display: grid; place-items: center; }
.lb__media img, .lb__media .ph { max-height: 80vh; width: auto; max-width: 100%; border-radius: 12px; }
.lb__media .ph { height: 80vh; width: auto; }
.lb__fig figcaption { font-family: var(--f-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-size: .9rem; }
.lb__nav, .lb__close { border: 0; cursor: pointer; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--paper); font-size: 1.4rem; justify-self: center; transition: background .3s, color .3s; }
.lb__nav:hover, .lb__close:hover { background: var(--accent); color: var(--ink); }
.lb__close { position: absolute; top: 20px; right: 20px; }
.lb__count { position: absolute; top: 34px; left: 30px; font-family: var(--f-display); font-size: 1.2rem; letter-spacing: .08em; }
@media (max-width: 700px) {
  .lb { grid-template-columns: 1fr; padding: 70px 12px; }
  .lb__fig { grid-column: 1; }
  .lb__nav { position: absolute; bottom: 24px; }
  .lb__nav--prev { left: 24px; } .lb__nav--next { right: 24px; }
  .lb__media .ph { height: auto; width: 100%; }
}
.footer--slim { padding-top: 0; border-radius: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 26px); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5);
  transition: transform .4s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: waPulse 2.4s infinite; }
@keyframes waPulse { 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.footer__contact { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.footer__contact a:hover { color: var(--accent); }
.footer__social .fill-icon { fill: currentColor; stroke: none; }
.price--hl .price__label { padding-right: 76px; }
.ages__km { margin-left: auto; align-self: center; font-family: var(--f-brand); font-size: clamp(1.1rem, 1.6vw, 1.4rem); color: var(--ink); background: var(--accent); padding: 6px 12px 4px; border-radius: 999px; white-space: nowrap; }
.extra-cats__chips { flex-wrap: wrap; justify-content: center; }

/* fotos reales */
.experience__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gt-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: transform .8s var(--ease); }
.gt-item--tall img { aspect-ratio: 3 / 4; }
.gt-item:hover img { transform: scale(.97); }
@media (max-width: 480px) {
  .g-tabs { display: flex; width: 100%; }
  .g-tab { flex: 1; padding: 12px 8px; font-size: .78rem; letter-spacing: .06em; }
}
