/* Fuentes propias (Inter, licencia OFL): no se contacta a Google */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --bg: #fff;
  --tile: #F5F5F7;
  --line: rgba(0, 0, 0, .12);
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --sand: #D9D6C9;
  --accent: #6B6857;
  --card: #fff;
  --nav: rgba(255, 255, 255, .72);
  --nav-hi: rgba(255, 255, 255, .86);
  --on-ink: #fff;
  --m: clamp(20px, 4vw, 56px);
  --wrap: 1280px;
  --nav-h: 52px;
  --r: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.47 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--m); }
.muted { color: var(--muted); font-size: 14px; }

/* Saltar al contenido (solo con teclado) */
.skip { position: absolute; left: 16px; top: -60px; z-index: 40; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 10px; }

/* Logo: la marca (negra, con transparencia) pintada de blanco con máscara */
.wordmark { display: block; background: var(--ink); -webkit-mask: url('assets/brand/zulu-wordmark.png') center / contain no-repeat; mask: url('assets/brand/zulu-wordmark.png') center / contain no-repeat; aspect-ratio: 1200 / 455; }
.wordmark--hero { width: clamp(250px, 58vw, 800px); margin: 0 auto; }
.wordmark--foot { width: 84px; }

/* Barra */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav-h); background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav__in { height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--m); display: flex; align-items: center; gap: 28px; }
.nav__brand { width: 58px; flex: none; padding: 11px 0; }
.nav__brand .wordmark { width: 100%; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 17px; letter-spacing: -.01em; translate: var(--mx, 0) var(--my, 0); transition: translate .35s var(--ease), scale .25s var(--ease), background .2s; }
.btn:hover { background: #000; scale: 1.04; }
.btn:active { scale: .97; background: #000; }
.btn--sm { position: relative; min-height: 34px; padding: 0 16px; font-size: 14px; }
.btn--sm::after { content: ''; position: absolute; inset: -6px -4px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: rgba(0, 0, 0, .05); }
.btn--ghost:active { background: rgba(0, 0, 0, .1); scale: .97; }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Texto */
.eyebrow { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--accent); }
.title { font-size: clamp(36px, 5.6vw, 80px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; }
.lead { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; font-weight: 500; letter-spacing: -.02em; color: var(--muted); }
.lead--s { font-size: clamp(20px, 1.8vw, 24px); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100svh - var(--nav-h) - 150px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; padding: 64px var(--m) 80px;  }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: center; margin-top: 8px; }

/* Nombre del club */
.about { padding: 24px 0 clamp(72px, 10vw, 140px); text-align: center; }
.about .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.title--brand { font-size: clamp(44px, 8.4vw, 124px); line-height: 1; letter-spacing: -.05em; }

/* Próximo */
.next { padding: 0 0 clamp(96px, 14vw, 180px); }
.next__card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(36px, 5vw, 64px); }
.next__head { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.title--xl { font-size: clamp(52px, 11vw, 150px); line-height: .98; letter-spacing: -.05em; }
.next__img { position: relative; width: min(440px, 100%); border-radius: 22px; overflow: hidden; display: block; transition: transform .6s var(--ease); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .55), 0 18px 36px -18px rgba(0, 0, 0, .3); }
.next__img img { width: 100%; }
.facts { width: 100%; max-width: 920px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px 0; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.next__cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.next__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 48px 0; }

/* Temporada */
.season { padding-bottom: clamp(96px, 14vw, 180px); }
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(32px, 5vw, 64px); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.ev { display: flex; flex-direction: column; gap: 14px; }
.ev__img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--tile); }
.ev__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ev__img:hover img { transform: scale(1.04); }
.ev__tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 13px; font-weight: 600; }
.ev h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.ev p { color: var(--muted); font-size: 14px; margin-top: -8px; }

/* Lugar */
.place { padding-bottom: clamp(96px, 14vw, 180px); }
.place__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(24px, 4vw, 48px); }
.place__txt { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.place__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.map { position: relative; border-radius: var(--r); overflow: hidden; background: var(--tile); aspect-ratio: 4 / 3; box-shadow: inset 0 0 0 1px var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(.96); }
.map__card { position: absolute; top: 16px; left: 16px; max-width: calc(100% - 80px); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(0, 0, 0, .06); }
.map__card strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.map__card span { color: var(--muted); font-size: 14px; margin-bottom: 10px; }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--muted); }
.foot__links a:hover { color: var(--ink); }

/* Visor de flyers */
.lb { margin: auto; padding: 0; border: 0; background: transparent; max-width: min(92vw, 640px); max-height: 92svh; overflow: visible; }
.lb::backdrop { background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb img { max-height: 88svh; width: auto; margin: 0 auto; border-radius: 14px; }
.lb__x { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 15px; }

/* Aparición suave */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .next__img, .ev__img img { transition: none; }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place__in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav__links { gap: 18px; margin-left: auto; }
  .nav__links a[href="#proximo"] { display: none; }
  .nav__in { gap: 16px; }
  .hero { gap: 22px; }
  .foot__links { margin-left: 0; width: 100%; }
  .facts { grid-template-columns: 1fr; }
  .facts div { padding: 20px 0; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .facts div:first-child { padding-top: 24px; }
}


/* ============ Movimiento ============ */
/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 30; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.nav { transition: box-shadow .3s, background .3s; }
.nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 0, 0, .25); background: var(--nav-hi); }
.nav__links a { position: relative; padding: 14px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.nav__links a.on { color: var(--ink); }
.nav__links a.on::after { transform: scaleX(1); }

/* Hero: entrada en cascada y parallax */
.hero > * { animation: rise 1s var(--ease) backwards; }
.hero .eyebrow { animation-delay: .15s !important; }
.hero .lead { animation-delay: .75s !important; }
.hero__cta { animation-delay: .95s !important; }
.hero__mark { animation-delay: .3s !important; }
.wordmark--hero { animation: wipe 1.5s var(--ease) .35s backwards; transform: translateY(calc(var(--p, 0) * -48px)) scale(calc(1 - var(--p, 0) * .1)); opacity: calc(1 - var(--p, 0) * 1.15); }
.hero > .eyebrow, .hero > .lead, .hero > .hero__cta { opacity: calc(1 - var(--p, 0) * 1.3); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); filter: blur(10px); } to { clip-path: inset(0 0 0 0); filter: blur(0); } }
@keyframes fadein { from { opacity: 0; } }

/* Cuenta regresiva */
.count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 460px; margin: 6px 0; }
.count div { min-width: 0; padding: 12px 6px 10px; border-radius: 18px; background: var(--tile); display: flex; flex-direction: column; align-items: center; gap: 2px; overflow: hidden; }
.count b { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; display: block; }
.count b.tick { animation: tick .5s var(--ease); }
.count small { font-size: 14px; color: var(--muted); }
@keyframes tick { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Revelado: escalonado, con máscara y palabras */
.reveal { transition-delay: var(--d, 0ms); }
.ev.reveal .ev__img { clip-path: inset(14% 10% round 22px); transition: clip-path 1.1s var(--ease) var(--d, 0ms), transform .5s var(--ease); }
.ev.reveal .ev__img.is-on { transition: clip-path 1.1s var(--ease) var(--d, 0ms), transform .1s ease-out; }
.next__img.is-on { transition: transform .1s ease-out; }
.ev.reveal.in .ev__img { clip-path: inset(0 round 18px); }
.ev.reveal .ev__img img { scale: 1.25; transition: transform .6s var(--ease), scale 1.4s var(--ease) var(--d, 0ms); }
.ev.reveal.in .ev__img img { scale: 1; }
.next__card.reveal { transform: translateY(40px); }
.next__card.reveal.in { transform: none; }
.map.reveal { transform: translateY(40px) scale(.96); }
.map.reveal.in { transform: none; }
.map__card { animation: float 6s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(-6px); } }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; transform: translateY(112%); transition: transform .9s var(--ease) calc(var(--i, 0) * 70ms + 120ms); }
.reveal.in .w > span { transform: none; }

/* Tilt 3D con brillo que sigue al cursor */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .5), transparent 55%); mix-blend-mode: soft-light; transition: opacity .3s; }
.tilt.is-on::after { opacity: 1; }

/* Visor */
.lb[open] { animation: lbin .45s var(--ease); }
.lb[open]::backdrop { animation: fadein .4s ease both; }
@keyframes lbin { from { opacity: 0; transform: scale(.92) translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wordmark--hero, .hero > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .ev.reveal .ev__img { clip-path: none; }
  .w > span { transform: none; }
}


/* Tema arena (vista previa: ?tema=arena). Sale del fondo piedra del logo en Instagram. */
:root[data-tema="arena"] {
  --bg: #D6D3C6;
  --tile: #E6E3D8;
  --line: rgba(29, 29, 27, .16);
  --ink: #1D1D1B;
  --muted: #5F5D52;
  --accent: #55513F;
  --card: #F1EFE7;
  --nav: rgba(214, 211, 198, .72);
  --nav-hi: rgba(214, 211, 198, .9);
  --on-ink: #F1EFE7;
}
:root[data-tema="arena"] .ev__img, :root[data-tema="arena"] .map { background: #CBC8B9; }
