/* =========================================================
   HB Fútbol Élite v2 — styles.css
   Desktop first · max-width: 1100 / 820 / 520
   ========================================================= */

@font-face { font-family: "CY"; src: url("assets/fonts/CY-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "CY"; src: url("assets/fonts/CY-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #161a20;
  --slate: #20262e;
  --slate-2: #2c333c;
  --slate-3: #3d4651;
  --bone: #ebe5d9;
  --muted: #959da7;
  --gold: #c69c5f;
  --gold-hi: #e9cb92;
  --gold-lo: #8c6739;
  --gold-grad: linear-gradient(120deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%);
  --f-display: "CY", "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(24px, 5vw, 88px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 400; line-height: .95; letter-spacing: -.02em; }
h1 b, h2 b, h3 b { font-weight: 700; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Placeholders de foto (borrar al poner las imágenes reales) ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(198, 156, 95, .16), transparent 70%),
    linear-gradient(165deg, #333b45 0%, #222830 60%, #1b2027 100%);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-family: var(--f-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(235, 229, 217, .45);
  pointer-events: none;
}
.ph--cut {
  background: radial-gradient(50% 55% at 50% 60%, rgba(198, 156, 95, .30), rgba(198, 156, 95, .06) 60%, transparent 75%);
}
.ph--cut::after { align-items: end; padding-bottom: 18%; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px;
  font-family: var(--f-text); font-weight: 500; font-size: 16px;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.pill--gold { background: var(--gold-grad); color: var(--ink); }
.pill--gold:hover { transform: translateY(-2px); background: var(--gold-hi); }
.pill--line { border: 1.5px solid rgba(235, 229, 217, .35); color: var(--bone); }
.pill--line:hover { border-color: var(--gold); color: var(--gold-hi); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cta--center { justify-content: center; margin-top: 44px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.nav.is-scrolled { padding-top: 14px; padding-bottom: 14px; background: rgba(22, 26, 32, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 22px; }
.nav__brand b { font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav__links a:not(.pill) { color: var(--muted); transition: color .3s; }
.nav__links a:not(.pill):hover { color: var(--bone); }
.nav__links .pill { padding: 10px 22px; font-size: 15px; }
.nav__toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; z-index: 60; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--bone); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: var(--pad); background: var(--ink);
  font-family: var(--f-display); font-weight: 700; font-size: 44px; line-height: 1.1;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu.is-open { opacity: 1; visibility: visible; }

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 680px;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 70% at 15% 0%, #2f3741 0%, transparent 60%),
    radial-gradient(80% 80% at 100% 100%, #262d36 0%, transparent 60%),
    var(--slate);
}
.hero__halo {
  position: absolute; left: 50%; bottom: -10%; z-index: 0;
  width: 70vw; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(198, 156, 95, .26), rgba(198, 156, 95, .05) 60%, transparent);
}
.hero__title { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.hero__word {
  position: absolute;
  font-size: clamp(110px, 19vw, 340px);
  line-height: .82; letter-spacing: -.05em; white-space: nowrap;
  will-change: transform;
}
.hero__word--back { z-index: 1; top: 15%; left: var(--pad); color: var(--bone); }
.hero__word--front { z-index: 3; top: 40%; right: var(--pad); color: var(--bone); }
.hero__cut {
  position: absolute; z-index: 2; left: 50%; bottom: 0;
  width: min(46vw, 760px); height: 84%;
  transform: translateX(-50%);
}
.hero__foot {
  position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: 48px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.hero__lead { max-width: 30ch; color: var(--muted); font-size: 18px; }
.hero__stat { font-size: 15px; color: var(--muted); text-align: right; line-height: 1.35; }
.hero__stat span {
  display: block; font-family: var(--f-display); font-weight: 700;
  font-size: 64px; line-height: 1; letter-spacing: -.04em; margin-bottom: 6px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Entrada del hero */
.is-loading .hero__word--back { transform: translateY(40%); opacity: 0; }
.is-loading .hero__word--front { transform: translateY(40%); opacity: 0; }
.is-loading .hero__cut { transform: translate(-50%, 12%); opacity: 0; }
.is-loading .hero__foot { opacity: 0; transform: translateY(20px); }
.hero__word, .hero__cut, .hero__foot { transition: transform 1.3s var(--ease), opacity 1.1s var(--ease); }
.hero__word--front { transition-delay: .12s; }
.hero__cut { transition-delay: .25s; }
.hero__foot { transition-delay: .5s; }

/* ---------- 2 · Tira de jugadores ---------- */
.strip { display: flex; height: 64vh; min-height: 420px; gap: 3px; background: var(--ink); }
.strip__item {
  flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; min-width: 0;
  transition: flex-grow .8s var(--ease);
}
.strip__item::before {
  content: ""; position: absolute; inset: 50% 0 0 0; z-index: 1;
  background: linear-gradient(to top, rgba(22, 26, 32, .8), transparent);
}
.strip__item:hover { flex-grow: 2.4; }
.strip__name, .strip__club { position: relative; z-index: 2; white-space: nowrap; }
.strip__name { font-family: var(--f-display); font-size: clamp(22px, 2vw, 32px); line-height: 1; }
.strip__name b { font-weight: 700; }
.strip__club { margin-top: 6px; color: var(--gold-hi); font-size: 14px; }

/* ---------- 3 · Abanico ---------- */
.fan { position: relative; height: 320vh; background: var(--ink); }
.fan__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.fan__cards { position: absolute; left: 50%; top: 40%; }
.fan__card {
  position: absolute; left: 0; top: 0;
  width: clamp(170px, 16vw, 270px); aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  translate: -50% -50%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  will-change: transform;
}
.fan__text {
  position: absolute; left: 0; right: 0; bottom: 9vh;
  text-align: center; padding: 0 var(--pad);
}
.fan__text h2 { font-size: clamp(54px, 6.4vw, 112px); }
.fan__text p { max-width: 36ch; margin: 18px auto 0; color: var(--muted); }

/* ---------- 4 · Statement ---------- */
.statement {
  position: relative; overflow: hidden;
  padding: clamp(120px, 14vw, 220px) 0 clamp(100px, 10vw, 160px);
  background: var(--slate);
}
.statement__line {
  position: relative; z-index: 1;
  font-family: var(--f-display); font-size: clamp(70px, 11.5vw, 210px);
  line-height: .95; letter-spacing: -.045em; white-space: nowrap;
  will-change: transform;
}
.statement__line b { font-weight: 700; }
.statement__line .dim { color: var(--slate-3); }
.statement__line--a { padding-left: var(--pad); }
.statement__line--b { text-align: right; padding-right: var(--pad); margin-top: .1em; }
.statement__line--b { position: relative; z-index: 3; }
.statement__card {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: clamp(200px, 21vw, 340px); aspect-ratio: 3 / 4;
  border-radius: 28px;
  translate: -50% -60%;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .4);
  will-change: transform;
}
.statement__copy { max-width: 34ch; margin: clamp(56px, 6vw, 96px) var(--pad) 0 auto; color: var(--muted); }

/* ---------- 5 · Carrusel (scroll nativo) ---------- */
.roster { position: relative; padding: clamp(110px, 12vw, 180px) 0; background: var(--ink); }
.roster__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--pad); margin-bottom: clamp(40px, 5vw, 72px); }
.roster__head .section-title { margin: 0; }
.roster__nav { display: flex; gap: 10px; }
.roster__nav .pill { padding: 11px 24px; font-size: 15px; background: none; cursor: pointer; font-family: var(--f-text); }
.roster__nav .pill:disabled { opacity: .3; cursor: default; border-color: rgba(235, 229, 217, .35); color: var(--bone); }
.roster__track {
  display: flex; gap: 22px;
  padding: 0 var(--pad);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
}
.roster__track::-webkit-scrollbar { display: none; }
.roster__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.roster__track.is-dragging * { pointer-events: none; }
.player { flex: 0 0 clamp(240px, 21vw, 330px); scroll-snap-align: start; user-select: none; }
.player__img { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.player h3 { margin-top: 18px; font-size: clamp(22px, 1.9vw, 30px); }
.player p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.player img { -webkit-user-drag: none; }

/* ---------- Títulos ---------- */
.section-title { font-size: clamp(40px, 4.6vw, 80px); margin-bottom: clamp(48px, 6vw, 96px); }

/* ---------- 6 · Entrenadores (franjas horizontales) ---------- */
.coaches { padding: clamp(110px, 12vw, 180px) 0 0; background: var(--slate); }
.coaches .section-title { padding: 0 var(--pad); }
.coaches__list { list-style: none; margin: 0; padding: 0; }
.coach {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(260px, 38vh, 420px);
  display: flex; align-items: flex-end;
  padding: 0 var(--pad) clamp(28px, 3vw, 48px);
}
.coach + .coach { margin-top: 4px; }
.coach__bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.coach__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease);
}
.coach::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22, 26, 32, .82) 0%, rgba(22, 26, 32, .35) 45%, rgba(22, 26, 32, 0) 75%);
}
.coach:hover .coach__bg img { transform: scale(1.07); }
.coach__name {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 128px);
  line-height: .95; letter-spacing: -.04em;
  transition: transform .8s var(--ease);
}
.coach__name span { color: rgba(235, 229, 217, .55); }
.coach__name b { font-weight: 700; }
.coach:hover .coach__name { transform: translateX(1vw); }

/* ---------- 7 · Banda diagonal ---------- */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(160px, 16vw, 260px) var(--pad);
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  margin: -4vw 0;
}
.band__bg { position: absolute; inset: -15% 0; z-index: -1; }
.band__bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(22, 26, 32, .7), transparent 70%); }
.band__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; }
.band__fig {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(72px, 8vw, 140px);
  line-height: 1; letter-spacing: -.04em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.band__fig--word { font-size: clamp(42px, 4.2vw, 74px); padding-top: .4em; }
.band__fig small {
  display: block; margin-top: 16px;
  font-family: var(--f-text); font-weight: 400; font-size: 17px; letter-spacing: 0;
  color: var(--bone); -webkit-text-fill-color: var(--bone);
}


/* ---------- Cifras ---------- */
.numbers { padding: clamp(110px, 13vw, 200px) var(--pad); background: var(--ink); }
.numbers__title { font-size: clamp(56px, 8vw, 150px); letter-spacing: -.045em; max-width: 12ch; }
.numbers__main { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; margin-top: clamp(64px, 7vw, 110px); }
.numbers__num {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(90px, 11vw, 200px);
  line-height: .9; letter-spacing: -.05em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.numbers__label { margin-top: 18px; color: var(--muted); font-size: 18px; }

.split { margin-top: clamp(72px, 8vw, 120px); }
.split__bar { display: flex; gap: 6px; height: 14px; }
.split__bar span {
  flex: var(--w) 1 0; border-radius: 999px; background: var(--slate-2);
  position: relative; overflow: hidden;
}
.split__bar span::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.split__bar span:nth-child(2)::after { transition-delay: .25s; filter: brightness(.82); }
.split__bar span:nth-child(3)::after { transition-delay: .5s; filter: brightness(.66); }
.is-live .split__bar span::after { transform: scaleX(1); }
.split__legend { display: flex; gap: 6px; margin-top: 22px; }
.split__legend > div { flex: var(--w) 1 0; min-width: 0; }
.split__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 3.6vw, 60px); line-height: 1; letter-spacing: -.03em; }
.split__legend p:last-child { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ---------- Mapa (escena fija) ---------- */
.world { position: relative; height: 300vh; background: var(--slate); }
.world__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(280px, .9fr) 2fr;
  align-items: center; gap: 4vw;
  padding: 90px var(--pad) 40px;
  overflow: hidden;
}
.world__side .section-title { margin-bottom: clamp(32px, 4vw, 56px); font-size: clamp(36px, 3.6vw, 64px); }
.world__count { display: flex; align-items: flex-end; gap: 22px; }
.world__num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(110px, 12vw, 210px); line-height: .86; letter-spacing: -.03em; padding-right: .04em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  min-width: 1.25em;
}
.world__label { color: var(--muted); font-size: 18px; }
.world__current {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(26px, 2.4vw, 40px); line-height: 1.05; letter-spacing: -.02em;
  min-height: 1.1em;
}
.world__current.is-swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.world__figs { display: flex; gap: 40px; margin-top: clamp(36px, 4vw, 64px); }
.world__figs > div { max-width: 18ch; }
.world__small { font-family: var(--f-display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -.03em; }
.world__figs p:last-child { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.35; }

.map { position: relative; }
.map__svg { display: block; width: 100%; height: auto; overflow: visible; }
.map__land { fill: #2a313a; stroke: var(--slate); stroke-width: .6; }
.map__c {
  fill: #2a313a; stroke: var(--slate); stroke-width: .6;
  transition: fill .9s var(--ease), filter .9s var(--ease);
}
.map__c.is-on { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(233, 203, 146, .35)); }
.map__c.is-new { fill: var(--gold-hi); }

/* ---------- Competiciones ---------- */
.comps { padding: clamp(110px, 12vw, 180px) var(--pad) clamp(140px, 14vw, 220px); background: var(--ink); overflow: hidden; }
.comps__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 5vw; margin-bottom: clamp(56px, 6vw, 96px); }
.comps__head .section-title { margin: 0; }
.comps__head .section-title b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.comps__lead { max-width: 34ch; color: var(--muted); }
.comps__featured { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; }
.comps__featured p { font-family: var(--f-display); font-size: clamp(30px, 3vw, 54px); line-height: 1.02; letter-spacing: -.03em; }
.comps__featured span { color: var(--muted); }
.comps__featured b { font-weight: 700; }
.comps__list {
  list-style: none; margin: clamp(64px, 7vw, 110px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 4vw;
}
.comps__list li { display: flex; flex-direction: column; gap: 2px; }
.comps__list b { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.comps__list span { color: var(--muted); font-size: 15px; }
.clubs { margin: clamp(80px, 8vw, 130px) calc(var(--pad) * -1) 0; overflow: hidden; }
.clubs__row { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); width: max-content; animation: marquee 40s linear infinite; padding: 0 clamp(24px, 3vw, 48px); }
.clubs__logo { height: clamp(64px, 6vw, 92px); width: auto; flex: none; object-fit: contain; }

/* ---------- Promesas (banda) ---------- */
.band__inner { display: flex; align-items: center; gap: clamp(40px, 6vw, 110px); }
.ring { position: relative; flex: none; width: clamp(200px, 22vw, 340px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.ring__track { stroke: rgba(235, 229, 217, .12); }
.ring__fill { stroke: url(#arc); stroke: var(--gold); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2s var(--ease) .3s; }
.is-live .ring__fill { stroke-dashoffset: 60; }
.ring__num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(56px, 6vw, 104px); letter-spacing: -.05em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.band__text h2 { font-size: clamp(36px, 4.2vw, 74px); line-height: 1.02; max-width: 16ch; }
.band__text h2 b { color: var(--gold-hi); }
.band__text p { margin-top: 24px; color: var(--bone); font-size: 19px; }
.band__text p b { font-weight: 700; }

/* ---------- 8 · Servicios ---------- */
.services { padding: clamp(150px, 15vw, 240px) var(--pad) clamp(110px, 12vw, 180px); background: var(--ink); }
.services__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(56px, 6vw, 96px) 8vw; }
.services__list h3 { font-weight: 700; font-size: clamp(32px, 3vw, 50px); }
.services__list p { max-width: 32ch; margin-top: 16px; color: var(--muted); }

/* ---------- 9 · Instagram ---------- */
.insta { padding: clamp(90px, 10vw, 150px) 0 0; background: var(--slate); overflow: hidden; }
.insta__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad); margin-bottom: 56px; }
.insta__head h2 { font-size: clamp(40px, 4.6vw, 80px); }
.insta__marquee { overflow: hidden; }
.insta__row { display: flex; gap: 3px; width: max-content; animation: marquee 40s linear infinite; }
.insta__marquee:hover .insta__row { animation-play-state: paused; }
.insta__post { width: clamp(200px, 19vw, 300px); aspect-ratio: 4 / 5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 10 · Contacto ---------- */
.contact { position: relative; padding: clamp(120px, 15vw, 220px) var(--pad); text-align: center; overflow: hidden; isolation: isolate; background: var(--ink); }
.contact__glow { position: absolute; z-index: -1; left: 50%; top: 40%; width: 80vw; aspect-ratio: 1.6; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(198, 156, 95, .16), transparent); }
.contact__title {
  font-size: clamp(80px, 13vw, 230px); letter-spacing: -.045em; padding-bottom: .05em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact__lead { margin-top: 22px; color: var(--muted); font-size: clamp(18px, 1.5vw, 22px); }
.contact__links { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 56px; font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 42px); letter-spacing: -.02em; }
.contact__links a { transition: color .3s; }
.contact__links a:hover { color: var(--gold-hi); }

/* ---------- Footer ---------- */
.footer {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(100px, 11vw, 170px) var(--pad) 40px;
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(198, 156, 95, .12), transparent 65%),
    var(--slate);
}
.footer__seal {
  position: absolute; z-index: -1;
  right: -12vw; bottom: -18vw;
  width: min(62vw, 900px);
  opacity: .09;
  will-change: transform;
  pointer-events: none;
}
.footer__main { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6vw; align-items: start; }
.footer__statement {
  font-family: var(--f-display);
  font-size: clamp(54px, 7.4vw, 136px);
  line-height: .92; letter-spacing: -.045em;
  max-width: 9ch;
}
.footer__statement b { font-weight: 700; }
.footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: .6vw; }
.footer__nav a {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(28px, 2.6vw, 44px); line-height: 1.15; letter-spacing: -.025em;
  color: var(--muted);
  transition: color .35s var(--ease), transform .5s var(--ease);
}
.footer__nav a:hover { color: var(--gold-hi); transform: translateX(10px); }

.footer__info {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 40px;
  margin-top: clamp(80px, 9vw, 140px);
}
.footer__value {
  display: flex; flex-wrap: wrap; gap: 0 22px;
  font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 28px); letter-spacing: -.015em;
  color: var(--bone);
}
.footer__value a, a.footer__value { transition: color .3s var(--ease); }
.footer__value a:hover, a.footer__value:hover { color: var(--gold-hi); }
.footer__hint { margin-top: 6px; color: var(--muted); font-size: 14px; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: clamp(64px, 7vw, 110px);
}
.footer__logo { width: clamp(170px, 14vw, 220px); }
.footer__copy { color: var(--muted); font-size: 14px; }
.footer__up { padding: 10px 22px; font-size: 14px; }

@media (max-width: 820px) {
  .footer__main { grid-template-columns: 1fr; gap: 48px; }
  .footer__info { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
  .footer__bottom { flex-wrap: wrap; }
  .footer__seal { width: 110vw; right: -40vw; bottom: -30vw; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { gap: 26px; }
  .hero__cut { width: 56vw; }
}

@media (max-width: 820px) {
  body { font-size: 17px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .hero__word { font-size: 25vw; }
  .hero__word--back { top: 16%; }
  .hero__word--front { top: 33%; }
  .hero__cut { width: 92vw; height: 62%; bottom: 150px; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 24px; bottom: 32px; }
  .hero__stat { display: none; }
  .hero__cut::after { align-items: start; padding-top: 30%; }

  .strip { overflow-x: auto; scroll-snap-type: x mandatory; height: 58vh; }
  .strip__item { flex: 0 0 72vw; scroll-snap-align: start; }
  .strip__item:hover { flex-grow: 0; }

  .fan { height: 260vh; }
  .fan__cards { top: 38%; }
  .fan__card { width: 40vw; }
  .fan__text { bottom: 7vh; }

  .statement__line { font-size: 16vw; }
  .statement__card { width: 46vw; translate: -50% -70%; }

  .player { flex-basis: 70vw; }
  .roster__nav { display: none; }

  .band { clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); }
  .band__inner { grid-template-columns: 1fr; gap: 56px; }
  .band__fig--word { padding-top: 0; }

  .services__list { grid-template-columns: 1fr; }
  .insta__head { flex-direction: column; align-items: flex-start; }
  .insta__post { width: 46vw; }

}

@media (max-width: 520px) {
  .cta { flex-direction: column; width: 100%; }
  .cta .pill { width: 100%; }
  .hero { min-height: 640px; }
  .hero__lead { font-size: 16px; }
  .contact__title { font-size: 18vw; }
  .contact__links { font-size: 21px; }
}


@media (max-width: 1100px) {
  .comps__head { flex-direction: column; align-items: flex-start; }
  .comps__list { grid-template-columns: repeat(3, 1fr); }
  .world__sticky { grid-template-columns: 1fr; align-content: center; gap: 28px; }
  .world__side .section-title { margin-bottom: 20px; }
}
@media (max-width: 820px) {
  .numbers__main { grid-template-columns: 1fr; gap: 56px; }
  .split__legend { flex-direction: column; gap: 20px; }
  .split__legend > div { display: flex; align-items: baseline; gap: 14px; }
  .split__legend p:last-child { margin-top: 0; }
  .world { height: 260vh; }
  .world__num { font-size: 96px; }
  .world__figs { gap: 24px; margin-top: 24px; }
  .world__small { font-size: 32px; }
  .map { margin: 0 calc(var(--pad) * -1); }
  .comps__featured { grid-template-columns: 1fr; gap: 28px; }
  .comps__list { grid-template-columns: 1fr 1fr; }
  .coach { height: 240px; }
  .band__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .insta__row, .clubs__row { animation: none; }
  .map__c, .ring__fill, .split__bar span::after { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Después de la entrada, el JS controla el movimiento cuadro a cuadro */
.is-ready .hero__word,
.is-ready .hero__cut { transition: none; }

/* =========================================================
   Modo público mientras no estén las fotos:
   los espacios muestran el emblema en vez del texto de referencia.
   Para ver las etiquetas: hbfutbolelite.com/?ref
   ========================================================= */
body:not(.show-ref) .ph::after {
  content: "";
  inset: 50% auto auto 50%;
  width: 34%;
  max-width: 120px;
  aspect-ratio: 1;
  padding: 0;
  translate: -50% -50%;
  background: url("assets/img/logo-hb-gold-400.webp") center / contain no-repeat;
  opacity: .14;
}
body:not(.show-ref) .ph--cut::after { width: 22%; max-width: 160px; opacity: .2; }
body:not(.show-ref) .ph-text { visibility: hidden; }

body:not(.show-ref) .band__bg::after { display: none; }

/* ---------- Fotos reales ---------- */
.ph.has-img::after { display: none; }
.ph.has-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
}
.strip__item.has-img img { z-index: 0; transition: transform 1.2s var(--ease); }
.strip__item:hover img { transform: scale(1.05); }
.player__img.has-img img { transition: transform .8s var(--ease); }
.player:hover .player__img img { transform: scale(1.06); }


/* ---------- Plantel completo (desplegable) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dir { padding: clamp(100px, 10vw, 150px) var(--pad); background: var(--ink); }
.dir__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.dir__head .section-title { margin: 0; }
.dir__lead { margin-top: 14px; color: var(--muted); }
.dir__toggle { border: 0; cursor: pointer; font-family: var(--f-text); }
.dir__panel { overflow: hidden; transition: height .7s var(--ease); }
.dir__panel[hidden] { display: none; }
.dir__tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: clamp(40px, 4vw, 64px) 0 clamp(32px, 3vw, 48px); }
.dir__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.dir__filters .pill { padding: 10px 20px; font-size: 14px; background: none; cursor: pointer; font-family: var(--f-text); }
.dir__filters .pill.is-on { background: var(--gold-grad); border-color: transparent; color: var(--ink); }
.dir__search input {
  width: min(360px, 84vw); padding: 13px 22px; border-radius: 999px;
  border: 1.5px solid rgba(235, 229, 217, .25); background: var(--slate);
  color: var(--bone); font: 500 15px var(--f-text); outline: none;
  transition: border-color .3s var(--ease);
}
.dir__search input::placeholder { color: var(--muted); }
.dir__search input:focus { border-color: var(--gold); }
.dir__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 4vw; }
.dir__list li[hidden] { display: none; }
.dir__name { font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; letter-spacing: -.015em; }
.dir__name b { font-weight: 700; }
.dir__club { margin-top: 4px; color: var(--muted); font-size: 15px; }
.dir__note { opacity: .7; }
.dir__empty { color: var(--muted); padding: 40px 0; }
@media (max-width: 1100px) { .dir__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .dir__list { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Pills: el fondo cubre también el borde (sin filo blanco) ---------- */
.pill { background-origin: border-box; background-clip: border-box; }
.pill--gold { border: 0; }
