/* gamba di legno · cycling club
   Marca: paleta del maillot, Space Grotesk, logotipo, escudo y mapa en vectorial.
   Presencia: logotipo a todo el ancho, píldoras flotantes, historias apiladas, marquesina. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/spacegrotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #E67A44;
  --ink: #3A4843;
  --ink-deep: #26302d;
  --lime: #E5EDC6;
  --cream: #F3EBE2;
  --cream-2: #EAE1D6;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --radius: 18px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --fab-h: 46px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; background: var(--ink-deep); }
html.is-smooth { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  animation: page-in .6s var(--ease) both;
}
body.menu-open { overflow: hidden; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Grano de tela, como el maillot */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .27 0 0 0 0 .25 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Logotipos vectoriales recoloreables (máscara + currentColor) */
.m {
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: left center; mask-position: left center;
  -webkit-mask-size: contain; mask-size: contain;
}
.m-wordmark { aspect-ratio: 210.97 / 84.47; -webkit-mask-image: url("/img/wordmark.svg?v=2"); mask-image: url("/img/wordmark.svg?v=2"); }
.m-logo     { aspect-ratio: 191.97 / 123.26; -webkit-mask-image: url("/img/logo-club.svg?v=2"); mask-image: url("/img/logo-club.svg?v=2"); }
.m-worth    { aspect-ratio: 170.72 / 101.67; -webkit-mask-image: url("/img/worth-the-effort.svg?v=2"); mask-image: url("/img/worth-the-effort.svg?v=2"); }
.m-badge    { aspect-ratio: 165.12 / 107.67; -webkit-mask-image: url("/img/badge-desierto.svg?v=2"); mask-image: url("/img/badge-desierto.svg?v=2"); }

.eyebrow {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
}

/* ───────── Píldoras (botones) ───────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.pill:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pill svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.pill:hover svg { transform: translateX(3px); }
.pill--solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pill--solid:hover { background: var(--orange); border-color: var(--orange); color: var(--ink-deep); }
.pill--cta { background: var(--orange); color: var(--ink-deep); border-color: var(--orange); }
.pill--cta:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: var(--cream); }
.pill--light { color: var(--cream); }
.pill--light:hover { background: var(--cream); color: var(--ink-deep); border-color: var(--cream); }
.pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

/* ───────── Marca arriba (fija) ───────── */
.top {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto 0;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.top__brand {
  display: block;
  pointer-events: auto;
  width: 86px;
  color: var(--ink);
  margin: -9px -13px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(243, 235, 226, .62);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 18px -10px rgba(20, 28, 26, .35);
  transition: opacity .4s, background-color .25s;
}
.top__brand:hover { background: rgba(243, 235, 226, .9); }
body.home .top__brand { opacity: 0; pointer-events: none; }
html.past-hero body.home .top__brand { opacity: 1; pointer-events: auto; }

/* ───────── Píldoras flotantes abajo (menú y acción) ───────── */
.fab {
  position: fixed;
  z-index: 70;
  left: 0; right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom));
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
}
.fab > * { pointer-events: auto; }
.fab .pill {
  min-height: var(--fab-h);
  background: var(--cream);
  color: var(--ink);
  border-color: rgba(58, 72, 67, .22);
  box-shadow: 0 14px 34px -14px rgba(20, 28, 26, .55);
}
.fab .pill:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.fab .pill--cta { background: var(--orange); color: var(--ink-deep); border-color: transparent; }
.fab .pill--cta:hover { background: var(--ink-deep); color: var(--cream); }
body.menu-open .fab { opacity: 0; pointer-events: none; transform: translateY(10px); }
body.menu-open .fab > * { pointer-events: none; }

/* ───────── Menú a pantalla completa ───────── */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  background: var(--ink-deep);
  color: var(--cream);
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .45s var(--ease); }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__brand { width: 86px; color: var(--cream); }
.menu__grid {
  display: grid;
  gap: 40px;
  align-content: center;
  padding: 40px 0;
}
.menu__nav { display: grid; gap: 2px; counter-reset: m; }
.menu__nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .4em;
  width: fit-content;
  padding: .04em 0;
  font-size: clamp(2.4rem, 8.5vw, 6.6rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(36px);
  transition: transform .7s var(--ease-out), opacity .5s, color .25s;
  transition-delay: calc(var(--i, 0) * 55ms);
}
.menu__nav a::before {
  counter-increment: m;
  content: "0" counter(m);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--lime);
  opacity: .8;
  transform: translateY(-1.2em);
}
.menu__nav a:hover { color: var(--orange); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu__aside {
  display: grid;
  gap: 26px;
  align-content: end;
  font-size: .9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: transform .7s var(--ease-out) .25s, opacity .5s .25s;
}
.menu.is-open .menu__aside { opacity: 1; transform: none; }
.menu__aside .eyebrow { color: var(--lime); margin-bottom: 8px; display: block; }
.menu__list { list-style: none; padding: 0; display: grid; gap: 6px; }
.menu__list a { text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.menu__list a:hover { color: var(--orange); }
.menu__coords { font-size: .8rem; letter-spacing: .08em; line-height: 1.6; opacity: .8; }
.menu__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.menu__worth { width: clamp(120px, 14vw, 170px); color: var(--lime); }
.menu__tag { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
@media (min-width: 900px) {
  .menu__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); align-items: end; }
}

/* ───────── Telón entre páginas y arranque ───────── */
.veil {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--ink-deep);
  transform: translateY(101%);
  pointer-events: none;
}
.veil.is-in { transform: none; transition: transform .45s var(--ease); }

.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: var(--cream);
  color: var(--ink);
  animation: boot-out .7s var(--ease) 2.6s forwards;
}
.boot.is-done { animation: boot-out .7s var(--ease) forwards; }
.boot.is-off { display: none; }
.boot__mark { width: clamp(140px, 22vw, 260px); animation: boot-mark 1.2s var(--ease-out) both; }
.boot__line {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.boot__alt { font-variant-numeric: tabular-nums; }
@keyframes boot-mark { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes boot-out { to { transform: translateY(-100%); visibility: hidden; } }

/* Píldora que sigue al cursor sobre las tarjetas */
.cue {
  position: fixed;
  z-index: 80;
  left: 0; top: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
  transition: opacity .25s, transform .3s var(--ease);
  will-change: transform;
}
.cue.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cue svg { width: 14px; height: 14px; }

/* ───────── Cabecera de sección: etiqueta + píldora ───────── */
.sec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1.5px solid currentColor;
}
.sec__head .eyebrow { display: flex; align-items: center; gap: 14px; }
.sec__head .eyebrow small { font-weight: 500; letter-spacing: .12em; opacity: .6; }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      var(--cream) 0%, var(--cream) 24%,
      #ebeed0 42%, var(--lime) 54%,
      #9bb092 70%, #52665c 84%, var(--ink-deep) 100%);
}
.hero__fabric { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__fabric i {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  will-change: transform;
}
.hero__fabric i:nth-child(1) {
  width: 62vw; height: 52vw; left: -14vw; bottom: -14vw;
  background: radial-gradient(closest-side, #1e2926 0%, rgba(30,41,38,0) 100%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.hero__fabric i:nth-child(2) {
  width: 46vw; height: 36vw; left: 30vw; bottom: 12vw;
  background: radial-gradient(closest-side, var(--lime) 0%, rgba(229,237,198,0) 100%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.hero__fabric i:nth-child(3) {
  width: 52vw; height: 40vw; right: -14vw; bottom: -12vw;
  background: radial-gradient(closest-side, var(--ink) 0%, rgba(58,72,67,0) 100%);
  animation: drift-a 38s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a { to { transform: translate3d(5vw, -4vw, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-6vw, 3vw, 0) scale(1.12); } }

/* El mapa de la espalda del maillot, detrás del logotipo: plano 3D interactivo */
.topo3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 18%, #000 44%), linear-gradient(90deg, transparent 0%, #000 22%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 18%, #000 44%), linear-gradient(90deg, transparent 0%, #000 22%, #000 88%, transparent 100%);
  mask-composite: intersect;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  animation: topo-in 2s .3s var(--ease) both;
}
.topo3d.is-dragging { cursor: grabbing; }
.topo3d__plane { position: absolute; inset: 0; }
.topo3d__canvas { display: block; }
@keyframes topo-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  pointer-events: none;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: clamp(56px, 8vh, 88px) var(--gutter) calc(var(--fab-h) + 44px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.hero__logo {
  justify-self: center;
  width: min(100%, 155svh);
  color: var(--ink);
  -webkit-mask-position: center; mask-position: center;
  animation: hero-logo 1.3s .1s var(--ease-out) both;
}
@keyframes hero-logo {
  from { opacity: 0; transform: translateY(40px); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); }
}
.hero__foot {
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  margin-top: clamp(32px, 6vh, 80px);
  color: var(--cream);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.6;
  animation: rise .9s .5s var(--ease) both;
}
.hero__coords { white-space: nowrap; letter-spacing: .08em; text-transform: none; opacity: .9; }
.hero__tag { text-align: center; }
.hero__alt { text-align: right; opacity: .9; }
.hero__alt b { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.arr { display: inline-block; color: var(--orange); transition: transform .25s var(--ease); }
.stats {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stats li {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 10px 5px;
  border: 1.2px solid currentColor;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}
.stats--lg li { font-size: .78rem; padding: 7px 13px 6px; }
.story__meta {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .75;
}

/* ───────── Historias: tarjetas apiladas ───────── */
.stack {
  --stack-top: 84px;
  --card-h: min(calc(100svh - var(--stack-top) - var(--fab-h) - 52px), 780px);
  background: var(--cream);
  color: var(--ink);
  padding: 0 var(--gutter) clamp(72px, 10vw, 140px);
}
.stack > * { width: min(100%, var(--max)); margin-inline: auto; }
.stack__list { margin-top: 20px; display: grid; gap: 22px; }
.card {
  position: sticky;
  top: var(--stack-top);
  display: block;
  height: var(--card-h);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--cream);
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 -18px 50px -24px rgba(20, 28, 26, .6);
}
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out);
}
.card:hover .card__img { transform: scale(1.06); }
.card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 28, 26, .72) 0%, rgba(20, 28, 26, 0) 42%),
    linear-gradient(0deg, rgba(20, 28, 26, .78) 0%, rgba(20, 28, 26, 0) 50%);
}
.card__top, .card__bottom {
  position: absolute;
  left: 0; right: 0;
  padding: clamp(18px, 2.6vw, 34px) clamp(18px, 2.8vw, 38px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 24px;
}
.card__top { top: 0; }
.card__bottom { bottom: 0; align-items: flex-end; }
.card__n {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .85;
  padding-top: .35em;
}
.card__title {
  flex: 1 1 320px;
  font-size: clamp(1.45rem, 1rem + 2.1vw, 2.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 22ch;
}
.card__title b { display: block; }
.card__title span { display: block; font-weight: 500; font-size: .62em; letter-spacing: -.01em; margin-top: .35em; opacity: .9; max-width: 36ch; }
.card__meta { font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.card .stats { margin: 0; }
.card .stats li { border-color: rgba(243, 235, 226, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card__cta { border-color: rgba(243, 235, 226, .6); }
.card:hover .card__cta { background: var(--cream); color: var(--ink-deep); border-color: var(--cream); }
@media (max-width: 720px) {
  .stack { --stack-top: 20px; --card-h: min(74svh, 640px); }
  body.home .card__top { padding-top: 58px; } /* deja sitio a la marca fija */
  .card__n { display: none; }
  .card__bottom .card__cta { display: none; }
}

/* ───────── Marquesina ───────── */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  border-top: 1.5px solid currentColor;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker + .ticker { border-top: 0; padding-top: 0; }
.ticker__track {
  display: inline-flex;
  align-items: center;
  animation: ticker 46s linear infinite;
  will-change: transform;
}
.ticker--rev .ticker__track { animation-direction: reverse; animation-duration: 54s; }
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding-inline: .45em;
  font-size: clamp(1.8rem, 1rem + 4.2vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.ticker span::after { content: ""; width: .22em; height: .22em; border-radius: 50%; background: var(--orange); }
.ticker--rev span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.ticker--rev span::after { background: var(--ink); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ───────── Maillots ───────── */
.kit {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(80px, 11vw, 140px);
}
.kit > * { width: min(100%, var(--max)); margin-inline: auto; }
.kit__tickers { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.kit__lead {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  gap: 16px;
  align-items: end;
}
.kit__title {
  font-size: clamp(2rem, 1rem + 3.6vw, 4.4rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
  max-width: 14ch;
}
.kit__text { max-width: 44ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.kit__grid {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .kit__lead { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

.jersey {
  --bg: var(--lime);
  --tone: var(--ink);
  --meta: #B5532A;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  padding: clamp(26px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.jersey--desierto { --bg: #E5E1CB; }
.jersey--tiedye { --bg: #E9DDF0; --tone: #2E2E5C; --meta: #474785; --year: #54549C; }
.jersey--brocoli { --bg: #D3E6DC; --tone: #1E4733; --meta: #1E4733; --year: #24543C; }
.jersey__year {
  position: absolute;
  right: -.04em;
  top: -.14em;
  font-size: clamp(7rem, 15vw, 14rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--year, var(--tone));
  opacity: .1;
  pointer-events: none;
}
.jersey__body { position: relative; display: grid; gap: 12px; }
.jersey__meta {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--meta);
}
.jersey__name {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--tone);
}
.jersey__text { max-width: 52ch; font-size: clamp(1rem, .95rem + .2vw, 1.1rem); }
.jersey__pics {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 16px);
}
.jersey__pics img {
  width: auto;
  height: clamp(220px, 28vw, 340px);
  filter: drop-shadow(0 16px 20px rgba(43, 54, 50, .25));
  transition: transform .6s var(--ease);
}
.jersey:hover .jersey__pics img:first-child { transform: rotate(-2deg) translateY(-4px); }
.jersey:hover .jersey__pics img:last-child { transform: rotate(2deg) translateY(-4px); }
.jersey--desierto .jersey__pics img { height: clamp(240px, 30vw, 400px); }

.jersey--next {
  --bg: var(--ink-deep);
  --tone: var(--cream);
  --meta: var(--lime);
  color: var(--cream);
  background:
    radial-gradient(60% 80% at 90% 10%, rgba(229, 237, 198, .14), transparent 70%),
    var(--ink-deep);
}
.jersey--next .jersey__text { color: #E8E1D6; }
.jersey__next { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 3vw, 32px); }
.jersey__next .jersey__body { flex: 1 1 280px; max-width: 560px; }
.jersey__ghost {
  flex: none;
  width: 150px;
  height: 170px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--lime);
  border-radius: 20px;
  color: var(--lime);
}
.jersey__ghost svg { width: 96px; height: 96px; }
.jersey__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink-deep);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .25s, color .25s;
}
.jersey__cta svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.jersey__cta:hover { background: var(--cream); color: var(--ink-deep); }
.jersey__cta:hover svg { transform: translateX(4px); }

@media (min-width: 900px) {
  .kit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jersey--wide { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .jersey--wide > .jersey__body { flex: 1 1 320px; }
  .jersey--wide > .jersey__pics { flex: 1 1 420px; }
  .jersey--next { justify-content: space-between; gap: 32px; }
  .jersey--next .jersey__cta { align-self: center; }
}
@media (max-width: 480px) {
  .jersey__ghost { width: 110px; height: 124px; }
  .jersey__ghost svg { width: 70px; height: 70px; }
}

/* ───────── Podcast (portada): lista + imagen fija ───────── */
.pod {
  background: var(--cream);
  color: var(--ink);
  padding: 0 var(--gutter) clamp(80px, 11vw, 150px);
}
.pod > * { width: min(100%, var(--max)); margin-inline: auto; }
.pod__grid {
  margin-top: 12px;
  display: grid;
  gap: 32px;
  align-items: start;
}
.pod__list { display: grid; }
.pod__item {
  display: grid;
  gap: 8px;
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid rgba(58, 72, 67, .22);
  text-decoration: none;
  transition: opacity .35s var(--ease), padding-left .35s var(--ease);
}
.pod__item small { font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.pod__item b {
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
}
.pod__list:hover .pod__item:not(:hover) { opacity: .3; }
.pod__item:hover { padding-left: 10px; }
.pod__item:hover b { color: var(--orange); }
.pod__pic {
  position: sticky;
  top: 100px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-deep);
}
.pod__pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .5s var(--ease), transform .9s var(--ease-out);
}
.pod__pic img.is-on { opacity: 1; transform: none; }
.pod__pic svg {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
@media (min-width: 900px) {
  .pod__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); }
}
@media (max-width: 899px) {
  .pod__pic { order: -1; position: relative; top: auto; }
}

/* ───────── Pie ───────── */
.foot {
  position: relative;
  padding: clamp(56px, 8vw, 110px) var(--gutter) calc(var(--fab-h) + 40px + env(safe-area-inset-bottom));
  background: var(--ink-deep);
  color: var(--cream);
  border-top: 1px solid rgba(243,235,226,.12);
  overflow: hidden;
}
.foot > * { width: min(100%, var(--max)); margin-inline: auto; }
.foot__big {
  width: min(100%, var(--max));
  color: var(--cream);
  -webkit-mask-position: center; mask-position: center;
  margin-bottom: clamp(40px, 6vw, 90px);
}
.foot__cols {
  display: grid;
  gap: 36px 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(243,235,226,.3);
}
.foot__col .eyebrow { display: block; color: var(--lime); margin-bottom: 14px; }
.foot__col p { font-size: .9rem; line-height: 1.6; opacity: .9; }
.foot__links { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot__links a { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.foot__links a:hover { color: var(--orange); }
.foot__links small { font-size: .76rem; font-weight: 500; letter-spacing: .04em; opacity: .65; }
.foot__links .arr { font-size: .9rem; }
.foot__worth { width: clamp(140px, 16vw, 200px); color: var(--lime); }
.foot__row {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid rgba(243,235,226,.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: .72rem;
  letter-spacing: .06em;
  opacity: .7;
}
@media (min-width: 760px) {
  .foot__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ───────── Página de historia ───────── */
.post {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(110px, 14vw, 170px) var(--gutter) clamp(72px, 10vw, 120px);
}
.post__head, .post__body, .post__more { width: min(100%, 780px); margin-inline: auto; }
.post__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1.5px solid var(--orange);
}
.post__title {
  margin: 12px 0 0;
  font-size: clamp(2.6rem, 1rem + 7vw, 6rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.035em;
}
.post__lead { margin-top: 22px; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.45; }
.post__head .stats { margin-top: 22px; }
.post__author { margin-top: 18px; font-size: .85rem; opacity: .75; }
.post__hero {
  margin: clamp(40px, 6vw, 72px) auto 0;
  width: min(100%, var(--max));
}
.post__hero img { width: 100%; max-height: 82vh; object-fit: cover; border-radius: var(--radius); }
.post__body { margin-top: clamp(40px, 6vw, 72px); }
.post__body p, .post__body ul { margin: 0 0 1.15em; }
.post__body p { font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); line-height: 1.7; }
.post__body h2 {
  margin: 2em 0 .6em;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
}
.post__body ul { padding-left: 1.1em; line-height: 1.65; }
.post__body li { margin-bottom: .7em; }
.post__body li::marker { color: var(--orange); }
.post__fig { margin: 2.2em 0; }
.post__fig img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius); background: var(--lime); }
.post__fig figcaption { margin-top: 10px; font-size: .82rem; opacity: .75; }
.post__links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 2em !important; }
.post__links a, .sub a {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1.5px solid var(--orange);
}
.post__links a:hover .arr, .sub a:hover .arr { transform: translate(3px, -3px); }
.post__more {
  margin-top: clamp(64px, 9vw, 110px);
  padding-top: 24px;
  border-top: 1.5px solid var(--ink);
  width: min(100%, var(--max));
}
.post__more-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}
.mini { display: block; text-decoration: none; }
.mini__media { display: block; overflow: hidden; border-radius: 12px; background: var(--lime); }
.mini__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease-out); }
.mini:hover .mini__media img { transform: scale(1.05); }
.mini__meta { display: block; margin-top: 12px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.mini__title { display: block; margin-top: 4px; font-size: 1.15rem; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.mini:hover .mini__title { color: var(--orange); }
@media (min-width: 900px) {
  .post__more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ───────── Página del podcast ───────── */
.podcast .sub { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.eps { width: min(100%, 1080px); margin: clamp(48px, 7vw, 80px) auto 0; display: grid; gap: clamp(48px, 7vw, 88px); }
.ep { display: grid; gap: 22px; align-items: start; scroll-margin-top: 90px; }
.ep__media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-deep); aspect-ratio: 16 / 9; }
.ep__play { display: block; position: absolute; inset: 0; }
.ep__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.ep__play:hover img { transform: scale(1.04); }
.ep__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ep__play svg, .mini--ep svg {
  position: absolute;
  left: 50%; top: 50%;
  width: 60px; height: 60px;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.ep__play:hover svg { transform: translate(-50%, -50%) scale(1.08); }
.ep__title {
  margin: 8px 0 0;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
}
.ep__desc { margin-top: 14px; font-size: .98rem; line-height: 1.65; }
.ep__desc p { margin: 0 0 .9em; }
.ep__desc a { overflow-wrap: anywhere; }
.ep__rel { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.ep__rel span:first-child { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.ep__rel a { font-weight: 700; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.ep__rel a:hover .arr, .post__pod:hover .arr { transform: translateX(4px); }
@media (min-width: 900px) {
  .ep { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; }
}
.season { display: grid; gap: clamp(40px, 6vw, 72px); }
.season + .season { margin-top: clamp(56px, 8vw, 96px); }
.season__title {
  margin: 0;
  padding-top: 22px;
  border-top: 1.5px solid var(--ink);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.025em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.season__title small { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.season .ep--audio + .ep--audio { margin-top: calc(-1 * clamp(16px, 3vw, 40px)); }
.ep--audio {
  grid-template-columns: 52px minmax(0, 1fr) !important;
  gap: 18px !important;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(58, 72, 67, .18);
}
.ep--audio .ep__title { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-top: 6px; }
.ep--audio .ep__desc { font-size: .95rem; max-width: 70ch; }
.ep__listen {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  transition: background-color .2s, transform .2s var(--ease);
}
.ep__listen svg { width: 22px; height: 22px; margin-left: 3px; }
.ep__listen:hover { background: var(--orange); transform: scale(1.05); }
.ep__listen.is-on { background: var(--orange); pointer-events: none; }
.ep__spotify { display: block; width: 100%; max-width: 620px; height: 152px; margin-top: 14px; border: 0; border-radius: 12px; }

.post__pod {
  display: grid;
  grid-template-columns: minmax(0, 200px) 1fr;
  gap: 18px;
  align-items: center;
  margin: 2.2em 0;
  padding: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  text-decoration: none;
}
.post__pod img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.post__pod small { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.post__pod b { display: inline; font-size: 1.1rem; letter-spacing: -.02em; margin-right: 6px; }
@media (max-width: 520px) { .post__pod { grid-template-columns: 1fr; } }

/* ───────── 404 ───────── */
.notfound {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 20% 100%, #1e2926 0%, transparent 70%),
    radial-gradient(50% 40% at 80% 90%, var(--ink) 0%, transparent 70%),
    var(--ink-deep);
  color: var(--cream);
}
.notfound__main { padding: 40px var(--gutter); display: grid; gap: 18px; justify-items: start; }
.notfound__logo { width: 110px; }
.notfound__code {
  font-size: clamp(5rem, 22vw, 14rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.04em;
}

/* ───────── Lista prioritaria (formulario) ───────── */
.apply__form, .apply__alert { width: min(100%, 780px); margin-inline: auto; }
.apply__form { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: clamp(36px, 5vw, 52px); }
.apply__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply__alert {
  margin-top: 32px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #F6D9C8;
  color: #7A2E10;
  font-weight: 500;
}
.q { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 12px; }
.q__label {
  padding: 0;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.q__n { display: inline-block; min-width: 2.2em; color: var(--orange); font-size: .7em; letter-spacing: .08em; vertical-align: .14em; }
.q__hint { font-size: .95rem; opacity: .8; }
.q__opt { font-size: .6em; font-weight: 500; letter-spacing: 0; opacity: .6; }
.q__unit { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.q__field { display: grid; gap: 8px; }
.q__field--short { max-width: 220px; }
.q__field--short .q__hint { max-width: none; }
.q__pair { display: grid; gap: 18px; }
.q__pair--short { grid-template-columns: repeat(2, minmax(0, 160px)); }
.q input:not([type="radio"]), .q textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #FBF7F2;
  border: 1.5px solid rgba(58, 72, 67, .35);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.q textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.q input:focus, .q textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(230, 122, 68, .35); }
.q [aria-invalid="true"]:not([type="radio"]) { border-color: #B5532A; }
.q__count { justify-self: end; font-size: .78rem; opacity: .7; font-variant-numeric: tabular-nums; }
.q__err { min-height: 0; font-size: .88rem; font-weight: 500; color: #B5532A; }
.q__err:empty { display: none; }
.q__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q__chips label { position: relative; cursor: pointer; }
.q__chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.q__chips span {
  display: inline-block;
  padding: 10px 16px;
  border: 1.5px solid rgba(58, 72, 67, .4);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color .2s, border-color .2s, color .2s;
}
.q__chips label:hover span { border-color: var(--ink); }
.q__chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.q__chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.apply__notice { padding: 24px 26px; border-radius: var(--radius); background: var(--lime); display: grid; gap: 10px; }
.apply__privacy { font-size: .92rem; }
.apply__privacy summary { cursor: pointer; font-weight: 600; width: fit-content; border-bottom: 1.5px solid var(--orange); }
.apply__privacy p { margin-top: 10px; max-width: 64ch; }
.apply__privacy a { text-decoration-color: var(--orange); }
.apply__consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-top: -24px; }
.apply__consent input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); }
.apply__form > .q__err { margin-top: -40px; }
.apply__send { justify-self: start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.apply__send:disabled { opacity: .6; cursor: progress; }
.apply__done { margin-top: 32px; }
.apply__sign { margin-top: 14px; font-style: italic; opacity: .75; }
@media (min-width: 640px) {
  .q__pair:not(.q__pair--short) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* ───────── Revisión de solicitudes (/admin/solicitudes) ───────── */
body.adm { background: var(--cream); }
.adm__main { padding: 40px var(--gutter) 80px; display: grid; gap: 14px; }
.adm__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.adm__sum a { text-decoration-color: var(--orange); }
.adm__scroll { overflow-x: auto; margin-top: 12px; }
.adm__table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: .9rem; }
.adm__table th { text-align: left; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; padding: 10px; border-bottom: 1.5px solid var(--ink); }
.adm__table td { padding: 12px 10px; vertical-align: top; border-bottom: 1px solid rgba(58, 72, 67, .2); }
.adm__table small { display: block; opacity: .7; }
.adm__motivo { max-width: 340px; }
.adm__row--aceptada { background: rgba(211, 230, 220, .7); }
.adm__row--rechazada { opacity: .55; }
.adm__form { display: grid; gap: 6px; min-width: 170px; }
.adm__form select, .adm__form input, .adm__form button { font: inherit; font-size: .85rem; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(58, 72, 67, .4); background: #FBF7F2; color: var(--ink); }
.adm__form button { background: var(--ink); color: var(--cream); cursor: pointer; }

/* ───────── Responsive ───────── */
@media (max-width: 640px) {
  .hero__foot { grid-template-columns: 1fr 1fr; }
  .hero__tag { grid-column: 1 / -1; order: -1; text-align: left; }
  .sec__head { flex-wrap: wrap; }
  .fab .pill { padding: 0 16px; font-size: .68rem; letter-spacing: .14em; }
}

/* Aparición al hacer scroll (solo si el navegador lo soporta) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 40%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__fabric i, .topo3d, .hero__logo, .hero__foot, .ticker__track, .boot__mark, body { animation: none !important; }
  .boot { display: none; }
  * { transition: none !important; }
}
