/* Tema «Deportiva» (2026-11). Se carga después de styles.css y sólo cambia la apariencia:
   negro y blanco con un acento verde pelota, títulos condensados en mayúsculas, botones de
   píldora, personajes junto al título y navegación de cuatro pestañas con Invitar y Perfil arriba.
   Para volver al aspecto anterior basta con quitar el <link> a este archivo y restaurar el HTML. */
:root {
  --volt: #D4F53C; --night: #0B0F14; --ground: #F4F5F1;
  --blue: #0B0F14; --blue-dark: #000; --avocado: #F4F5F1; --avocado-soft: #fff;
  --ink: #0B0F14; --muted: #5B6570; --paper: #fff; --line: #D9DDD6;
  /* Condensed faces that ship with the device: no font files to host (CSP allows only 'self'). */
  --serif: "Avenir Next Condensed", "Roboto Condensed", sans-serif-condensed, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pad: 20px; --bar: 62px;
}
@media (min-width: 561px) { :root { --pad: 34px; } }
html, body { background: var(--night); }
a { color: var(--night); }

/* Top bar: wordmark on the left; tagline when signed out, Invitar and Perfil when signed in. */
.brand-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--bar); padding: 0 var(--pad); background: var(--night); }
.brand-wordmark { font: italic 800 1.35rem var(--serif); color: #fff; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.brand-wordmark em { color: var(--volt); font-style: inherit; }
body:has(.main-nav:not(.hidden)) .brand-tag { visibility: hidden; }
.brand-tag { font: 700 .6rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #9AA3AD; text-align: right; }

.shell { min-height: calc(100vh - var(--bar)); padding: 22px var(--pad) 124px; background: var(--ground); background-image: none; }
.eyebrow { padding: 6px 12px; margin: 0 0 14px; border-radius: 999px; background: var(--volt); color: var(--night); }
h1, h2, h3 { font-weight: 800; text-transform: uppercase; color: var(--night); }
h1 { font-size: clamp(2.5rem, 11.5vw, 3.7rem); line-height: .92; letter-spacing: -.01em; margin: 0 0 14px; }
h2 { font-size: 1.75rem; line-height: 1; }
.state h1 { font-size: 2.6rem; }
.intro { font-size: 1.02rem; line-height: 1.5; margin-bottom: 22px; color: #2a323b; }

/* Title block. The character shares the block with the title and stands on a court line. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px; margin: 0 calc(-1 * var(--pad)) 22px; padding: 4px var(--pad) 0; border-bottom: 3px solid var(--night); overflow: hidden; }
.hero-plain { grid-template-columns: minmax(0, 1fr); }
.hero-text { min-width: 0; padding-bottom: 14px; }
.hero h1 { margin-bottom: 0; font-size: clamp(2.3rem, 10.6vw, 3.2rem); }
.hero .intro { margin: 10px 0 0; }
.hero .eyebrow { margin-bottom: 12px; }
.hero-figure { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; align-self: end; }
.hero-figure::before { content: ""; position: absolute; right: -34px; bottom: 0; width: 132px; height: 88px; border-radius: 88px 88px 0 0; background: var(--volt); }
.hero-figure img { position: relative; display: block; height: 102px; width: auto; image-rendering: pixelated; }

.button { padding: 16px 20px; border-radius: 999px; border-color: var(--night); background: var(--night); color: #fff; text-transform: uppercase; letter-spacing: .05em; font-size: .92rem; }
.button-quiet { background: #fff; color: var(--night); border-color: var(--night); }
.button-secondary { background: var(--volt); color: var(--night); border-color: var(--volt); }
.home-steps li, .club-option, .cost-box, .match-card, .schedule-callout, .empty-state, .tournament-players li, .filter-toggle, .invite-callout { border: 0; border-radius: 18px; background: #fff; box-shadow: none; }
.tournament-facts { background: #fff; border-radius: 18px; padding: 16px 16px 16px 34px; }
.cost-row.cost-total { font-family: var(--serif); font-size: 1.5rem; text-transform: uppercase; }
.date-button, .slot-button, .schedule-slot, .recurring-day-button { border-radius: 12px; border-color: var(--night); color: var(--night); }

/* Navigation: one <nav> with two groups. Tabs stay fixed at the bottom; Invitar and Perfil sit on the top bar. */
.main-nav { display: contents; }
.nav-top { position: absolute; z-index: 5; top: 0; left: 50%; display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: min(100%, 760px); height: var(--bar); padding: 0 var(--pad); transform: translateX(-50%); pointer-events: none; }
.main-nav .nav-top button { pointer-events: auto; cursor: pointer; }
.main-nav .nav-invite { min-width: 0; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--volt); color: var(--night); font: 800 .7rem var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.main-nav .nav-invite[aria-current="page"] { color: var(--night); background: var(--volt); box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--volt); }
.main-nav .nav-profile { display: grid; place-items: center; width: 36px; height: 36px; min-width: 0; padding: 0; border: 2px solid #3A424C; border-radius: 50%; background: var(--night); color: #fff; }
.main-nav .nav-profile[aria-current="page"] { border-color: var(--volt); color: var(--volt); background: var(--night); }
.nav-profile svg { width: 20px; height: 20px; }
.nav-tabs { position: fixed; z-index: 10; bottom: 0; left: 50%; display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 760px); padding: 0 6px calc(6px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--night); }
.main-nav .nav-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 12px 2px 8px; border: 0; background: transparent; color: #9AA3AD; font-size: .74rem; font-weight: 600; letter-spacing: .02em; cursor: pointer; }
.main-nav .nav-tabs button[aria-current="page"] { color: var(--volt); background: transparent; }
.main-nav .nav-tabs button[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 26%; right: 26%; height: 3px; border-radius: 0 0 3px 3px; background: var(--volt); }
.main-nav svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-tabs svg { width: 24px; height: 24px; }
.nav-tabs .nav-badge { position: absolute; top: 7px; left: calc(50% + 8px); min-width: 17px; height: 17px; margin: 0; padding: 0 4px; border: 0; border-radius: 999px; background: var(--volt); color: var(--night); font-size: .66rem; font-weight: 800; line-height: 17px; }
.main-nav button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Softer corners so forms, options and cards belong to the same family. */
input, select, textarea, #alternate-date, .phone-prefix, .preference-options span, .skill-options span, .filter-options span, .tournament-tabs button, .count-pill { border-radius: 12px; }
.phone-prefix { border-radius: 12px 0 0 12px; }
.phone-prefix + input, .phone-prefix + select { border-radius: 0 12px 12px 0; }
input:focus, select[name="whatsapp_country"]:focus { outline-color: rgba(11, 15, 20, .22); }
.preference-options input:checked + span, .skill-options input:checked + span { color: #fff; }
.skill-options input:checked + span small { color: #D9DDD6; }
.tournament-card, .invite-safety, .recovery-confirmation, .device-prompt, .protected-slot-message, .filter-panel { border: 0; border-radius: 18px; background: #fff; }
.filter-panel { border-radius: 0 0 18px 18px; }
dialog { border: 0; border-radius: 22px; background: var(--ground); background-image: none; }
dialog::backdrop { background: rgba(11, 15, 20, .72); }
