:root {
  --bg: #000000;
  --bg2: #0a0a0a;
  --bg3: #141414;
  --card: #1a1a1a;
  --text: #ffffff;
  --text2: #94a3b8;
  --accent: #fbbf24;
  --accent2: #f59e0b;
  --green: #10b981;
  --green-muted: rgba(16, 185, 129, 0.85);
  --red: #ef4444;
  --blue: #3b82f6;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  border-radius: 8px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 80px;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0.72) 100%),
    url('/web/hero-bg.png') center / cover no-repeat;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 14ch;
}

.hero-title-line {
  color: var(--text);
}

.hero-title-accent {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-icon {
  font-size: 1rem;
  opacity: 0.9;
}

.btn-hero-primary {
  background: var(--accent);
  color: #000;
}

.btn-hero-primary:hover {
  background: var(--accent2);
}

.btn-hero-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-hero-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ——— Sections ——— */
.section {
  padding: 72px 0;
}

.section-matches {
  background: var(--bg);
}

.section-calendar {
  background: var(--bg2);
}

.section-stats {
  background: var(--bg);
}

.section-scorers-full {
  background: var(--bg2);
  padding-top: 48px;
}

.section-rules {
  background: var(--bg);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-kicker {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.section-kicker-center {
  text-align: center;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text2);
  margin-top: 6px;
}

.section-sub-center {
  text-align: center;
  margin-bottom: 24px;
}

.section-lead {
  text-align: center;
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.link-all {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.link-all:hover {
  text-decoration: underline;
}

/* ——— Matches preview ——— */
.matches-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .matches-preview {
    grid-template-columns: 1fr;
  }
}

/* ——— Calendar ——— */
.calendar-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.match-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.match-card:hover {
  border-color: rgba(251, 191, 36, 0.35);
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.match-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-upcoming {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text2);
}

.badge-live {
  background: rgba(16, 185, 129, 0.2);
  color: var(--green);
}

.badge-completed {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.match-team-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
}

.match-team-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg3);
}

.match-team-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bg3), #2a2a2a);
}

.match-team-name {
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.3;
  word-break: break-word;
}

.match-score {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.15rem;
  min-width: 72px;
  text-align: center;
  flex-shrink: 0;
}

.match-score-live,
.match-score-completed {
  background: var(--accent);
  color: #000;
}

.match-score-pending {
  background: var(--bg3);
  color: var(--text2);
  font-size: 0.95rem;
  font-weight: 700;
}

.match-meta {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.5;
}

.match-jornada {
  font-size: 0.75rem;
  color: var(--text2);
}

/* ——— Stats split ——— */
.stats-split {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .stats-split {
    grid-template-columns: 1fr;
  }
}

.stats-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.panel-title {
  font-size: 1rem;
  font-weight: 700;
}

.gender-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}

.gender-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.gender-btn.active {
  background: var(--accent);
  color: #000;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.standings-table th {
  padding: 12px 10px;
  text-align: left;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}

.standings-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.standings-table tr:hover {
  background: rgba(251, 191, 36, 0.04);
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.team-logo-sm {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg3);
  flex-shrink: 0;
}

.team-logo-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg3);
  flex-shrink: 0;
}

.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.75rem;
}

.pos-1 {
  background: var(--accent);
  color: #000;
}

.pos-2 {
  background: #94a3b8;
  color: #000;
}

.pos-3 {
  background: #b45309;
  color: #fff;
}

.pos-other {
  background: var(--bg3);
  color: var(--text2);
}

.pts-cell {
  font-weight: 800;
  color: var(--accent);
  font-size: 0.9375rem;
}

.scorers-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
  min-height: 120px;
}

.scorer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.scorer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg3);
  flex-shrink: 0;
}

.scorer-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.scorer-rank-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  background: var(--bg3);
  color: var(--text2);
  flex-shrink: 0;
}

.scorer-rank-badge.top1 {
  background: var(--accent);
  color: #000;
}

.scorer-side-info {
  flex: 1;
  min-width: 0;
}

.scorer-side-name {
  font-weight: 700;
  font-size: 0.875rem;
}

.scorer-side-team {
  font-size: 0.75rem;
  color: var(--text2);
}

.scorer-side-goals {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

.btn-panel-full {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-panel-full:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ——— Full scorers grid ——— */
.scorers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.scorer-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
}

.scorer-rank {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.scorer-rank-1 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
}

.scorer-rank-other {
  background: var(--bg);
  color: var(--text2);
}

.scorer-info {
  flex: 1;
  min-width: 0;
}

.scorer-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.scorer-team {
  font-size: 0.75rem;
  color: var(--text2);
}

.scorer-goals {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent);
}

/* ——— Rules ——— */
.rules-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .rules-cards {
    grid-template-columns: 1fr;
  }
}

.rule-card {
  padding: 22px 22px 22px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  text-align: left;
}

.rule-card--gold {
  border-left-color: var(--accent);
}

.rule-card--green {
  border-left-color: var(--green);
}

.rule-icon {
  font-size: 1.25rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.rule-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.rule-card-text {
  font-size: 0.8125rem;
  color: var(--text2);
  line-height: 1.6;
}

.btn-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 40px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-pdf:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.regulations-list {
  max-width: 800px;
  margin: 0 auto;
}

.regulation-item {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.regulation-header {
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.regulation-header:hover {
  background: rgba(251, 191, 36, 0.06);
}

.regulation-arrow {
  transition: transform 0.2s;
  color: var(--text2);
}

.regulation-arrow.open {
  transform: rotate(180deg);
}

.regulation-content {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text2);
  white-space: pre-wrap;
}

.regulation-content.open {
  padding: 0 18px 18px;
  max-height: 2000px;
}

/* ——— Footer ——— */
.footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 36px 20px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  border-radius: 8px;
  display: block;
  height: 36px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-link-admin {
  opacity: 0.75;
}

.footer-link-admin:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text2);
  margin: 0;
}

.loading {
  text-align: center;
  padding: 32px;
  color: var(--text2);
  font-size: 0.875rem;
}

/* ——— Reservas: mes + panel de horarios ——— */
.section-court-booking {
  scroll-margin-top: 84px;
}

.court-cal-split {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 28px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .court-cal-split {
    grid-template-columns: 1fr;
  }
}

.court-cal-month-wrap {
  margin: 0 auto;
  width: 100%;
  max-width: 520px;
}

.court-slots-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: sticky;
  top: 88px;
}

.court-slots-panel-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.court-slots-hint {
  margin: 0 0 16px 0 !important;
  text-align: left !important;
  font-size: 0.8125rem !important;
  line-height: 1.5;
}

.court-slot-grid--panel {
  min-height: 80px;
}

.month-cal-day--selectable {
  width: 100%;
  height: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: background 0.15s, box-shadow 0.15s;
}

.month-cal-day--selectable:hover {
  background: rgba(251, 191, 36, 0.08);
}

.month-cal-day--selected {
  background: rgba(251, 191, 36, 0.14) !important;
  box-shadow: 0 0 0 2px var(--accent);
}

.month-cal-day--muted {
  opacity: 0.38;
}

.day-free-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 4px;
}

.month-cal-wrap {
  max-width: 520px;
  margin: 0 auto 8px;
}

.month-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.month-cal-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: capitalize;
  flex: 1;
  text-align: center;
  margin: 0;
}

.month-cal-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: inherit;
}

.month-cal-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.month-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin-bottom: 8px;
}

.month-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.month-cal-cell {
  min-height: 44px;
  aspect-ratio: 1;
  max-height: 64px;
}

.month-cal-cell--empty {
  pointer-events: none;
}

.month-cal-day {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.month-cal-day--today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25);
}

.month-cal-day .day-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.month-cal-day .day-num--has-match {
  text-decoration: line-through;
  color: var(--text2);
  font-weight: 600;
}

/* ——— Reservas cancha fútbol 6 ——— */
.reservas-section {
  scroll-margin-top: 84px;
}

.calendar-grid--court {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.court-day-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.court-day-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 4px;
}

.court-day-meta {
  font-size: 0.75rem;
  color: var(--text2);
  margin-bottom: 4px;
}

.court-slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.court-slot {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.court-slot--free {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent);
  border-color: rgba(251, 191, 36, 0.35);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.court-slot--free:hover {
  background: rgba(251, 191, 36, 0.22);
  border-color: var(--accent);
}

.court-slot--busy {
  background: var(--bg3);
  color: var(--text2);
  opacity: 0.55;
  cursor: default;
}

.court-slot-empty {
  font-size: 0.8125rem;
  color: var(--text2);
}

.slot-preview-title {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: capitalize;
  margin: 4px 0 4px;
}

.slot-preview-time {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.slot-preview-hint {
  font-size: 0.72rem;
  color: var(--text2);
  line-height: 1.4;
}

/* ——— Modal reserva ——— */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  border: none;
  cursor: pointer;
}

.modal-panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  padding-right: 32px;
}

.modal-slot-label {
  font-size: 0.875rem;
  color: var(--text2);
  margin-bottom: 18px;
  text-transform: capitalize;
}

.reservation-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.reservation-form .form-field span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
}

.reservation-form input,
.reservation-form textarea {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.reservation-form textarea {
  resize: vertical;
  min-height: 64px;
}

.form-msg {
  margin-top: 12px;
  font-size: 0.8125rem;
  min-height: 1.2em;
}

.form-msg--ok {
  color: var(--green);
}

.form-msg--err {
  color: var(--red);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-link.active {
    border-bottom-color: var(--accent);
  }

  .nav-menu-btn {
    display: block;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ——— Área de Entrenamiento ——— */
.section-training {
  scroll-margin-top: 84px;
  background: var(--bg2, #0a0a0a);
}
.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.training-card {
  background: var(--bg3, #1a1a1a);
  border: 1px solid var(--border, #333);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.training-card:hover {
  border-color: var(--accent, #FBBF24);
  transform: translateY(-4px);
}
.training-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.training-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #fff);
  margin-bottom: 8px;
}
.training-card-text {
  font-size: 14px;
  color: var(--text2, #94a3b8);
  line-height: 1.6;
}
