/* =====================================================================
   Padel PLL — Sistema de diseño (CSS de producción)
   Mismo sistema de tokens que el prototipo aprobado. Paleta neutra
   placeholder — swap fácil por marca real vía las variables de :root.
   ===================================================================== */

@font-face {
  font-family: "PLL Display";
  src: url("../fonts/pll-display.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PLL Text";
  src: url("../fonts/pll-text.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PLL Mono";
  src: url("../fonts/pll-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PLL Mono";
  src: url("../fonts/pll-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F3F5F7;
  --surface: #FFFFFF;
  --surface-2: #EDF0F3;
  --ink: #12161C;
  --ink-soft: #57616F;
  --ink-faint: #88919C;
  --line: #DCE1E7;
  --line-strong: #C4CBD3;
  --court: #2E5C7A;
  --court-strong: #204357;
  --court-tint: #E6EDF2;
  --chalk: #FFFFFF;
  --good: #3E7A54;
  --good-tint: #E4F1E8;
  --warn: #B5791F;
  --warn-tint: #F6EBD8;
  --bad: #AE4634;
  --bad-tint: #F6E4E0;
  --shadow-sm: 0 1px 2px rgba(18, 22, 28, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(18, 22, 28, 0.18);
  --shadow-lg: 0 24px 48px -16px rgba(18, 22, 28, 0.28);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-display: "PLL Display", ui-sans-serif, system-ui, sans-serif;
  --font-body: "PLL Text", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "PLL Mono", ui-monospace, "SFMono-Regular", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10141A; --surface: #171C24; --surface-2: #1D232C;
    --ink: #ECEFF3; --ink-soft: #98A2B0; --ink-faint: #626C79;
    --line: #2A323C; --line-strong: #3A4552;
    --court: #6FA9CE; --court-strong: #8FC0DE; --court-tint: #1C2934;
    --chalk: #F3F5F7;
    --good: #57A874; --good-tint: #17281C;
    --warn: #D6A23C; --warn-tint: #2B2417;
    --bad: #D6684F; --bad-tint: #2B1D18;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 15.5px;
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--court); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
::selection { background: var(--court-tint); color: var(--court-strong); }
:focus-visible { outline: 2px solid var(--court); outline-offset: 2px; }
img { max-width: 100%; }

.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-faint); }

/* ============== APP SHELL (público, mobile-first) ============== */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 8px;
  position: sticky; top: 0; background: var(--paper); z-index: 5;
}
.topbar__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.topbar__brand svg { width: 64px; height: 64px; color: var(--court); }
.topbar__brand img { border-radius: 6px; }
.topbar__brand span { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); text-decoration: none; flex: none;
}
.icon-btn svg { width: 16px; height: 16px; }
.back-row { display: flex; align-items: center; gap: 10px; padding: 16px 18px 4px; }
.screen-title { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.section { padding: 18px 18px; }
.section + .section { padding-top: 0; }
.app-content { flex: 1; padding-bottom: 84px; }

.desktop-nav { display: none; align-items: center; gap: 30px; }
.desktop-nav a { font-size: 15.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.desktop-nav a.is-current { color: var(--court); }
.desktop-nav a.desktop-nav__cta {
  background: var(--court); color: var(--chalk); padding: 9px 16px; border-radius: 10px; font-weight: 700;
}

/* ============== ESCRITORIO (≥860px) ============== */
.tabbar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 9px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  position: sticky; bottom: 0; z-index: 5;
}
.tabbar a {
  background: none; border: none; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  color: var(--ink-faint);
}
.tabbar a.is-current { color: var(--court); }
.tabbar svg { width: 20px; height: 20px; }

.cta-dock {
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; bottom: 0; background: linear-gradient(to top, var(--paper) 65%, transparent);
}

/* ============== BOTONES / FORMS ============== */
.btn-primary {
  width: 100%; background: var(--court); color: var(--chalk); border: none;
  border-radius: var(--radius-md); padding: 15px 18px;
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-primary[disabled] { opacity: .45; pointer-events: none; }
.btn-primary svg { width: 16px; height: 16px; }
.btn-ghost {
  width: 100%; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 13px 18px; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.btn-danger { color: var(--bad); border-color: var(--bad); }
.btn-small {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  border-radius: 9px; padding: 8px 13px; font-size: 12.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.btn-small svg { width: 13px; height: 13px; }

.field { margin-bottom: 14px; }
.field-label { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 7px; display: block; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="tel"], .field input[type="number"], .field input[type="date"],
.field input[type="time"], .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 13px; font-size: 14px; background: var(--surface); color: var(--ink);
}
.field input::placeholder { color: var(--ink-faint); }
.field-hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 5px; }
.field-error { font-size: 12.5px; color: var(--bad); margin-top: 5px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--court); }

.alert { border-radius: var(--radius-md); padding: 12px 14px; font-size: 13.5px; display: flex; gap: 9px; align-items: flex-start; margin-bottom: 14px; }
.alert svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.alert.ok { background: var(--good-tint); color: var(--good); }
.alert.err { background: var(--bad-tint); color: var(--bad); }
.alert.warn { background: var(--warn-tint); color: var(--warn); }
.alert.info { background: var(--court-tint); color: var(--court-strong); }

/* ============== TARJETAS / LISTAS ============== */
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 15px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head h3 { font-size: 15.5px; font-weight: 700; }
.section-head a { font-size: 13px; font-weight: 600; color: var(--court); text-decoration: none; }

.fact-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 18px 4px; scrollbar-width: none; }
.fact-strip::-webkit-scrollbar { display: none; }
.fact-chip {
  flex: none; display: flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 13px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.fact-chip svg { width: 14px; height: 14px; color: var(--court); }
.fact-chip.is-open { color: var(--good); }
.fact-chip.is-open svg { color: var(--good); }

.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amenity { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 13px 10px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.amenity svg { width: 19px; height: 19px; color: var(--court); }
.amenity span { font-size: 11px; font-weight: 600; color: var(--ink-soft); line-height: 1.25; }

/* ============== LANDING (hero + footer del sitio) ============== */
.hero-section { padding: 18px 18px 0; }
.hero-copy-block { margin-top: 22px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--court-tint); color: var(--court-strong); font-family: var(--font-mono); font-size: 11px; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.eyebrow-pill svg { width: 12px; height: 12px; }
.hero-heading { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.hero-sub { margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; max-width: 34ch; }
.hero-facts.fact-strip { padding-left: 0; padding-right: 0; margin-top: 18px; }
.desktop-only-flex { display: none; }
.hero-actions { display: none; }
.stat-row { display: none; }
.court-graphic {
  margin: 0; border-radius: 22px; overflow: hidden; background: var(--court);
  position: relative; aspect-ratio: 16/11;
}
.court-graphic svg, .court-graphic img { display: block; width: 100%; height: 100%; object-fit: cover; }

.court-grid { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.court-grid::-webkit-scrollbar { display: none; }
.court-card--teaser { flex: none; width: 168px; margin-bottom: 0; }
.court-card--teaser .court-card-thumb { height: 84px; }
.court-card--teaser .court-card-body { padding: 10px 11px 12px; }
.court-card--teaser h4 { font-size: 14px; }
.court-card__price { font-family: var(--font-mono); font-size: 12.5px; margin-top: 7px; font-weight: 500; }

.gallery-grid { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery-grid::-webkit-scrollbar { display: none; }
.gallery-grid__item { flex: none; width: 200px; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2); }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============== BLOQUES DE LANDING (destacados / banner / texto / horario / ubicación) ============== */
section.block { padding-top: 30px; padding-bottom: 30px; }
.section-head { margin-bottom: 18px; }
.section-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-top: 4px; }
.section-head__cta { width: auto; padding: 8px 16px; font-size: 12.5px; display: none; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.feature-card .fi { width: 34px; height: 34px; border-radius: 10px; background: var(--court-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 11px; }
.feature-card .fi svg { width: 17px; height: 17px; color: var(--court); }
.feature-card h4 { font-size: 13.5px; font-weight: 700; }
.feature-card p { font-size: 13px; color: var(--ink-soft); margin-top: 5px; line-height: 1.5; }

.banner {
  border-radius: var(--radius-lg); padding: 26px 22px; display: flex; flex-direction: column; gap: 14px;
  color: var(--chalk); background: linear-gradient(135deg, var(--court), var(--court-strong));
  position: relative; overflow: hidden;
}
.banner::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.14), transparent 55%); }
.banner--foto { background-size: cover; background-position: center; }
.banner--foto::after { background: linear-gradient(0deg, rgba(10,14,20,.82), rgba(10,14,20,.5) 55%, rgba(10,14,20,.25)); }
.banner__eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; position: relative; z-index: 1; display: block; margin-bottom: 6px; }
.banner h3 { font-size: 19px; font-weight: 800; max-width: 26ch; position: relative; z-index: 1; }
.banner p { color: rgba(255,255,255,.86); font-size: 13.5px; margin-top: 8px; max-width: 44ch; position: relative; z-index: 1; }
.banner .btn-primary { background: var(--chalk); color: var(--court-strong); width: 100%; position: relative; z-index: 1; margin-top: 4px; }

.about-grid { display: flex; flex-direction: column; gap: 20px; }
.about-copy h3 { font-size: 19px; font-weight: 800; margin-top: 8px; }
.about-copy p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; margin-top: 10px; }
.about-art { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4; background: var(--surface-2); }
.about-art img, .about-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.schedule-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.schedule-table td { padding: 11px 16px; font-size: 13px; border-bottom: 1px solid var(--line); }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table td:first-child { font-weight: 700; }
.schedule-table td:last-child { text-align: right; font-family: var(--font-mono); color: var(--ink-soft); }
.schedule-table tr.is-today { background: var(--court-tint); }
.schedule-table tr.is-today td:first-child { color: var(--court-strong); }

.location-grid { display: flex; flex-direction: column; gap: 14px; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--surface-2); border: 1px solid var(--line); }
.map-embed svg, .map-embed iframe { width: 100%; height: 100%; display: block; }
.location-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 13px; }
.location-row { display: flex; gap: 11px; align-items: flex-start; }
.location-row svg { width: 16px; height: 16px; color: var(--court); flex: none; margin-top: 2px; }
.location-row b { display: block; font-size: 14px; }
.location-row span { font-size: 13px; color: var(--ink-soft); }
.location-card .btn-primary { margin-top: 4px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 30px 0 calc(24px + 84px); }
.site-footer__inner { display: flex; flex-direction: column; gap: 22px; }
.landing-wrap { padding-left: 18px; padding-right: 18px; }
.site-footer__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.site-footer__col { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.site-footer__col a { color: var(--ink-soft); text-decoration: none; }
.site-footer__col a:hover { color: var(--court); }
.site-footer__label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.site-footer__copy { margin-top: 22px; font-size: 11.5px; color: var(--ink-faint); }

.date-scroller { display: flex; gap: 8px; overflow-x: auto; padding: 4px 18px 6px; scrollbar-width: none; }
.date-scroller::-webkit-scrollbar { display: none; }
.date-pill {
  flex: none; width: 54px; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius-md); padding: 10px 0 9px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-soft);
  text-decoration: none;
}
.date-pill .dow { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.date-pill .dom { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--ink); }
.date-pill.is-active { background: var(--court); border-color: var(--court); }
.date-pill.is-active .dow, .date-pill.is-active .dom { color: var(--chalk); }

.duration-tabs { display: flex; gap: 6px; background: var(--surface-2); border-radius: var(--radius-md); padding: 4px; }
.duration-tabs a, .duration-tabs button {
  flex: 1; border: none; background: none; padding: 9px 0; text-align: center; text-decoration: none;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); border-radius: 10px;
}
.duration-tabs a.is-active, .duration-tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time-slot {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 0;
  font-family: var(--font-mono); font-size: 13px; text-align: center; color: var(--ink);
  text-decoration: none; display: block;
}
.time-slot.is-active { background: var(--court); border-color: var(--court); color: var(--chalk); font-weight: 500; }
.time-slot.is-disabled { color: var(--ink-faint); text-decoration: line-through; background: var(--surface-2); border-color: var(--surface-2); pointer-events: none; }

.selection-recap {
  margin: 0 18px 14px; padding: 11px 14px; background: var(--court-tint); border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12.5px; color: var(--court-strong);
}
.selection-recap svg { width: 15px; height: 15px; flex: none; }

.court-card { border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; margin-bottom: 12px; }
.court-card.is-selected { border-color: var(--court); }
.court-card-thumb { height: 92px; background: var(--court-tint); position: relative; }
.court-card-thumb svg { width: 100%; height: 100%; display: block; }
.court-card-body { padding: 13px 15px 15px; }
.court-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.court-card h4 { font-size: 15px; font-weight: 700; }
.court-card .tags { font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; }
.court-card .price { text-align: right; }
.court-card .price b { font-family: var(--font-mono); font-size: 17px; font-weight: 500; }
.court-card .price span { display: block; font-size: 10px; color: var(--ink-faint); }
.select-radio {
  margin-top: 12px; width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 0;
  font-size: 12.5px; font-weight: 600; background: var(--surface); color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
}
.court-card.is-selected .select-radio { background: var(--court); border-color: var(--court); color: var(--chalk); }
.select-radio svg { width: 13px; height: 13px; }

.summary-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 15px; display: flex; gap: 12px; align-items: center; }
.summary-card .sc-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--court-tint); display: flex; align-items: center; justify-content: center; flex: none; }
.summary-card .sc-icon svg { width: 20px; height: 20px; color: var(--court); }
.summary-card h4 { font-size: 14.5px; font-weight: 700; }
.summary-card p { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; font-size: 13.5px; background: var(--surface); color: var(--ink); }
.promo-row button { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 10px; padding: 0 16px; font-weight: 700; font-size: 13px; }
.promo-msg { font-size: 12.5px; margin-top: 7px; display: flex; align-items: center; gap: 5px; }
.promo-msg svg { width: 13px; height: 13px; }
.promo-msg.ok { color: var(--good); }
.promo-msg.err { color: var(--bad); }

.extra-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.extra-row:last-child { border-bottom: none; }
.extra-left { display: flex; align-items: center; gap: 10px; }
.extra-left svg { width: 17px; height: 17px; color: var(--ink-faint); }
.extra-left .name { font-size: 13.5px; font-weight: 600; }
.extra-left .price { font-size: 11.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; color: var(--ink); font-size: 15px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.stepper .qty { font-family: var(--font-mono); font-size: 13px; min-width: 12px; text-align: center; }

.price-table { display: flex; flex-direction: column; gap: 9px; }
.price-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); }
.price-row.discount { color: var(--good); }
.price-row span:last-child { font-family: var(--font-mono); }
.price-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 3px; border-top: 1px dashed var(--line-strong); }
.price-total span:first-child { font-weight: 700; font-size: 14.5px; }
.price-total b { font-family: var(--font-mono); font-size: 23px; font-weight: 500; }

.pay-methods { display: flex; flex-direction: column; gap: 9px; }
.pay-method { border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 12px 13px; display: flex; align-items: center; gap: 11px; cursor: pointer; }
.pay-method.is-active { border-color: var(--court); background: var(--court-tint); }
.pay-method svg.brand { width: 26px; height: 18px; color: var(--ink-soft); flex: none; }
.pay-method .pm-label { font-size: 13.5px; font-weight: 600; flex: 1; }
.pay-method .pm-sub { font-size: 11.5px; color: var(--ink-faint); }
.radio-dot { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; flex: none; }
.pay-method.is-active .radio-dot { border-color: var(--court); }
.radio-dot i { width: 9px; height: 9px; border-radius: 50%; background: var(--court); display: none; }
.pay-method.is-active .radio-dot i { display: block; }
.card-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.card-form input { border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 13px; font-size: 13.5px; background: var(--surface); color: var(--ink); width: 100%; }
.card-form .row2 { display: flex; gap: 10px; }
.secure-note { display: flex; align-items: center; gap: 7px; justify-content: center; font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }
.secure-note svg { width: 13px; height: 13px; }

.confirm-wrap { padding: 30px 18px 10px; text-align: center; }
.confirm-check { width: 62px; height: 62px; border-radius: 50%; background: var(--good-tint); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.confirm-check svg { width: 30px; height: 30px; color: var(--good); }
.confirm-wrap h2 { font-size: 22px; font-weight: 800; }
.confirm-wrap .code { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0.02em; }
.qr-block { margin: 20px auto 0; width: 196px; height: 196px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-sm); color: #000; }
.confirm-detail { margin: 22px 18px 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-align: left; padding: 15px; }
.confirm-detail .drow { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; }
.confirm-detail .drow span:first-child { color: var(--ink-faint); }
.confirm-detail .drow span:last-child { font-weight: 600; text-align: right; }
.confirm-actions { display: flex; gap: 9px; margin-top: 18px; padding: 0 18px; }
.confirm-actions a { flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--surface); text-decoration: none; }
.confirm-actions svg { width: 15px; height: 15px; }
.confirm-note { text-align: center; font-size: 11.5px; color: var(--ink-faint); margin-top: 16px; padding: 0 24px; }

svg.ico, .ico { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ============== ESCRITORIO — parte pública (≥860px) ==============
   Va al final a propósito: todas estas reglas repiten selectores base
   definidos arriba (.tabbar, .cta-dock, .topbar, etc.) y necesitan ganar
   la cascada por orden de aparición, sin depender de especificidad. */
@media (min-width: 860px) {
  .mobile-only { display: none !important; }
  .desktop-nav { display: flex; }
  .tabbar { display: none; }
  .cta-dock { position: static; background: none; padding: 18px 0 0; }
  .app-content { padding-bottom: 0; }

  .topbar { padding: 20px 40px; max-width: 1160px; margin: 0 auto; width: 100%; box-sizing: border-box; }

  /* Páginas "app" (reservar, checkout, perfil, etc.): quedan en una tarjeta centrada más ancha, no de punta a punta. */
  .app-shell:not(.is-wide) {
    max-width: 620px;
    margin: 32px auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: auto;
  }
  .app-shell:not(.is-wide) .topbar { max-width: none; padding: 20px 26px 8px; }
  .app-shell:not(.is-wide) .section,
  .app-shell:not(.is-wide) .back-row,
  .app-shell:not(.is-wide) .date-scroller,
  .app-shell:not(.is-wide) .fact-strip,
  .app-shell:not(.is-wide) .cta-dock { padding-left: 26px; padding-right: 26px; }
  .app-shell:not(.is-wide) .time-grid { grid-template-columns: repeat(4, 1fr); }
  .app-shell:not(.is-wide) .confirm-detail { margin-left: 26px; margin-right: 26px; }
  .app-shell:not(.is-wide) .confirm-actions { padding-left: 26px; padding-right: 26px; }

  /* Landing: a todo lo ancho, con secciones que se centran en su propio contenedor. */
  .app-shell.is-wide { max-width: none; }
  .app-shell.is-wide .landing-wrap { max-width: 1160px; margin: 0 auto; width: 100%; box-sizing: border-box; padding-left: 40px; padding-right: 40px; }
  .app-shell.is-wide .desktop-only-flex { display: inline-flex; align-items: center; }

  .app-shell.is-wide .hero-section {
    display: grid; grid-template-columns: 1fr 0.9fr; gap: 64px; align-items: center;
    padding: 56px 0 60px;
  }
  .app-shell.is-wide .hero-copy-block { margin-top: 0; order: 1; }
  .app-shell.is-wide .hero-section .court-graphic { order: 2; }
  .app-shell.is-wide .hero-heading { font-size: 48px; max-width: 12ch; }
  .app-shell.is-wide .hero-sub { font-size: 16.5px; max-width: 38ch; }
  .app-shell.is-wide .court-graphic { margin: 0; box-shadow: var(--shadow-lg); }
  .app-shell.is-wide .section-head h3 { font-size: 19px; }
  .app-shell.is-wide .amenity-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .app-shell.is-wide .amenity { padding: 20px 12px; }
  .app-shell.is-wide .court-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 18px; }
  .app-shell.is-wide .court-card--teaser { width: auto; }
  .app-shell.is-wide .court-card--teaser .court-card-thumb { height: 130px; }
  .app-shell.is-wide .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; gap: 14px; }
  .app-shell.is-wide .gallery-grid__item { width: auto; }
  .app-shell.is-wide .site-footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 40px; }
  .app-shell.is-wide .site-footer__col { flex: 1; }
  .app-shell.is-wide .site-footer { padding-bottom: 40px; }

  .app-shell.is-wide .hero-actions { display: flex; gap: 10px; margin-top: 24px; }
  .app-shell.is-wide .stat-row { display: flex; gap: 26px; margin-top: 30px; }
  .app-shell.is-wide .stat-row div b { display: block; font-family: var(--font-mono); font-size: 21px; font-weight: 500; }
  .app-shell.is-wide .stat-row div span { font-size: 11.5px; color: var(--ink-faint); }

  .app-shell.is-wide section.block { padding-top: 56px; padding-bottom: 56px; }
  .app-shell.is-wide .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .app-shell.is-wide .section-head h3 { font-size: 23px; }
  .app-shell.is-wide .section-head__cta { display: inline-flex; }

  .app-shell.is-wide .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .app-shell.is-wide .feature-card { padding: 22px; }
  .app-shell.is-wide .feature-card .fi { width: 38px; height: 38px; }
  .app-shell.is-wide .feature-card h4 { font-size: 15px; }
  .app-shell.is-wide .feature-card p { font-size: 14px; }

  .app-shell.is-wide .banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px 48px; gap: 32px; }
  .app-shell.is-wide .banner__inner { max-width: 56ch; }
  .app-shell.is-wide .banner h3 { font-size: 26px; }
  .app-shell.is-wide .banner .btn-primary { width: fit-content; }

  .app-shell.is-wide .about-grid { flex-direction: row; align-items: center; gap: 40px; }
  .app-shell.is-wide .about-copy, .app-shell.is-wide .about-art { flex: 1; }
  .app-shell.is-wide .about-copy h3 { font-size: 23px; }
  .app-shell.is-wide .about-copy p { font-size: 14.5px; }

  .app-shell.is-wide .location-grid { flex-direction: row; }
  .app-shell.is-wide .map-embed { flex: 1.4; }
  .app-shell.is-wide .location-card { flex: 1; }
}
@media (min-width: 860px) and (max-width: 1200px) {
  .topbar { padding-left: 24px; padding-right: 24px; }
}

/* ============== ADMIN LAYOUT ============== */
.admin-body-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; flex: none; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh;
}
.admin-brand { display: flex; align-items: center; gap: 8px; padding: 0 8px 20px; text-decoration: none; color: var(--ink); }
.admin-brand svg { width: 18px; height: 18px; color: var(--court); }
.admin-brand span { font-family: var(--font-display); font-weight: 800; font-size: 14.5px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.admin-nav-group-label { font-family: var(--font-body); font-weight: 700; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); padding: 16px 10px 5px; }
.admin-nav-group-label:first-child { padding-top: 4px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.admin-nav a svg { width: 15px; height: 15px; }
.admin-nav a.is-active { background: var(--court-tint); color: var(--court-strong); }
.admin-nav a:hover { background: var(--surface-2); }
.admin-user { display: flex; align-items: center; gap: 9px; padding: 10px 8px; border-top: 1px solid var(--line); margin-top: 8px; }
.admin-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--court); color: var(--chalk); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-family: var(--font-display); flex: none; }
.admin-user .au-name { font-size: 12px; font-weight: 700; }
.admin-user .au-role { font-size: 10.5px; color: var(--ink-faint); }
.admin-user a { color: var(--ink-faint); font-size: 10.5px; }

.admin-main { flex: 1; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 2; flex-wrap: wrap; gap: 10px; }
.admin-topbar h2 { font-size: 18px; font-weight: 700; }
.period-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.period-chips a, .period-chips button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); border-radius: 999px; padding: 6px 12px; font-size: 11.5px; font-weight: 600; text-decoration: none; }
.period-chips a.is-active, .period-chips button.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.export-btn { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 9px; padding: 7px 12px; font-size: 12px; font-weight: 700; color: var(--ink); text-decoration: none; }
.export-btn svg { width: 13px; height: 13px; color: var(--good); }

.admin-content { padding: 22px 26px 60px; display: flex; flex-direction: column; gap: 18px; max-width: 1280px; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 15px; }
.kpi-card .k-label { font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.kpi-card .k-value { font-family: var(--font-mono); font-size: 22px; font-weight: 500; margin-top: 6px; font-variant-numeric: tabular-nums; }
.k-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; margin-top: 7px; padding: 2px 7px; border-radius: 999px; }
.k-delta.up { color: var(--good); background: var(--good-tint); }
.k-delta.down { color: var(--bad); background: var(--bad-tint); }
.k-delta svg { width: 10px; height: 10px; }

.chart-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
@media (max-width: 900px) { .chart-row { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; overflow-x: auto; }
.panel h3 { font-size: 12.5px; font-weight: 700; margin-bottom: 12px; }
.panel .p-sub { font-size: 10.5px; color: var(--ink-faint); font-weight: 500; margin-top: -8px; margin-bottom: 12px; }

.heat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.heat-grid .hcell { aspect-ratio: 1; border-radius: 3px; background: var(--court); }
.heat-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 6px; }
.heat-days span { font-size: 9px; text-align: center; color: var(--ink-faint); font-weight: 600; }

.bars { display: flex; align-items: flex-end; gap: 14px; height: 120px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bar-col .bar { width: 100%; background: var(--court); border-radius: 5px 5px 0 0; min-height: 2px; }
.bar-col .bar-val { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-soft); }
.bar-col .bar-label { font-size: 10px; color: var(--ink-faint); font-weight: 600; text-align: center; }

.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th { text-align: left; font-size: 10.5px; color: var(--ink-faint); font-weight: 700; padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .03em; }
.data-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .num { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
.data-table th.num { text-align: right; }
.data-table-wrap { overflow-x: auto; }
.data-table summary::-webkit-details-marker { display: none; }
.data-table summary::marker { content: ""; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill.confirmada, .pill.resuelta, .pill.exitoso { background: var(--good-tint); color: var(--good); }
.pill.pendiente_pago, .pill.nueva, .pill.pendiente { background: var(--warn-tint); color: var(--warn); }
.pill.cancelada, .pill.fallido, .pill.no_show { background: var(--bad-tint); color: var(--bad); }
.pill.completada, .pill.en_revision, .pill.reembolsado { background: var(--court-tint); color: var(--court-strong); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; max-width: 640px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.form-actions .btn-primary, .form-actions .btn-ghost { width: auto; padding-left: 22px; padding-right: 22px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toolbar-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.settings-group { margin-bottom: 26px; }
.settings-group h3 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.settings-group .sg-desc { font-size: 12px; color: var(--ink-faint); margin-bottom: 14px; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-faint); }
.empty-state svg { width: 32px; height: 32px; margin-bottom: 10px; opacity: .6; }
.empty-state p { font-size: 13.5px; }

.auth-wrap { max-width: 400px; margin: 0 auto; padding: 60px 20px; }
.auth-wrap .brand-row { display: flex; align-items: center; gap: 9px; justify-content: center; margin-bottom: 26px; }
.auth-wrap .brand-row svg { width: 24px; height: 24px; color: var(--court); }
.auth-wrap .brand-row span { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.auth-wrap h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.auth-wrap .sub { text-align: center; color: var(--ink-soft); font-size: 13.5px; margin-bottom: 24px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); }

.mobile-nav-toggle { display: none; }
@media (max-width: 860px) {
  .admin-sidebar { position: fixed; left: -240px; top: 0; z-index: 50; transition: left .2s ease; box-shadow: var(--shadow-lg); }
  .admin-sidebar.is-open { left: 0; }
  .mobile-nav-toggle { display: flex; }
  .admin-content { padding: 18px 16px 50px; }
  .admin-topbar { padding: 14px 16px; }
}
