/* ───────────────────────────────────────────────────────────────
   COPA REGIONAL — Sports dashboard styles
   Bold red hero, pastel color-block fixtures, condensed type
   ─────────────────────────────────────────────────────────────── */

:root {
  --red: #E30613;
  --red-dark: #B30410;
  --red-deep: #8C020C;
  --black: #0A0A0A;
  --ink: #1A1A1A;
  --ink-2: #2A2A2A;
  --paper: #FFFFFF;
  --paper-2: #F5F5F4;
  --paper-3: #EAEAE8;
  --line: rgba(0,0,0,0.08);
  --line-strong: rgba(0,0,0,0.16);
  --muted: rgba(10,10,10,0.55);

  --display: "Oswald", "Archivo Narrow", "Arial Narrow", sans-serif;
  --body: "Inter", "Helvetica Neue", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 15px;
  line-height: 1.5;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

ul, ol { list-style: none; padding: 0; margin: 0; }

/* ───────────────────────────────────────────────────────────────
   APP SHELL
   ─────────────────────────────────────────────────────────────── */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  height: 38px;
  width: auto;
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.topbar-title small { margin-top: 0 !important; }

.topbar-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.topbar-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.topbar-title small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.topbar-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.topbar-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.18s;
}
.topbar-nav a:hover { background: var(--paper-3); }
.topbar-nav a.is-active { background: var(--ink); color: white; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ───────────────────────────────────────────────────────────────
   HERO
   ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--red);
  color: white;
  overflow: hidden;
  padding: 22px 32px 26px;
  margin: 16px;
  border-radius: var(--r-xl);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -20%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(800px 500px at 20% 120%, rgba(0,0,0,0.4), transparent 60%),
    linear-gradient(160deg, var(--red) 0%, var(--red-dark) 60%, var(--red-deep) 100%);
  z-index: -2;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  margin-bottom: 32px;
}
.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  animation: pulse 1.4s infinite;
}

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.hero-title-line {
  display: block;
}
.hero-title-line:nth-child(1),
.hero-title-line:nth-child(2),
.hero-title-line:nth-child(3) { }

.hero-title-outline {
  -webkit-text-stroke: 1.5px white;
  color: transparent;
  margin-left: clamp(20px, 5vw, 70px);
}

.hero-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  z-index: 0;
  overflow: hidden;
  border-top-right-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 28%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 28%, black 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: luminosity;
}
.hero-photo { opacity: 0.62; mix-blend-mode: normal; object-position: 50% 32%; }
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--red) 0%, rgba(227,6,19,0.5) 35%, rgba(227,6,19,0.15) 75%, rgba(0,0,0,0.35) 100%);
}

.hero-quote {
  max-width: 460px;
  position: relative;
  padding-left: 28px;
}
.quote-mark {
  position: absolute;
  left: 0;
  top: -10px;
  font-family: var(--display);
  font-size: 60px;
  line-height: 1;
  opacity: 0.6;
}
.hero-quote p {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
}
.quote-author {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-stats {
  display: flex;
  gap: 32px;
}
.hero-stat {
  text-align: right;
}
.hero-stat-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.hero-stat-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 4px;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.hero-card {
  position: relative;
  text-align: left;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  color: white;
  transition: transform 0.2s, background 0.2s;
}
.hero-card:hover {
  transform: translateY(-2px);
  background: rgba(0,0,0,0.7);
}

.hero-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.tag-red { background: var(--red); color: white; }
.tag-dark { background: white; color: var(--ink); }

.hero-card-body {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-card-match {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-vs {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.hero-card-info { flex: 1; min-width: 0; }
.hero-card-teams {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-card-teams .muted { opacity: 0.6; }
.hero-card-time {
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-top: 6px;
}

.hero-card-leader-name {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.hero-card-leader-line {
  display: flex;
  gap: 14px;
  font-size: 12px;
  margin-top: 8px;
  opacity: 0.85;
}
.hero-card-leader-line b { font-weight: 700; font-family: var(--display); font-size: 14px; }

.hero-card-cta {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-jersey {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(90px, 16vw, 240px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.18);
  color: transparent;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* ───────────────────────────────────────────────────────────────
   CATEGORY NAV
   ─────────────────────────────────────────────────────────────── */
/* SEASON BAR — barra de contexto: año + fase */
.season-bar { position: sticky; top: var(--topbar-h, 67px); z-index: 45; background: var(--paper); border-bottom: 1px solid var(--line); }
.season-bar-inner { display: flex; align-items: center; gap: 14px; max-width: 1400px; margin: 0 auto; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; }
.season-bar-inner::-webkit-scrollbar { display: none; }
.season-label { flex: 0 0 auto; font-family: var(--body); font-weight: 700; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.season-group { flex: 0 0 auto; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--paper-3); }
.season-opt { border: 0; padding: 7px 16px; border-radius: 999px; background: transparent; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background 0.18s ease, color 0.18s ease; }
.season-opt:hover { color: var(--ink); }
.season-opt.is-on { background: var(--ink); color: #fff; }
.season-status { flex: 0 0 auto; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.season-bar.is-en-curso .season-status { border-color: var(--red); color: var(--red); }
/* Historial: la barra se invierte para avisar que no es la temporada vigente */
.season-bar.is-finalizado, .season-bar.is-por-comenzar { background: var(--ink); border-bottom-color: rgba(255,255,255,0.12); }
.season-bar.is-finalizado .season-label, .season-bar.is-por-comenzar .season-label { color: rgba(255,255,255,0.5); }
.season-bar.is-finalizado .season-group, .season-bar.is-por-comenzar .season-group { background: rgba(255,255,255,0.1); }
.season-bar.is-finalizado .season-opt, .season-bar.is-por-comenzar .season-opt { color: rgba(255,255,255,0.6); }
.season-bar.is-finalizado .season-opt:hover, .season-bar.is-por-comenzar .season-opt:hover { color: #fff; }
.season-bar.is-finalizado .season-opt.is-on, .season-bar.is-por-comenzar .season-opt.is-on { background: #fff; color: var(--ink); }
.season-bar.is-finalizado .season-status, .season-bar.is-por-comenzar .season-status { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.75); }
body[data-season="true"] .catnav { top: calc(var(--topbar-h, 67px) + var(--season-h, 62px)); }
.season-archive { gap: 14px; }
.season-archive-tag { font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.season-archive .btn-primary { margin-top: 8px; }
@media (max-width: 700px) { .season-label { display: none; } .season-opt { padding: 7px 13px; font-size: 13px; } .season-status { letter-spacing: 0.08em; } }

.catnav {
  position: sticky;
  top: var(--topbar-h, 67px);
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}
.catnav-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1400px;
  margin: 0 auto;
}
.catnav-inner::-webkit-scrollbar { display: none; }

.catnav-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--paper-2);
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
  flex-shrink: 0;
}
.catnav-pill-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.catnav-pill-year {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 2px;
}
.catnav-pill:hover { background: var(--paper-3); }
.catnav-pill.is-active {
  background: var(--ink);
  color: white;
}
.catnav-pill.is-active .catnav-pill-year { color: rgba(255,255,255,0.6); }

/* ───────────────────────────────────────────────────────────────
   LAYOUT — main grid
   ─────────────────────────────────────────────────────────────── */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
}

.main-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}
.main-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (max-width: 1100px) {
  .main { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────────────────────
   BLOCK
   ─────────────────────────────────────────────────────────────── */
.block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  gap: 16px;
}
.block-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.block-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 4px 0 0;
}

.filter-group {
  display: flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: all 0.18s;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.is-active {
  background: var(--ink);
  color: white;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.18s;
}
.btn-ghost:hover { background: var(--ink); color: white; }
.btn-ghost-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
}

.btn-primary {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.18s;
}
.btn-primary:hover { background: var(--red-dark); }

/* ───────────────────────────────────────────────────────────────
   CREST
   ─────────────────────────────────────────────────────────────── */
.crest {
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  position: relative;
}
.crest::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed currentColor;
  opacity: 0.18;
}
.crest-img { display: block; background: #fff; object-fit: contain; box-sizing: border-box; }
.crest-img::after { display: none; }
.crest-text {
  position: relative;
  z-index: 1;
  line-height: 1;
}

/* ───────────────────────────────────────────────────────────────
   FIXTURES
   ─────────────────────────────────────────────────────────────── */
.fixtures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.fixture {
  position: relative;
  text-align: left;
  border-radius: var(--r-md);
  padding: 18px 20px 16px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.2,0.7,0.2,1),
              transform 0.5s cubic-bezier(0.2,0.7,0.2,1),
              box-shadow 0.2s;
  overflow: hidden;
}
.fixture.is-in {
  opacity: 1;
  transform: translateY(0);
}
.fixture:hover {
  box-shadow: 0 16px 36px -16px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}

.fixture-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.fixture-crests {
  display: flex;
  gap: 6px;
}
.fixture-date {
  text-align: right;
  font-family: var(--display);
}
.fixture-date-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.fixture-date-mon {
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.7;
  margin-top: 3px;
  text-transform: uppercase;
}

.fixture-row-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fixture-time {
  font-family: var(--display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.fixture-score {
  font-family: var(--display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.score-sep { opacity: 0.4; }

.fixture-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fixture.is-live .fixture-status {
  background: var(--red);
  color: white;
}
.live-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: white;
  animation: pulse 1.4s infinite;
}

.fixture-row-bot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.fixture-team-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
}
.fixture-team-sub {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-top: 4px;
}
.fixture-team-away { text-align: right; }

.fixture-venue {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  border-top: 1px solid currentColor;
  padding-top: 10px;
  margin-top: auto;
  border-color: rgba(0,0,0,0.12);
}

/* ───────────────────────────────────────────────────────────────
   STANDINGS TABLE
   ─────────────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--paper);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
}

.standings {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.standings thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s, background 0.15s;
  background: var(--paper-2);
}
.standings thead th:hover { color: var(--ink); }
.standings thead th.is-sorted {
  color: var(--red);
  background: rgba(227,6,19,0.04);
}
.th-inner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sort-arrow { font-size: 10px; }

.standings .ta-left { text-align: left; }
.standings .col-pos { width: 56px; padding-left: 16px; }
.standings .col-name { padding-left: 0; padding-right: 16px; }

.standings tbody td {
  padding: 12px 8px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.standings tbody tr {
  transition: background 0.15s;
  cursor: pointer;
}
.standings tbody tr:hover { background: var(--paper-2); }
.standings tbody tr:last-child td { border-bottom: 0; }

.row.is-leader {
  background: linear-gradient(90deg, rgba(227,6,19,0.06), transparent 70%);
}
.row.is-leader td { color: var(--ink); font-weight: 600; }
.row.is-leader .col-pts b {
  color: var(--red);
}
.row.is-leader .pos-bar {
  background: var(--red);
}

.row.is-classif .pos-bar { background: var(--ink); }
.row.is-releg { color: var(--muted); }
.row.is-releg .pos-bar { background: rgba(227,6,19,0.4); }

.col-pos {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pos-bar {
  width: 3px;
  height: 22px;
  border-radius: 2px;
  background: var(--line-strong);
  display: inline-block;
}
.pos-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.team-cell-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
}
.team-cell-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
}

.col-pts b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
}

.standings .pos { color: #0A8754; font-weight: 600; }
.standings .neg { color: var(--red); font-weight: 600; }

.form-dots {
  display: flex;
  gap: 3px;
  justify-content: center;
}
.form-dot {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  color: white;
}
.form-G { background: #0A8754; }
.form-E { background: #C9B11E; color: var(--ink); }
.form-P { background: var(--red); }

.table-legend {
  display: flex;
  gap: 18px;
  padding: 14px 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.legend-classif { background: var(--ink); }
.legend-releg { background: rgba(227,6,19,0.4); }

/* ───────────────────────────────────────────────────────────────
   SCORERS
   ─────────────────────────────────────────────────────────────── */
.scorers-block {
  background: var(--ink);
  color: white;
  border-radius: var(--r-md);
  padding: 24px 22px;
  position: sticky;
  top: 160px;
}
.scorers-block .block-eyebrow { color: rgba(255,255,255,0.5); }
.scorers-block .block-title { color: white; }

.scorers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.scorer {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.scorer:last-child { border-bottom: 0; }
.scorer-rank {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: rgba(255,255,255,0.4);
  width: 28px;
}
.scorer-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
}
.scorer-team {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
  letter-spacing: 0.04em;
}
.scorer-goals { text-align: right; }
.scorer-goals-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--red);
}
.scorer-goals-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* ───────────────────────────────────────────────────────────────
   MODAL
   ─────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--paper);
  border-radius: var(--r-lg);
  width: min(620px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 32px;
  animation: modalIn 0.3s cubic-bezier(0.2,0.7,0.2,1);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}
.modal-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 6px 0 0;
  text-transform: uppercase;
}
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper-2);
  font-size: 22px;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--ink); color: white; }

.modal-lead {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 24px;
}

.modal-rules {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rule {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 18px;
  background: var(--paper-2);
  border-radius: var(--r-md);
}
.rule-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--red);
  text-align: center;
}
.rule-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.rule-head h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.rule-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.rule-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.modal-meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ───────────────────────────────────────────────────────────────
   DRAWER (match detail / team profile)
   ─────────────────────────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10,10,10,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease-out;
}
.drawer {
  background: var(--paper);
  width: min(840px, 100%);
  height: 100%;
  overflow: auto;
  padding: 28px 32px;
  animation: drawerIn 0.32s cubic-bezier(0.2,0.7,0.2,1);
}
.drawer-tiebreak { width: min(560px, 100%); }
.drawer-tiebreak .modal-title { margin: 8px 0 0; }
@keyframes drawerIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.drawer-close {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.drawer-close:hover { color: var(--ink); }
.drawer-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.drawer-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 36px 24px;
  background: var(--paper-2);
  border-radius: var(--r-lg);
  margin-bottom: 28px;
}
.ds-team { text-align: center; }
.ds-team .crest { margin: 0 auto; }
.ds-team-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 14px;
  line-height: 1;
}
.ds-team-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 6px;
}
.ds-middle { text-align: center; }
.ds-score {
  font-family: var(--display);
  font-weight: 700;
  font-size: 84px;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.ds-score span { color: var(--muted); margin: 0 6px; }
.ds-vs {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  color: var(--muted);
}
.ds-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  background: var(--red);
  color: white;
  border-radius: 4px;
  margin-top: 8px;
}
.ds-venue, .ds-ref {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.drawer-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}
.dc-col {
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: 18px;
}
.dc-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--muted);
}
.dc-empty {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.event-list { display: flex; flex-direction: column; gap: 8px; }
.event {
  display: grid;
  grid-template-columns: 36px 28px 1fr;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.event-min {
  font-family: var(--display);
  font-weight: 600;
  color: var(--red);
}
.event-icon { font-size: 14px; }
.event-away { padding-left: 16px; opacity: 0.85; }

.lineup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.lineup li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

/* TEAM PROFILE */
.team-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px 28px;
  border-radius: var(--r-lg);
  margin-bottom: 28px;
}
.team-hero-text { flex: 1; }
.team-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 600;
}
.team-hero-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 60px;
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin: 8px 0 18px;
  text-transform: uppercase;
}
.team-hero-stats {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.team-hero-stats b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
}

.team-section { margin-top: 24px; }
.team-matches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.team-match {
  display: grid;
  grid-template-columns: 60px 28px auto 1fr 70px 110px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--paper-2);
  border-radius: 12px;
  font-size: 13px;
}
.tm-date {
  font-family: var(--display);
  font-weight: 600;
}
.tm-loc {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.tm-opp { font-weight: 600; }
.tm-result {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  text-align: right;
}
.tm-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--paper-3);
}
.tm-final { background: var(--ink); color: white; }
.tm-en-vivo { background: var(--red); color: white; }

/* ───────────────────────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: white;
  padding: 48px 32px 32px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.footer-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 80px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}
.footer-mark span { color: var(--red); }
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-align: right;
}

/* ─────────────────────────────────────────────────────────────────────
   Loading / error state (added for real-data integration)
   ───────────────────────────────────────────────────────────────────── */
.page-status {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 80px 24px;
}
.page-status-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.page-status-sub {
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
  word-break: break-word;
}
.page-status-hint {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.page-status-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid var(--line-strong);
  border-top-color: var(--red);
  animation: page-spin 0.8s linear infinite;
}
@keyframes page-spin { to { transform: rotate(360deg); } }

/* ═════════════════════════════════════════════════════════════════════
   NUEVA ARQUITECTURA DE INFORMACIÓN — nav, secciones y footer
   ═════════════════════════════════════════════════════════════════════ */

/* Topbar: marca como botón + nav con <button> + CTA sponsor */
.topbar-brand { background: none; border: 0; cursor: pointer; padding: 0; }
.topbar-nav button {
  font-family: var(--body); cursor: pointer; background: none; border: 0;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--ink); transition: background 0.18s;
}
.topbar-nav button:hover { background: var(--paper-3); }
.topbar-nav button.is-active { background: var(--ink); color: #fff; }
.topbar-cta {
  cursor: pointer; border: 0; padding: 9px 18px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--body);
  transition: background 0.18s;
}
.topbar-cta:hover { background: var(--red-dark); }

/* Contenedor de página + cabecera de sección */
.page { max-width: 1400px; margin: 0 auto; padding: 0 32px; width: 100%; }
.page-hero { padding: 56px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.page-hero-eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 10px; }
.page-hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 84px); line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase; margin: 0; color: var(--ink); }
.page-hero-lead { margin-top: 16px; max-width: 700px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Inicio */
.inicio-hero { position: relative; overflow: hidden; border-radius: var(--r-lg); margin: 24px 0 8px; min-height: 520px; display: flex; align-items: flex-end; background: var(--ink); color: #fff; }
.inicio-hero-inner { position: relative; z-index: 2; padding: 48px; }
.inicio-hero .hero-title { color: #fff; }
.inicio-hero-lead { max-width: 560px; margin: 20px 0 24px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.85); }
.inicio-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.inicio-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.inicio-hero .btn-ghost:hover { background: #fff; color: var(--ink); }
.inicio-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inicio-stat { background: var(--paper-2); border-radius: var(--r-md); padding: 28px; text-align: center; }
.inicio-stat-num { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--ink); }
.inicio-stat-label { margin-top: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.inicio-leader { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: var(--paper-2); border: 0; border-radius: var(--r-md); padding: 20px; cursor: pointer; transition: background 0.18s; }
.inicio-leader:hover { background: var(--paper-3); }
.inicio-leader-name { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; color: var(--ink); }
.inicio-leader-line { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.inicio-leader-line b { color: var(--ink); }

/* Banner CTA sponsor */
.sponsor-cta { background: var(--red); color: #fff; border-radius: var(--r-lg); margin: 40px 0; }
.sponsor-cta-inner { padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sponsor-cta-eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; font-weight: 700; }
.sponsor-cta-title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; margin: 8px 0 6px; line-height: 1; }
.sponsor-cta-lead { max-width: 520px; opacity: 0.92; }
.sponsor-cta .btn-primary { background: #fff; color: var(--red); }
.sponsor-cta .btn-primary:hover { background: var(--paper-2); }
.btn-lg { padding: 14px 26px; font-size: 13px; }

/* Equipos */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.team-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; text-align: left; transition: background 0.18s, transform 0.18s; }
.team-card:hover { background: var(--paper-3); transform: translateY(-2px); }
.team-card-name { font-family: var(--display); font-weight: 600; font-size: 18px; text-transform: uppercase; color: var(--ink); line-height: 1.05; }
.team-card-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Plantilla (roster) */
.roster { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.roster-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--r-sm); }
.roster-row:nth-child(odd) { background: var(--paper-2); }
.roster-num { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.roster-name { flex: 1; font-weight: 600; color: var(--ink); }
.roster-pos { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Estadísticas */
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table thead th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.stats-table th.ta-left, .stats-table td.ta-left { text-align: left; }
.stats-table tbody td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.stats-table tbody tr:hover { background: var(--paper-2); }
.stats-table .col-pts b { font-family: var(--display); font-size: 18px; }
.stats-team { display: flex; align-items: center; gap: 10px; }

/* Prosa (Nosotros / legales) */
.prose p { font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 760px; margin: 0 0 14px; }
.prose em { color: var(--muted); font-style: italic; }
.prose-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ODS */
.ods-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ods-chip { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--paper-2); border-left: 4px solid var(--red); }
.ods-num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--red); text-transform: uppercase; letter-spacing: 0.04em; }
.ods-text { font-size: 13px; color: var(--ink); }

/* Nosotros — hero WebGL flotante (fondo blanco) */
.nos-hero { position: relative; width: 100%; min-height: clamp(520px, 74vh, 780px); overflow: hidden; background: var(--paper); }
.nos-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; opacity: 0; transition: opacity 0.9s ease; }
.nos-hero.is-3d .nos-hero-canvas { opacity: 1; }
.nos-hero.is-3d .nos-hero-grid { display: none; }
.nos-hero::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, var(--paper) 4%, rgba(255,255,255,0.82) 26%, rgba(255,255,255,0) 54%); }
.nos-hero-copy { position: absolute; z-index: 3; left: clamp(24px, 6vw, 120px); top: 50%; transform: translateY(-50%); max-width: min(48vw, 540px); pointer-events: none; }
.nos-hero-eyebrow { font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.nos-hero-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(56px, 9vw, 128px); line-height: 0.9; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.nos-hero-lead { margin-top: 18px; font-size: clamp(15px, 1.5vw, 20px); line-height: 1.5; color: var(--muted); max-width: 420px; }
.nos-hero-grid { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: clamp(28px, 5vw, 72px); align-items: center; }
.nos-hero-grid img { width: 100%; height: 72%; object-fit: cover; border-radius: var(--r-md); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.35); }
@media (max-width: 820px) {
  .nos-hero { min-height: clamp(560px, 86vh, 860px); }
  .nos-hero-copy { top: clamp(48px, 9vh, 90px); transform: none; max-width: none; left: clamp(24px, 6vw, 120px); right: clamp(24px, 6vw, 120px); }
  .nos-hero::before { background: linear-gradient(180deg, var(--paper) 6%, rgba(255,255,255,0.65) 28%, rgba(255,255,255,0) 52%); }
  .nos-hero-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Nosotros — cuerpo (ritmo vertical) */
.nos-body { padding-top: clamp(40px, 6vh, 72px); padding-bottom: clamp(52px, 9vh, 104px); display: flex; flex-direction: column; gap: clamp(40px, 6vh, 84px); }
.prose .nos-lede { font-size: clamp(18px, 1.8vw, 23px); font-weight: 600; line-height: 1.4; color: var(--ink); max-width: 820px; margin: 0 0 16px; }

/* Nosotros — estadísticas (reemplaza ODS) */
.nos-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 48px); }
.nos-stat { border-top: 3px solid var(--red); padding-top: 16px; }
.nos-stat-num { font-family: var(--display); font-weight: 700; line-height: 1; font-size: clamp(40px, 5.2vw, 78px); color: var(--ink); letter-spacing: -0.01em; }
.nos-stat-label { margin-top: 10px; font-family: var(--body); font-weight: 600; font-size: clamp(11px, 1vw, 13px); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .nos-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }

/* Contacto */
.contacto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contacto-card { background: var(--paper-2); border-radius: var(--r-md); padding: 22px; }
.contacto-card-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contacto-card-value { font-size: 16px; color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-word; }
a.contacto-card-value:hover { color: var(--red); }
.contacto-map { margin-top: 20px; height: 220px; border-radius: var(--r-md); background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 12px, var(--paper-3) 12px, var(--paper-3) 24px); display: grid; place-items: center; }
.contacto-map-pin { background: var(--paper); padding: 10px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

/* Ser Sponsor */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.benefit-card { background: var(--paper-2); border-radius: var(--r-md); padding: 24px; border-top: 4px solid var(--red); }
.benefit-title { font-family: var(--display); font-weight: 600; font-size: 20px; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.benefit-desc { font-size: 14px; line-height: 1.6; color: var(--muted); }
.planes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan-card { position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px 24px; text-align: center; }
.plan-card.is-featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.plan-name { font-family: var(--display); font-weight: 700; font-size: 28px; text-transform: uppercase; }
.plan-desc { font-size: 13px; color: var(--muted); margin-top: 8px; }
.plan-card.is-featured .plan-desc { color: rgba(255,255,255,0.75); }

/* Bases del campeonato */
.bases-p { font-size: 15px; line-height: 1.7; color: var(--ink); margin: 0 0 12px; max-width: 820px; }
.bases-article { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px; overflow: hidden; background: var(--paper); }
.bases-article summary { cursor: pointer; padding: 16px 18px; font-family: var(--display); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bases-article summary::-webkit-details-marker { display: none; }
.bases-article summary::after { content: "+"; color: var(--red); font-size: 22px; font-weight: 700; line-height: 1; }
.bases-article[open] summary::after { content: "–"; }
.bases-article[open] summary { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.bases-article-body { padding: 16px 18px; }
.bases-closing { text-align: center; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 32px 0; }

/* Footer del sitio */
.site-footer { background: var(--ink); color: #fff; margin-top: 48px; }
.site-footer-inner { max-width: 1400px; margin: 0 auto; padding: 48px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.sf-col h4 { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.sf-logo { height: 48px; width: auto; margin-bottom: 14px; }
.sf-tag { font-size: 13px; color: rgba(255,255,255,0.6); max-width: 260px; line-height: 1.5; }
.sf-social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.sf-social a { color: rgba(255,255,255,0.8); font-size: 13px; text-decoration: none; }
.sf-social a:hover { color: #fff; }
.sf-link { background: none; border: 0; color: rgba(255,255,255,0.7); font-size: 14px; cursor: pointer; padding: 4px 0; text-align: left; font-family: var(--body); }
.sf-link:hover { color: #fff; }
.sf-contact { display: block; color: rgba(255,255,255,0.7); font-size: 14px; text-decoration: none; margin-bottom: 8px; word-break: break-word; }
a.sf-contact:hover { color: #fff; }
.site-footer-bar { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 32px; text-align: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); }

/* Responsivo */
@media (max-width: 920px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .inicio-stats { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
  .topbar-nav { margin-left: 0; flex-wrap: wrap; }
}

/* Multi-página: resets para enlaces que actúan como nav/botones */
.topbar-brand { text-decoration: none; color: inherit; }
a.topbar-cta { text-decoration: none; display: inline-flex; align-items: center; }
a.sf-link { text-decoration: none; }
a.btn-primary, a.btn-ghost { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
a.inicio-leader { text-decoration: none; color: inherit; }


/* ── CTA principal del topbar: TABLA ──────────────────────────────────── */
.topbar-cta-tabla {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 10px 24px;
  box-shadow: 0 2px 0 var(--red-deep);
}
.topbar-cta-tabla:hover { background: var(--red-dark); transform: translateY(1px); box-shadow: 0 1px 0 var(--red-deep); }
.topbar-cta-tabla.is-active { background: var(--red-deep); }

/* ── Skeleton loaders ─────────────────────────────────────────────────── */
.sk {
  display: block; flex: 0 1 auto; min-width: 0; border-radius: 6px;
  background: linear-gradient(90deg, rgba(0,0,0,0.055) 25%, rgba(0,0,0,0.10) 37%, rgba(0,0,0,0.055) 63%);
  background-size: 400% 100%; animation: skShimmer 1.5s ease-in-out infinite;
}
@keyframes skShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-wrap { padding: 4px 0; }
.sk-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.sk-row > .sk:nth-child(2) { margin-right: auto; }
.sk-row:last-child { border-bottom: 0; }
.sk-head { padding-top: 15px; padding-bottom: 15px; }
.sk-head .sk { height: 8px; opacity: 0.6; }
.sk-row-stats > .sk:nth-child(2) { margin-right: auto; }
.sk-team > .sk:first-child { flex: 0 0 auto; }
.sk-team { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; flex: 1 1 auto; }
.sk-team-end { justify-content: flex-end; margin-right: 0; }
.sk-hero { padding: clamp(28px, 4vw, 46px) clamp(18px, 4vw, 40px) 0; }
.sk-hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.sk-fixtures { display: flex; flex-direction: column; gap: 10px; }
.sk-fixture {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border: 1px solid rgba(0,0,0,0.07); border-radius: 18px; background: var(--paper-2, #fff);
}
.sk-side { border: 1px solid rgba(0,0,0,0.07); border-radius: 18px; padding: 20px; background: var(--paper-2, #fff); }
.sk-side-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.sk-side-row:last-child { border-bottom: 0; }
.sk-side-row > .sk:nth-child(2) { margin-right: auto; }
@media (max-width: 720px) { .sk-fixture { flex-wrap: wrap; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
body[data-dark="true"] .sk { background: linear-gradient(90deg, rgba(255,255,255,0.07) 25%, rgba(255,255,255,0.13) 37%, rgba(255,255,255,0.07) 63%); background-size: 400% 100%; }
body[data-dark="true"] .sk-row, body[data-dark="true"] .sk-side-row { border-color: rgba(255,255,255,0.07); }
body[data-dark="true"] .sk-fixture, body[data-dark="true"] .sk-side { background: #1A1A1A; border-color: rgba(255,255,255,0.08); }

.site-footer-bar { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.sf-credit { color: rgba(255,255,255,0.45); }
.sf-credit a { color: rgba(255,255,255,0.7); text-decoration: none; }
.sf-credit a:hover { color: #fff; }


/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — móvil ≤600 · tablet vertical ≤900 · tablet horizontal ≤1180
   ═══════════════════════════════════════════════════════════════════════ */
:root { --topbar-h: 67px; }
html { -webkit-text-size-adjust: 100%; }
.app { min-height: 100dvh; }
.table-hint { display: none; }

/* Botón hamburguesa */
.topbar-burger { display: none; width: 44px; height: 44px; padding: 12px 10px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: space-between; }
.topbar-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.26s cubic-bezier(0.2,0.7,0.2,1), opacity 0.18s; }
.topbar.is-open .topbar-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.topbar.is-open .topbar-burger span:nth-child(2) { opacity: 0; }
.topbar.is-open .topbar-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.nav-sheet { display: none; }
body.nav-open { overflow: hidden; }

/* ── Tablet vertical y móvil ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .topbar { padding: 11px 18px; gap: 12px; }
  .topbar-logo { height: 34px; }
  .topbar-nav { display: none; }
  .topbar-burger { display: flex; }
  .topbar-right { margin-left: auto; gap: 6px; }
  .nav-sheet {
    display: block; position: fixed; left: 0; right: 0; top: var(--topbar-h, 67px); height: calc(100dvh - var(--topbar-h, 67px)); z-index: 49;
    background: var(--paper); opacity: 0; pointer-events: none; transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.2,0.7,0.2,1);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-sheet.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-sheet-list { display: flex; flex-direction: column; padding: 18px 22px calc(32px + env(safe-area-inset-bottom)); }
  .nav-sheet-list a {
    font-family: var(--display); font-weight: 600; font-size: clamp(26px, 6.4vw, 38px);
    letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink); text-decoration: none;
    padding: 15px 0; border-bottom: 1px solid var(--line);
  }
  .nav-sheet-list a.is-active { color: var(--red); }
  .catnav-pill { min-height: 44px; justify-content: center; }
  .season-opt { min-height: 40px; }
  .main { padding-left: 18px; padding-right: 18px; }
  .catnav { overflow: hidden; padding: 10px 0; }
  .catnav-inner { padding: 0 16px; }
  html { overflow-x: clip; }
}

/* ── Móvil ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Tabla reducida: Pos · Equipo · PJ · DG · Pts (el resto, al tocar la fila) */
  .standings tr > *:nth-child(n+4):nth-child(-n+8), .standings .col-form, .col-cat { display: none; }
  .standings th, .standings td { padding: 11px 6px; }
  .standings .col-name { max-width: 0; }
  .team-cell { gap: 9px; min-width: 0; }
  .team-cell-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
  .team-cell-sub { display: none; }
  .table-hint { display: block; margin: 0 0 10px; font-size: 12px; color: var(--muted); }
  .stats-table th, .stats-table td { padding: 11px 8px; }

  /* Drawers y modales como hoja inferior */
  .drawer-backdrop, .modal-backdrop { align-items: flex-end; justify-content: center; }
  .drawer, .modal {
    width: 100%; max-width: none; max-height: 92dvh; border-radius: 28px 28px 0 0;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
    animation: sheetIn 0.32s cubic-bezier(0.2,0.7,0.2,1);
  }
  .drawer-cols { grid-template-columns: 1fr; }
  .drawer-score { gap: 10px; }
  .modal-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .modal-foot .btn-primary { justify-content: center; }

  /* Footer */
  .site-footer-inner { grid-template-columns: 1fr; gap: 26px; padding: 36px 20px; }
  .site-footer-bar { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Skeletons */
  .sk-hero-stats .sk { width: 76px; }
  .sk-side { padding: 16px; }
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }

/* ── Tablet horizontal ───────────────────────────────────────────────── */
@media (min-width: 901px) and (max-width: 1180px) {
  .main { grid-template-columns: 1fr; }
  .topbar { padding: 13px 22px; }
  .topbar-nav a { padding: 8px 11px; font-size: 12.5px; }
}
