/* PISTA CENTRAL — demo insignia Fable × Codex (14-jul-2026)
   Territorio: "el Wimbledon del pádel". Carbón + champán + verde pista esmeralda
   + marfil. Cormorant Garamond + Inter + JetBrains Mono para datos. */

@font-face {
  font-family: 'Cormorant';
  src: url('/assets/fonts/cormorant-var.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('/assets/fonts/cormorant-italic-var.woff2') format('woff2');
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  --carbon: #101012;
  --carbon-2: #17171a;
  --champagne: #c9a24b;
  --champagne-soft: #e2c684;
  --emerald: #0e5c46;
  --emerald-soft: #2b8a6d;
  --ivory: #f2eee6;
  --ivory-dim: #9d998f;
  --line: rgba(242, 238, 230, .14);
  --serif: 'Cormorant', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 76px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--carbon);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--champagne); color: var(--carbon); }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- tipografía ---------- */
.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--champagne); font-weight: 500; margin-bottom: 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 550; line-height: 1.02; letter-spacing: .002em; }
h2 { font-size: clamp(36px, 5vw, 66px); }
h1 em, h2 em { font-style: italic; color: var(--champagne-soft); font-weight: 500; }
h3 { font-size: 26px; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: background .35s, color .35s, border-color .35s, transform .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--champagne); color: var(--carbon); }
.btn-gold:hover { background: var(--ivory); }
.btn-line { border: 1px solid rgba(242, 238, 230, .32); color: var(--ivory); }
.btn-line:hover { border-color: var(--champagne); color: var(--champagne-soft); }
.btn-line-w { border: 1px solid rgba(242, 238, 230, .4); color: var(--ivory); }
.btn-line-w:hover { border-color: var(--champagne); color: var(--champagne-soft); }
.btn-dark { background: var(--carbon); color: var(--ivory); }
.btn-dark:hover { background: #000; }
.btn-lg { padding: 20px 42px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 36px;
  padding: 18px var(--pad);
  transition: background .4s, box-shadow .4s, padding .4s;
}
.nav.scrolled {
  background: rgba(16, 16, 18, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav-logo { font-family: var(--serif); font-size: 25px; font-weight: 600; margin-right: auto; }
.nav-logo em { font-style: italic; color: var(--champagne-soft); }
.nav-links { display: flex; gap: 30px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.nav-links a { color: var(--ivory-dim); padding: 4px 0; position: relative; transition: color .3s; }
.nav-links a:hover { color: var(--ivory); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--champagne); transition: width .35s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--champagne); color: var(--champagne-soft);
  padding: 11px 24px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--champagne); color: var(--carbon); }
.burger { display: none; }

/* menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--carbon);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: var(--pad);
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.menu.open { opacity: 1; pointer-events: auto; }
.menu-list li { border-bottom: 1px solid var(--line); }
.menu-list li a {
  display: flex; align-items: baseline; gap: 20px;
  font-family: var(--serif); font-size: clamp(34px, 9vw, 52px); padding: 16px 0;
}
.menu-list small { font-family: var(--mono); font-size: 12px; color: var(--champagne); }
.menu-foot { margin-top: 44px; display: flex; flex-direction: column; gap: 8px; color: var(--ivory-dim); }
.menu-foot a { color: var(--champagne-soft); font-weight: 600; }

/* ---------- escena de la pala ---------- */
.rig { height: 380vh; position: relative; }
.rig-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.rig-sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rig-sticky::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 72% 42%, rgba(14, 92, 70, .28), transparent 70%),
    radial-gradient(40% 40% at 20% 85%, rgba(201, 162, 75, .12), transparent 70%);
  pointer-events: none;
}
.rig-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
  max-width: 780px;
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease;
}
.rig-overlay.on { opacity: 1; pointer-events: auto; }
.ro-0 h1 { font-size: clamp(52px, 8.6vw, 122px); margin: 8px 0 24px; }
.ro-0 h1 .line { display: block; overflow: hidden; }
.ro-0 h1 .line i {
  display: block; font-style: normal;
  transform: translateY(112%);
  animation: rise 1.05s cubic-bezier(.2,.7,.2,1) forwards;
}
.ro-0 h1 .line:nth-child(2) i { animation-delay: .12s; }
.ro-0 h1 .line:nth-child(3) i { animation-delay: .24s; }
.ro-0 h1 em { font-style: italic; }
@keyframes rise { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ro-0 h1 .line i { animation: none; transform: none; } }
.ro-1, .ro-2 { justify-content: flex-end; padding-bottom: 14vh; }
.ro-1 h2, .ro-2 h2 { font-size: clamp(34px, 5.6vw, 72px); text-shadow: 0 8px 44px rgba(16, 16, 18, .9); }
.rig-sub { max-width: 46ch; color: var(--ivory-dim); font-size: 17.5px; margin-top: 14px; }
.rig-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.rig-hint {
  position: absolute; bottom: 26px; left: var(--pad);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-dim);
}
@media (prefers-reduced-motion: reduce) {
  .rig { height: auto; }
  .rig-sticky { position: relative; height: 100svh; }
  .rig-overlay { opacity: 0; }
  .rig-overlay.ro-0 { opacity: 1; position: relative; }
  .ro-1, .ro-2, .rig-labels { display: none; }
}

/* etiquetas técnicas */
.rig-labels span {
  position: absolute; z-index: 3;
  font-family: var(--mono); font-size: 12px; color: var(--ivory);
  background: rgba(16, 16, 18, .78);
  border: 1px solid var(--line); border-left: 2px solid var(--champagne);
  padding: 8px 12px;
  transform: translate(14px, -50%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
  white-space: nowrap;
}
.rig-labels span i { display: block; font-style: normal; font-size: 10.5px; color: var(--champagne-soft); }
.rig-labels.show span { opacity: 1; }

/* ---------- marquee ---------- */
.band-clip { overflow: hidden; margin-block: -8px; padding-block: 8px; }
.marquee { overflow: hidden; background: var(--emerald); color: var(--ivory); padding: 13px 0; transform: rotate(-.6deg) scale(1.01); }
.marquee-track {
  display: flex; gap: 30px; width: max-content; align-items: center;
  animation: slide 26s linear infinite;
  font-family: var(--serif); font-size: 20px; font-style: italic; white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--champagne-soft); font-size: 11px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- cifras ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stat { padding: clamp(30px, 4vw, 52px) var(--pad); border-right: 1px solid var(--line); text-align: center; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); font-weight: 550; color: var(--champagne-soft); }
.stat b i { font-style: normal; font-size: .55em; }
.stat > span { font-size: 12.5px; color: var(--ivory-dim); }

/* ---------- el club ---------- */
.club { padding: clamp(70px, 11vh, 130px) var(--pad); }
.club-head { margin-bottom: 48px; }
.club-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.ccard { border: 1px solid var(--line); background: var(--carbon-2); transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .5s; }
.ccard:hover { transform: translateY(-7px); border-color: rgba(201, 162, 75, .5); }
.ccard-media { aspect-ratio: 4 / 2.9; overflow: hidden; }
.ccard-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) sepia(.06); transition: transform 1.3s cubic-bezier(.2,.7,.2,1); }
.ccard:hover .ccard-media video { transform: scale(1.05); }
.ccard-body { padding: 24px 26px 26px; }
.ccard-body h3 { margin-bottom: 8px; color: var(--champagne-soft); }
.ccard-body p { font-size: 14.5px; color: var(--ivory-dim); }

/* ---------- reserva visual ---------- */
.book {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 70px);
  align-items: center;
  padding: clamp(70px, 11vh, 130px) var(--pad);
  background: var(--carbon-2); border-block: 1px solid var(--line);
}
.book-copy > p.reveal { margin-top: 16px; color: var(--ivory-dim); max-width: 44ch; }
.book-picked { font-family: var(--mono); font-size: 13.5px; color: var(--champagne-soft); margin-top: 18px; min-height: 1.4em; }
.book-grid { border: 1px solid var(--line); background: var(--carbon); }
.book-days { display: flex; border-bottom: 1px solid var(--line); }
.book-days button {
  flex: 1; padding: 14px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: 13px; color: var(--ivory-dim);
  border-right: 1px solid var(--line);
  transition: background .25s, color .25s;
}
.book-days button:last-child { border-right: 0; }
.book-days button.on, .book-days button:hover { background: var(--emerald); color: var(--ivory); }
.book-slots {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); padding: 1px;
}
.slot {
  background: var(--carbon); padding: 13px 8px; text-align: center;
  font-family: var(--mono); font-size: 12.5px; color: var(--ivory);
  cursor: pointer; border: 0;
  transition: background .2s, color .2s;
}
.slot small { display: block; font-size: 10px; color: var(--ivory-dim); }
.slot.busy { color: rgba(242, 238, 230, .25); cursor: not-allowed; text-decoration: line-through; }
.slot.busy small { color: rgba(242, 238, 230, .18); }
.slot:not(.busy):hover { background: rgba(201, 162, 75, .18); }
.slot.picked { background: var(--champagne); color: var(--carbon); }
.slot.picked small { color: rgba(16, 16, 18, .7); }

/* ---------- manifiesto ---------- */
.manifesto { min-height: 150vh; position: relative; }
.manifesto-sticky {
  position: sticky; top: 0; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--pad);
}
.manifesto-text {
  max-width: 22ch;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(32px, 5.6vw, 68px); line-height: 1.2;
}
.manifesto-text .w { color: rgba(242, 238, 230, .15); transition: color .4s; }
.manifesto-text .w.lit { color: var(--ivory); }
.manifesto-text .w.lit:nth-child(4n) { color: var(--champagne-soft); }

/* ---------- membresías ---------- */
.price-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  padding: 0 var(--pad) clamp(70px, 11vh, 120px);
}
.price-card {
  border: 1px solid var(--line); background: var(--carbon-2); padding: 34px 32px;
  display: grid; gap: 10px; justify-items: start;
}
.price-card span { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ivory-dim); }
.price-card b { font-family: var(--serif); font-weight: 550; font-size: clamp(42px, 4.6vw, 62px); line-height: 1; }
.price-card b i { font-style: normal; font-size: 18px; color: var(--ivory-dim); }
.price-card p { font-size: 13.5px; color: var(--ivory-dim); }
.price-card.hot { background: var(--emerald); border-color: var(--emerald); }
.price-card.hot span, .price-card.hot p { color: rgba(242, 238, 230, .8); }
.price-card.hot b { color: var(--ivory); }

/* ---------- CTA ---------- */
.cta {
  padding: clamp(90px, 14vh, 160px) var(--pad); text-align: center;
  background:
    radial-gradient(55% 85% at 50% 115%, rgba(201, 162, 75, .18), transparent 70%),
    var(--carbon-2);
  border-top: 1px solid var(--line);
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 36px 0 22px; }
.cta-note { font-size: 13px; color: var(--ivory-dim); }

/* ---------- footer ---------- */
.footer { padding: 66px var(--pad) 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(26px, 4vw, 60px); margin-bottom: 50px; }
.footer-logo { font-family: var(--serif); font-size: 27px; font-weight: 600; }
.footer-logo em { font-style: italic; color: var(--champagne-soft); }
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--ivory-dim); max-width: 36ch; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); margin-bottom: 16px; font-weight: 500; }
.footer-col li { font-size: 14.5px; color: var(--ivory-dim); padding: 4px 0; }
.footer-col a:hover { color: var(--champagne-soft); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ivory-dim);
}
.footer-legal a:hover { color: var(--champagne-soft); }

/* ---------- interiores ---------- */
.page-hero { padding: clamp(140px, 21vh, 200px) var(--pad) clamp(40px, 7vh, 70px); max-width: 980px; }
.page-hero h1 { font-size: clamp(44px, 6.8vw, 92px); font-weight: 550; margin: 8px 0 22px; }
.page-hero p { color: var(--ivory-dim); font-size: 17.5px; max-width: 54ch; }

.flist { padding: 10px var(--pad) clamp(70px, 10vh, 110px); display: grid; gap: clamp(14px, 2vw, 22px); }
.frow {
  display: grid; grid-template-columns: 70px 1fr 1.4fr auto; gap: clamp(16px, 3vw, 40px);
  align-items: center;
  border: 1px solid var(--line); background: var(--carbon-2);
  padding: 26px clamp(20px, 3vw, 38px);
  transition: border-color .35s, transform .35s;
}
.frow:hover { border-color: rgba(201, 162, 75, .5); transform: translateX(6px); }
.frow > span { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--champagne-soft); }
.frow h3 { font-size: 22px; }
.frow small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); }
.frow p { font-size: 14.5px; color: var(--ivory-dim); }
.frow b { font-family: var(--serif); font-size: 19px; color: var(--champagne-soft); white-space: nowrap; }

.contact { padding: 10px var(--pad) clamp(70px, 10vh, 110px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 4vw, 64px); align-items: start; }
.cform { border: 1px solid var(--line); background: var(--carbon-2); padding: clamp(28px, 4vw, 50px); display: grid; gap: 20px; }
.cform label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory-dim); display: grid; gap: 9px; }
.cform input, .cform select, .cform textarea {
  font: 500 16px var(--sans); color: var(--ivory);
  background: var(--carbon); border: 1px solid var(--line);
  padding: 13px 15px; outline: none; transition: border-color .3s; width: 100%;
}
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--champagne); }
.cform select option { background: var(--carbon-2); }
.cform button { cursor: pointer; border: 0; }
.form-ok { text-align: center; padding: 40px 10px; }
.form-ok b { font-family: var(--serif); font-style: italic; font-size: 30px; display: block; margin-bottom: 10px; color: var(--champagne-soft); }
.form-ok p { color: var(--ivory-dim); }
.cinfo { display: grid; border: 1px solid var(--line); }
.cinfo-card { padding: 28px 30px; border-bottom: 1px solid var(--line); background: var(--carbon-2); }
.cinfo-card:last-child { border-bottom: 0; }
.cinfo-card h3 { font-size: 20px; margin-bottom: 8px; color: var(--champagne-soft); }
.cinfo-card p { font-size: 14.5px; color: var(--ivory-dim); }
.cinfo-card a { color: var(--champagne-soft); font-weight: 600; }

.legal-body { padding: 10px var(--pad) clamp(70px, 10vh, 110px); max-width: 760px; color: var(--ivory-dim); display: grid; gap: 16px; }
.legal-body h2 { font-size: 28px; margin-top: 18px; color: var(--ivory); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .club-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .book { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 54px 1fr auto; }
  .frow p { display: none; }
  .price-strip { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .burger {
    display: block; position: relative;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 0;
    background: transparent; cursor: pointer; z-index: 61;
  }
  .burger i {
    position: absolute; left: 50%; top: 50%;
    width: 18px; height: 1.5px; margin: -1px 0 0 -9px;
    background: var(--champagne-soft);
    transition: transform .35s; display: block;
  }
  .burger i:first-child { transform: translateY(-3px); }
  .burger i:last-child { transform: translateY(3px); }
  .burger.active i:first-child { transform: rotate(45deg); }
  .burger.active i:last-child { transform: rotate(-45deg); }

  .rig-labels span { font-size: 10.5px; padding: 6px 9px; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .book-slots { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .frow { grid-template-columns: 1fr; gap: 8px; }
  /* pie compacto en móvil */
  .footer { padding: 40px var(--pad) 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-bottom: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { font-size: 13px; }
  .footer-col h4 { margin-bottom: 8px; }
  .footer-col li { font-size: 13px; padding: 2.5px 0; }
  .footer-legal { flex-direction: column; gap: 6px; padding-top: 16px; font-size: 11.5px; }
}
