/* Liga de Tenis de Bolívar · Complejo de Raquetas. Tema claro. El panel suma admin.css. */

:root {
  color-scheme: light;
  --bg: #fbfbf8;
  --bg-raised: #ffffff;
  --bg-sunk: #f2f3ee;
  --bg-hover: #eff1eb;
  --bg-pressed: #e6e9e1;
  --line: rgb(20 26 18 / 0.09);
  --line-strong: rgb(20 26 18 / 0.17);
  --text: #141a12;
  --text-2: #545d51;
  --text-3: #767e72;
  --accent: #1764c0; /* azul de las canchas */
  --accent-hover: #12539f;
  --accent-ink: #ffffff;
  --accent-soft: rgb(23 100 192 / 0.1);
  --danger: #c23b2a;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ui: 'Geist', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1360px; /* ancho de todo el contenido, incluido el margen lateral */
  --edge: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter))); /* margen que alinea bandas y encabezado con ese contenido */
  --top: 72px;
  --shadow: 0 1px 2px rgb(20 26 18 / 0.06), 0 12px 32px -12px rgb(20 26 18 / 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto; /* los atributos width/height solo reservan la proporción */
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
p,
figure,
address {
  margin: 0;
}
address {
  font-style: normal;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.display {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}
.title {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 650;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.kicker {
  font: 600 12px/1.3 var(--ui);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead {
  max-width: 52ch;
  margin-top: 20px;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.muted {
  color: var(--text-2);
}
.more {
  color: var(--accent);
  font-weight: 550;
  text-decoration: none;
}
.more::after {
  content: ' \2192';
}

/* ---------- encabezado ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--top);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 var(--edge);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
}
.brand img {
  width: auto;
  height: 50px;
}
.brand span {
  font: 600 15px/1 var(--display);
  font-stretch: 110%;
}
.nav {
  display: flex;
  gap: 2px;
}
.nav a,
.top .quiet {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}
.nav a[aria-current='page'],
.top .quiet[aria-current='page'] {
  color: var(--text);
  background: var(--bg-hover);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover,
  .top .quiet:hover {
    color: var(--text);
  }
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.menu {
  display: none;
}
.menu summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  list-style: none;
  cursor: pointer;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary svg {
  width: 22px;
  height: 22px;
}
.menu[open] summary {
  background: var(--bg-hover);
}
.menu-panel {
  position: absolute;
  top: calc(var(--top) - 4px);
  right: var(--gutter);
  display: grid;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}
.menu-panel a {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}
.menu-panel a:hover {
  background: var(--bg-hover);
}
@media (max-width: 1000px) {
  .nav,
  .top .quiet {
    display: none;
  }
  .menu {
    display: block;
  }
}

/* ---------- botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-raised);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn.danger {
  color: var(--danger);
  border-color: rgb(194 59 42 / 0.35);
}
.btn.danger.solid,
.btn.danger[data-armed='1'] {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn.lg {
  height: 52px;
  padding: 0 24px;
  font-size: 16px;
}
.btn.sm {
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
}
.btn.block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover {
    background: var(--bg-hover);
    border-color: var(--text-3);
  }
  .btn.primary:not(:disabled):hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
  }
  .btn.danger:not(:disabled):hover {
    background: rgb(194 59 42 / 0.07);
    border-color: var(--danger);
  }
  .btn.danger[data-armed='1']:hover,
  .btn.danger.solid:hover {
    background: #a83222;
    border-color: #a83222;
  }
}
.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  cursor: pointer;
}
.top .link {
  padding: 8px 12px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}
.icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms var(--ease-out);
}
.icon svg {
  width: 18px;
  height: 18px;
}
.icon:active {
  transform: scale(0.94);
}
@media (hover: hover) and (pointer: fine) {
  .icon:hover {
    background: var(--bg-hover);
    color: var(--text);
  }
}

/* ---------- control segmentado (botones o enlaces) ---------- */

.seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-sunk);
}
.seg button,
.seg a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}
.seg [aria-pressed='true'],
.seg [aria-current='page'] {
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(20 26 18 / 0.1), 0 0 0 1px var(--line);
}
.seg button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------- formularios (estilo Ajustes) ---------- */

.auth {
  display: grid;
  gap: 16px;
}
.auth .seg {
  display: grid;
}
.group {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-raised);
}
.row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 14px;
  transition: background-color 160ms ease;
}
.row:not([hidden]) ~ .row:not([hidden]) {
  border-top: 1px solid var(--line);
}
.row > span {
  font-size: 15px;
  color: var(--text-2);
}
.row input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
}
.row:focus-within {
  background: var(--bg-hover);
}
.row.invalid > span {
  color: var(--danger);
}
.field {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  background: var(--bg-raised);
  font-size: 16px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}
.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field::placeholder {
  color: var(--text-3);
}
.form-error {
  color: var(--danger);
  font-size: 14px;
}
.form-error:empty {
  display: none;
}

/* ---------- hoja (dialog) ---------- */

.sheet {
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: 0 40px 120px -24px rgb(20 26 18 / 0.4);
  opacity: 1;
  transform: none;
  transition:
    opacity 200ms ease,
    transform 240ms var(--ease-out),
    overlay 240ms allow-discrete,
    display 240ms allow-discrete;
}
.sheet:not([open]) {
  opacity: 0;
  transform: scale(0.98);
  transition-duration: 140ms;
}
@starting-style {
  .sheet[open] {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}
.sheet::backdrop {
  background: rgb(20 26 18 / 0.32);
  opacity: 1;
  transition:
    opacity 200ms ease,
    overlay 200ms allow-discrete,
    display 200ms allow-discrete;
}
.sheet:not([open])::backdrop {
  opacity: 0;
}
@starting-style {
  .sheet[open]::backdrop {
    opacity: 0;
  }
}
.sheet-body {
  display: grid;
  gap: 16px;
  padding: 18px 20px 20px;
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sheet-head .icon {
  margin: -6px -8px 0 0;
}
.sheet-title {
  padding-top: 2px;
  font: 600 17px/1.35 var(--display);
  font-stretch: 106%;
  letter-spacing: -0.01em;
}
@media (max-width: 600px) {
  .sheet {
    width: 100%;
    max-height: 92svh;
    margin: auto 0 0;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    transition:
      transform 320ms var(--ease-drawer),
      overlay 320ms allow-discrete,
      display 320ms allow-discrete;
  }
  .sheet:not([open]) {
    opacity: 1;
    transform: translateY(100%);
    transition-duration: 220ms;
  }
  @starting-style {
    .sheet[open] {
      opacity: 1;
      transform: translateY(100%);
    }
  }
  .sheet-body {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* ---------- inicio ---------- */

/* Texto y video comparten un bloque centrado: las proporciones no cambian en pantallas anchas. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  max-width: var(--wide);
  min-height: min(calc(100svh - var(--top)), 940px); /* en pantallas altas no sobra aire arriba y abajo del video */
  margin: 0 auto;
  padding: 32px var(--gutter);
}
.hero-copy {
  max-width: 660px;
}
.hero h1 {
  max-width: 11ch;
  margin-top: 18px;
  font-size: clamp(2.7rem, 1rem + 4.4vw, 5.4rem);
}
.hero-copy .btn {
  margin-top: 32px;
}
/* Marco vertical como el video (9:16), alto según la pantalla. */
.hero-video {
  position: relative;
  height: clamp(480px, calc(100svh - var(--top) - 64px), 860px);
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border-radius: 16px;
  background: #d9ded3 url('/img/aerea-1080.webp') center / cover;
}
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.today {
  max-width: 600px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  transition: opacity 300ms ease;
}
@starting-style {
  .today {
    opacity: 0;
  }
}
.today h2 {
  font: 600 12px/1 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.slot {
  display: flex;
  align-items: baseline;
  gap: 4px;
  height: 42px;
  padding: 12px 14px 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg-raised);
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms var(--ease-out);
}
.slot b {
  font: 600 16px/1 var(--display);
  font-stretch: 108%;
  font-variant-numeric: tabular-nums;
}
.slot span {
  font-size: 12px;
  color: var(--text-2);
}
.slot:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .slot:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
  }
  .slot:hover span {
    color: var(--accent-ink);
  }
}

/* Mismo bloque centrado que el inicio: la foto en marco y el texto al lado, sin vacíos en pantallas anchas. */
.courts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 96px) var(--gutter);
}
.courts figure img {
  width: 100%;
  max-height: min(86vh, 820px);
  object-fit: cover;
  border-radius: 16px;
}
figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-3);
}
.count {
  display: block;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(8rem, 3rem + 16vw, 16rem);
  line-height: 0.76;
  letter-spacing: -0.07em;
  margin-left: -0.05em;
  color: var(--accent);
}
.courts h2 {
  max-width: 15ch;
  margin-top: 22px;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
  line-height: 1.02;
}
.hours {
  display: grid;
  max-width: 520px;
  margin: 40px 0 0;
  border-top: 1px solid var(--line-strong);
}
.hours div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.hours dt {
  color: var(--text-2);
}
.hours dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.band {
  background: var(--bg-sunk);
}
.how,
.enroll,
.ficha {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 112px);
  padding: clamp(56px, 7vw, 104px) var(--edge);
}
.how h2,
.enroll h2,
.ficha h2 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem);
}
.steps {
  display: grid;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.45;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 1.6em;
  line-height: 0.9;
  color: var(--accent);
}
.steps li span {
  color: var(--text-2);
}
.rules {
  align-self: end;
}
.rules ul {
  display: grid;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.rules li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.rules li b {
  color: var(--text);
  font-weight: 600;
}
.rules .call {
  color: var(--text-2);
}
.rules .call a {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.school,
.liga-teaser,
.visit {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) var(--gutter);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
}
.section-head h2 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem);
}
.price-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.price-list a {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.price-name {
  font: 620 clamp(1.15rem, 1rem + 0.7vw, 1.55rem)/1.2 var(--display);
  font-stretch: 106%;
  letter-spacing: -0.015em;
  transition: color 160ms ease;
}
.price-what {
  color: var(--text-2);
}
.price-value {
  font: 680 clamp(1.3rem, 1rem + 1vw, 1.9rem)/1 var(--display);
  font-stretch: 112%;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
  .price-list a:hover .price-name {
    color: var(--accent);
  }
}

.liga-teaser {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  border-top: 1px solid var(--line);
}
.liga-teaser h2 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem);
  line-height: 1.02;
}
.liga-teaser p:not(.kicker) {
  max-width: 46ch;
  margin-top: 20px;
  color: var(--text-2);
}
.liga-teaser .btn {
  margin-top: 28px;
}
.faces {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.faces img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-sunk);
}
.faces li:nth-child(even) {
  transform: translateY(24px);
}

.visit {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}
.visit h2 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem);
}
.visit address {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--text-2);
}
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- páginas de la Liga ---------- */

.page {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(64px, 8vw, 112px);
}
.page-head {
  max-width: 900px;
}
.page-head h1 {
  margin-top: 14px;
  font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.4rem);
}
.page-head .kicker + h1 {
  margin-top: 14px;
}
.page-head h1:first-child {
  margin-top: 0;
}
.page > section {
  margin-top: clamp(56px, 7vw, 96px);
}
.page > .band {
  margin-right: calc(var(--gutter) * -1);
  margin-left: calc(var(--gutter) * -1);
  border-radius: 14px;
}
.page .how,
.page .enroll,
.page .ficha {
  padding: clamp(40px, 5vw, 72px) var(--gutter);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 48px 0 0;
  border-top: 1px solid var(--line-strong);
}
.facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  padding: 22px 16px 0 0;
}
.facts dd {
  margin: 0;
  font: 700 clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem)/1 var(--display);
  font-stretch: 120%;
  letter-spacing: -0.045em;
}
.facts dt {
  color: var(--text-2);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}
.prose h2 {
  margin-bottom: 12px;
  font: 650 1.5rem/1.2 var(--display);
  font-stretch: 108%;
  letter-spacing: -0.02em;
}
.prose h2:not(:first-child) {
  margin-top: 36px;
}
.prose p {
  max-width: 62ch;
  color: var(--text-2);
}
.prose > * + * {
  margin-top: 14px;
}
.prose ul {
  margin-bottom: 0;
  padding-left: 20px;
  color: var(--text-2);
}
.prose li + li {
  margin-top: 4px;
}
.about figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

.people-section h2 {
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.8rem);
}
.people,
.coaches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px);
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.coaches {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.people img,
.coaches img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-sunk);
}
.people h3,
.coaches h3 {
  margin-top: 14px;
  font: 650 1.12rem/1.25 var(--display);
  font-stretch: 106%;
  letter-spacing: -0.01em;
}
.role {
  margin-top: 4px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 550;
}
.note {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 14.5px;
}
.tribute .note {
  font-style: italic;
}
.certs {
  display: grid;
  gap: 3px;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--text-2);
  font-size: 13.5px;
}

.plans {
  display: grid;
  border-top: 1px solid var(--line-strong);
}
.plan {
  display: grid;
  grid-template-columns: minmax(170px, 3fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 64px);
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.plan .price-value {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
}
.plan .price-what {
  margin-top: 8px;
}
.plan h2 {
  font: 650 clamp(1.45rem, 1.2rem + 1vw, 2rem)/1.15 var(--display);
  font-stretch: 108%;
  letter-spacing: -0.02em;
}
.plan-body > p {
  max-width: 60ch;
  margin-top: 10px;
  color: var(--text-2);
}
.plan-body ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-2);
}
.plan-body .plan-note {
  margin-top: 14px;
  color: var(--text);
  font-weight: 550;
}
.plan .btn {
  margin-top: 20px;
}

.ranking-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
}
.ranking-tools .field {
  width: min(320px, 100%);
}
.ranking {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.ranking caption {
  padding-bottom: 10px;
  text-align: left;
  color: var(--text-2);
  font-size: 14px;
}
.ranking th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  color: var(--text-2);
  font: 600 12px/1 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ranking td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.ranking th:first-child,
.ranking td:first-child {
  width: 110px;
}
.ranking th:last-child,
.ranking td:last-child {
  text-align: right;
}
.ranking td:last-child {
  font-weight: 600;
}
.ranking tbody tr:nth-child(-n + 3) td:first-child {
  color: var(--accent);
  font-weight: 700;
}
.empty-filter {
  padding: 24px 12px;
  color: var(--text-2);
}

.news {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.news a {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.news a.no-image {
  grid-template-columns: minmax(0, 1fr);
}
.news img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: 6px;
}
.news time {
  color: var(--text-2);
  font-size: 14px;
}
.news h2 {
  margin-top: 8px;
  font: 650 clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem)/1.15 var(--display);
  font-stretch: 106%;
  letter-spacing: -0.02em;
  transition: color 160ms ease;
}
.news p {
  margin-top: 10px;
  color: var(--text-2);
}
@media (hover: hover) and (pointer: fine) {
  .news a:hover h2 {
    color: var(--accent);
  }
}
.post {
  max-width: 780px;
}
.post > img {
  width: 100%;
  margin-top: 32px;
  border-radius: 6px;
}
.post .prose {
  margin-top: 32px;
}
.post .more {
  display: inline-block;
  margin-top: 36px;
}
.roster {
  margin: 24px 0;
  border-top: 1px solid var(--line-strong);
}
.roster div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.roster dt {
  color: var(--text-2);
}
.roster dd {
  margin: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}
.contact-list {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
.contact-list > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt {
  color: var(--text-2);
}
.contact-list dd {
  display: grid;
  gap: 4px;
  margin: 0;
}
.contact-list a {
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-list b {
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .contact-list a:hover {
    color: var(--accent);
  }
}
.map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 8px;
  background: var(--bg-sunk);
}
.map .btn {
  margin-top: 12px;
}
.ficha .btn {
  margin-top: 24px;
}
.ficha .steps {
  margin-top: 0;
}

/* ---------- pie ---------- */

.foot {
  padding: 56px var(--edge) 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-sunk);
  color: var(--text-2);
  font-size: 14px;
}
.foot-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 32px;
}
.foot-id img {
  width: 92px;
  height: auto;
}
.foot-id p {
  margin-top: 12px;
}
.foot-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}
.foot a {
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .foot a:hover {
    color: var(--text);
  }
}
.foot-contact p + p {
  margin-top: 12px;
}
.allies {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.allies img {
  width: auto;
  height: 40px;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: 0.7;
  transition:
    filter 200ms ease,
    opacity 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .allies img:hover {
    filter: none;
    opacity: 1;
  }
}
.foot-legal {
  margin-top: 24px;
  color: var(--text-3);
  font-size: 12.5px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 0 0 48px;
  }
  .hero-video {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 72svh;
    border-radius: 0;
  }
  .hero-copy {
    padding: 32px var(--gutter) 0;
  }
  .courts,
  .liga-teaser,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }
  .courts {
    padding: 0 0 56px;
  }
  .courts > div,
  .courts figcaption {
    padding: 0 var(--gutter);
  }
  .courts figure img {
    border-radius: 0;
  }
  .how,
  .enroll,
  .ficha {
    grid-template-columns: 1fr;
  }
  .faces {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .people,
  .coaches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .news a {
    grid-template-columns: 1fr;
  }
  .foot-main {
    grid-template-columns: 1fr 1fr;
  }
  .foot-id {
    grid-column: 1 / -1;
  }
  .price-list a {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .price-what {
    grid-row: 2;
    font-size: 14px;
  }
}
@media (max-width: 520px) {
  .contact-list > div,
  .roster div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .ranking th:first-child,
  .ranking td:first-child {
    width: 64px;
  }
  .faces li:nth-child(even) {
    transform: none;
  }
}

/* ---------- reservar y mis reservas ---------- */

.split {
  display: grid;
  grid-template-columns: min(calc(var(--edge) + 672px), 60%) minmax(0, 1fr); /* la foto empieza donde termina el contenido */
  min-height: calc(100svh - var(--top));
}
/* El contenido arranca en el mismo borde que el logo del encabezado. */
.pane {
  width: 100%;
  max-width: calc(var(--edge) + 672px);
  padding: 44px var(--gutter) 0 var(--edge);
}
.side {
  position: sticky;
  top: var(--top);
  height: calc(100svh - var(--top));
  overflow: hidden;
}
.side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 960px) {
  .split {
    grid-template-columns: 1fr;
  }
  .side {
    display: none;
  }
}

.picker {
  display: grid;
  gap: 28px;
  margin-top: 28px;
  padding-bottom: 40px;
}
.notice {
  padding: 12px 14px;
  border: 1px solid rgb(194 59 42 / 0.28);
  border-radius: 10px;
  background: rgb(194 59 42 / 0.06);
  font-size: 15px;
}
.notice a,
.notice button {
  color: var(--text);
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.controls small {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}
.controls [aria-pressed='true'] small {
  color: var(--text-2);
}
.courts-pick {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(8, minmax(0, 1fr));
  gap: 6px;
}
.times {
  display: grid;
  gap: 16px;
}
.time-block {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px;
}
.time-block + .time-block {
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}

.court,
.time {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-raised);
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}
.court:active,
.time:active {
  transform: scale(0.96);
}
.court[aria-pressed='true'],
.time[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.court:disabled,
.time:disabled {
  cursor: default;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .court:not(:disabled, [aria-pressed='true']):hover,
  .time:not(:disabled, .later, [aria-pressed='true']):hover {
    border-color: var(--accent);
  }
}
.court {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 74px;
  padding: 10px 4px;
  color: var(--text-2);
}
.court svg {
  width: 40px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}
.court span {
  font: 650 15px/1 var(--display);
  font-stretch: 110%;
  color: var(--text);
}
.court.any span {
  font: 550 12px/1 var(--ui);
}
.court[aria-pressed='true'] span {
  color: inherit;
}
.court:disabled {
  opacity: 0.32;
}
.time {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  height: 52px;
  padding-top: 16px;
  scroll-margin-bottom: 104px; /* que la barra de abajo no la tape */
}
.time b {
  font: 600 18px/1 var(--display);
  font-stretch: 108%;
  font-variant-numeric: tabular-nums;
}
.time span {
  font-size: 12px;
  color: var(--text-2);
}
.time[aria-pressed='true'] span {
  color: inherit;
}
.time:disabled {
  border-color: transparent;
  background: var(--bg-sunk);
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: rgb(20 26 18 / 0.25);
}
.time:disabled span {
  color: var(--text-3);
}
/* Libre pero todavía fuera de las 24 horas: borde punteado, sin tachar. Al tocarla dice cuándo se abre. */
.time.later {
  border-style: dashed;
  background: transparent;
  color: var(--text-3);
  cursor: help;
}
.time.later span {
  color: var(--text-3);
}
.time.later:active {
  transform: none;
}
@media (max-width: 640px) {
  .courts-pick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .court {
    min-height: 66px;
  }
}

.bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 calc(var(--gutter) * -1) 0 calc(var(--edge) * -1);
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)) var(--edge);
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  box-shadow: 0 -12px 32px -20px rgb(20 26 18 / 0.25);
  transition:
    transform 260ms var(--ease-out),
    opacity 200ms ease;
}
@starting-style {
  .bar {
    transform: translateY(100%);
    opacity: 0;
  }
}
.bar p {
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
}
.bar b {
  font-weight: 600;
}

.done {
  padding: 12px 0 72px;
}
.done-court {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.done-court span {
  padding-bottom: 0.6em;
  font: 600 13px/1 var(--ui);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-2);
}
.done-court b {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(7.5rem, 4rem + 14vw, 12rem);
  line-height: 0.78;
  letter-spacing: -0.07em;
  color: var(--accent);
  animation: rise 520ms var(--ease-out) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}
.done h1 {
  margin-top: 36px;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
  line-height: 1.05;
}
.done .muted {
  margin-top: 18px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.mine {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.mine li {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.date {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 9px 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
}
.date span {
  font-size: 12px;
  color: var(--text-2);
}
.date b {
  font: 650 23px/1 var(--display);
  font-stretch: 110%;
}
.when {
  font: 600 18px/1.2 var(--display);
  font-stretch: 106%;
}
.when + .muted {
  margin-top: 3px;
  font-size: 14px;
}
.empty {
  display: grid;
  justify-items: start;
  gap: 22px;
  margin-top: 24px;
}
.account {
  margin: 40px 0 56px;
  color: var(--text-3);
  font-size: 14px;
}
.account .link {
  color: var(--text-2);
}
.auth-slot {
  max-width: 440px;
  margin-top: 28px;
}
#mine > .notice {
  margin-top: 24px;
}

.lost {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
  min-height: calc(100svh - var(--top));
  padding: 0 var(--edge);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-property: opacity, background-color, border-color, color !important;
  }
}
