:root {
  /* El azul de la cancha, la pelota y la línea de cal */
  --cancha: oklch(0.47 0.21 264);
  --cancha-hondo: oklch(0.34 0.17 266);
  --noche: oklch(0.19 0.06 266);
  --lima: oklch(0.93 0.21 121);
  --lima-hondo: oklch(0.82 0.2 124);
  --cal: oklch(0.98 0.008 110);
  --cal-suave: oklch(0.9 0.02 250);

  --ancho: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --seccion: clamp(72px, 12vw, 160px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --t-display: clamp(4.2rem, 19vw, 11rem);
  --t-h2: clamp(2.6rem, 9vw, 5.4rem);
  --t-h3: clamp(1.35rem, 4.4vw, 1.75rem);
  --t-base: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--cal);
  background: var(--noche);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-style: italic;
  font-weight: 900;
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.01em;
}

h2 { font-size: var(--t-h2); max-width: 14ch; }

/* ---------- Botón principal ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1.05em 1.6em 1em;
  border-radius: 999px;
  background: var(--lima);
  color: var(--noche);
  font-weight: 800;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.3rem);
  text-decoration: none;
  box-shadow: 0 10px 30px -8px oklch(0.93 0.21 121 / 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.2s;
}
.cta:hover { transform: translateY(-2px); background: oklch(0.96 0.19 119); box-shadow: 0 16px 36px -10px oklch(0.93 0.21 121 / 0.7); }
.cta:active { transform: translateY(1px) scale(0.98); }
.cta:focus-visible, .barra:focus-visible, .mapa:focus-visible { outline: 3px solid var(--cal); outline-offset: 4px; }
.opciones .cta:focus-visible, .cierre .cta:focus-visible { outline-color: var(--noche); }
@media (max-width: 420px) { .hero .cta { width: 100%; justify-content: center; padding-inline: 1rem; } }
.cta-icono { width: 1.35em; height: 1.35em; fill: currentColor; flex: none; }
.cta-oscuro { background: var(--noche); color: var(--lima); box-shadow: none; }
.cta-oscuro:hover { background: var(--cancha-hondo); box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.hero-foto, .hero-velo { position: absolute; inset: 0; z-index: -1; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 45%; }
.hero-velo {
  background:
    linear-gradient(180deg, oklch(0.19 0.06 266 / 0.15) 0%, oklch(0.19 0.06 266 / 0) 30%),
    linear-gradient(0deg, var(--cancha-hondo) 8%, oklch(0.34 0.17 266 / 0.82) 38%, oklch(0.34 0.17 266 / 0) 72%);
}
.hero-contenido {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom));
}
.lugar {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: oklch(0.19 0.06 266 / 0.55);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
h1 { display: grid; gap: 0.1em; margin-bottom: 1.4rem; }
.h1-chico { font-size: clamp(1.6rem, 7vw, 3rem); color: var(--cal); }
.h1-grande { font-size: var(--t-display); color: var(--lima); line-height: 0.82; }
.h1-padel { font-size: clamp(1.6rem, 7vw, 3rem); color: var(--cal); }
.bajada { max-width: 34ch; margin-bottom: 0.6rem; color: var(--cal); }
.dato { margin-bottom: 1.8rem; font-weight: 800; color: var(--lima); }
.nota { margin-top: 0.9rem; font-size: 0.9rem; color: var(--cal-suave); }

/* ---------- Pasos ---------- */
.pasos {
  position: relative;
  padding: var(--seccion) var(--gutter);
  background: var(--cancha);
  overflow: hidden;
  isolation: isolate;
}
.lineas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.lineas path { stroke: oklch(0.98 0.008 110 / 0.22); stroke-width: 3; fill: none; vector-effect: non-scaling-stroke; }
.pasos h2, .pasos ol { max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.pasos h2 { margin-bottom: clamp(40px, 7vw, 72px); }
.pasos ol { list-style: none; display: grid; gap: clamp(28px, 5vw, 48px); }
.pasos li { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 4vw, 32px); align-items: start; }
.num {
  font-style: italic;
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-size: clamp(4.5rem, 18vw, 7.5rem);
  line-height: 0.75;
  color: var(--lima);
  min-width: 0.6em;
}
.pasos h3 { font-size: var(--t-h3); margin: 0.2em 0 0.35em; }
.pasos p { max-width: 42ch; color: oklch(0.95 0.02 250); }

/* ---------- Opciones ---------- */
.opciones {
  padding: var(--seccion) var(--gutter);
  background: var(--lima);
  color: var(--noche);
}
.opciones > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.opciones-bajada { margin-top: 1rem; font-weight: 600; }
.menu { list-style: none; margin: clamp(36px, 6vw, 64px) auto clamp(36px, 6vw, 56px); border-top: 3px solid var(--noche); }
.menu li { padding: clamp(20px, 4vw, 30px) 0; border-bottom: 3px solid var(--noche); display: grid; gap: 0.4rem; }
.menu-cabeza { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.menu-nombre { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; }
.menu-precio {
  white-space: nowrap;
  font-style: italic;
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-size: clamp(2.5rem, 12vw, 5.2rem);
  line-height: 0.85;
}
.menu-precio::after { content: " c/u"; font-size: 0.32em; font-style: normal; font-weight: 700; letter-spacing: 0.02em; }
.menu li p { max-width: 46ch; }
.menu-destacada { position: relative; }
.menu-destacada .menu-nombre::after {
  content: "La más completa";
  display: block;
  width: max-content;
  margin-top: 0.5em;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  background: var(--noche);
  color: var(--lima);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ---------- Club ---------- */
.club {
  padding: var(--seccion) var(--gutter);
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  grid-template-columns: repeat(6, 1fr);
  max-width: calc(var(--ancho) + 2 * var(--gutter));
  margin: 0 auto;
}
.club-texto { grid-column: 1 / -1; margin-bottom: clamp(16px, 4vw, 40px); }
.club-texto h2 { color: var(--lima); margin-bottom: 1.2rem; max-width: 16ch; }
.club-texto p { max-width: 50ch; color: var(--cal-suave); }
.foto { overflow: hidden; border-radius: 18px; background: var(--cancha-hondo); }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.foto:hover img { transform: scale(1.04); }
.foto-a { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.foto-b { grid-column: 1 / 4; aspect-ratio: 4 / 5; }
.foto-c { grid-column: 4 / -1; aspect-ratio: 4 / 5; margin-top: clamp(32px, 8vw, 80px); }
.foto-b img { object-position: 50% 20%; }
.foto-c img { object-position: 40% 70%; }

/* ---------- Dónde ---------- */
.donde {
  padding: var(--seccion) var(--gutter);
  background: var(--cancha-hondo);
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}
.donde > * { width: 100%; max-width: var(--ancho); margin: 0 auto; }
.direccion {
  font-style: italic;
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 11vw, 6rem);
  line-height: 0.9;
  color: var(--lima);
}
.mapa { color: var(--cal); font-weight: 700; text-underline-offset: 0.25em; text-decoration-thickness: 2px; }
.mapa:hover { color: var(--lima); }

/* ---------- Cierre ---------- */
.cierre {
  padding: var(--seccion) var(--gutter) calc(var(--seccion) + 40px);
  background: var(--lima);
  color: var(--noche);
  display: grid;
  gap: clamp(28px, 5vw, 44px);
}
.cierre > * { width: 100%; max-width: var(--ancho); margin: 0 auto; }
.cierre .cta { width: auto; justify-self: start; }
@media (min-width: 0px) { .cierre .cta { margin-left: max(0px, calc((100% - var(--ancho)) / 2)); } }

/* ---------- Barra fija en el celular ---------- */
.barra {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: var(--noche);
  color: var(--cal);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 12px 30px -10px oklch(0.1 0.04 266 / 0.8);
  transform: translateY(160%);
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.barra strong { padding: 0.65em 1.3em; border-radius: 999px; background: var(--lima); color: var(--noche); font-weight: 800; }
.barra { visibility: hidden; pointer-events: none; }
.barra.visible { transform: translateY(0); visibility: visible; pointer-events: auto; }

footer {
  padding: 40px var(--gutter) 110px;
  background: var(--noche);
  color: var(--cal-suave);
  font-size: 0.85rem;
  display: grid;
  gap: 0.4rem;
}
footer > * { width: 100%; max-width: var(--ancho); margin: 0 auto; }
.firma { opacity: 0.7; }
.firma a { color: inherit; font-weight: 700; text-underline-offset: 0.2em; }
.firma a:hover { color: var(--lima); }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 900px) {
  .hero-foto img { object-position: 40% 45%; }
  .hero-velo {
    background:
      linear-gradient(90deg, var(--cancha-hondo) 0%, oklch(0.34 0.17 266 / 0.78) 38%, oklch(0.34 0.17 266 / 0) 70%),
      linear-gradient(0deg, oklch(0.34 0.17 266 / 0.6) 0%, oklch(0.34 0.17 266 / 0) 35%);
  }
  .hero { align-items: center; }
  .hero-contenido { padding-top: 80px; padding-bottom: 80px; }
  .pasos ol { grid-template-columns: repeat(3, 1fr); }
  .pasos li { grid-template-columns: 1fr; }
  .opciones { display: grid; grid-template-columns: 1fr 1.4fr; column-gap: 64px; align-items: start; }
  .opciones > * { max-width: none; margin: 0; }
  .opciones h2, .opciones-bajada, .opciones .cta { grid-column: 1; }
  .opciones .menu { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
  .opciones .cta { justify-self: start; margin-top: 32px; }
  .club-texto { grid-column: 1 / 4; align-self: center; margin: 0; }
  .foto-a { grid-column: 4 / -1; }
  .foto-b { grid-column: 1 / 3; }
  .foto-c { grid-column: 3 / 6; aspect-ratio: 16 / 10; margin-top: 0; }
  .barra { display: none; }
  footer { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
