/* 4.52 · Siete temas nuevos, sacados de los diseños que vio Roberto:
   estadio (Estadio de noche), neon, tiza (Césped y tiza), ochenta (Retro de los 80),
   limpio (Blanco y limpio), vestuario (Pizarra del vestuario) y periodico (Prensa deportiva).
   Las fuentes van dentro de la app (carpeta fuentes/), así funcionan sin conexión.
   Se carga la última, después de acabado.css. Solo cambia el aspecto. */

@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 800;
  font-display: swap;
  src: url('../fuentes/barlow-condensed-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Unbounded';
  font-weight: 900;
  font-display: swap;
  src: url('../fuentes/unbounded-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 500;
  font-display: swap;
  src: url('../fuentes/space-grotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-display: swap;
  src: url('../fuentes/space-grotesk-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 700;
  font-display: swap;
  src: url('../fuentes/barlow-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 800;
  font-display: swap;
  src: url('../fuentes/barlow-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Bowlby One';
  font-weight: 400;
  font-display: swap;
  src: url('../fuentes/bowlby-one-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Rubik';
  font-weight: 400;
  font-display: swap;
  src: url('../fuentes/rubik-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Rubik';
  font-weight: 700;
  font-display: swap;
  src: url('../fuentes/rubik-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Kalam';
  font-weight: 700;
  font-display: swap;
  src: url('../fuentes/kalam-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-weight: 700;
  font-display: swap;
  src: url('../fuentes/oswald-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-weight: 400;
  font-display: swap;
  src: url('../fuentes/source-serif-4-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-weight: 700;
  font-display: swap;
  src: url('../fuentes/source-serif-4-700.woff2') format('woff2');
}

/* ---------- Colores de cada tema ---------- */
:root[data-liga-theme='estadio'] {
  color-scheme: dark;
  --t-bg: #07111f;
  --t-glow: #1c3358;
  --t-surface: #0f1e33;
  --t-raised: #16294a;
  --t-input: #0a1628;
  --t-text: #f3f6fa;
  --t-muted: #b6c4d8;
  --t-accent: #f4c542;
  --t-on: #10233d;
  --t-edge: #2a4268;
  --t-radius: 18px;
  --t-font: 'Barlow Condensed', system-ui, sans-serif;
  --t-good: #3ddc97;
  --t-on-good: #06251a;
  --t-shadow: 0 10px 26px #0006;
  --t-hero: linear-gradient(155deg, #1c3a66 0%, #12284a 55%, #0f1e33 100%);
  --t-nav: #0f1e33;
}
:root[data-liga-theme='neon'] {
  color-scheme: dark;
  --t-bg: #050507;
  --t-glow: #15151d;
  --t-surface: #101016;
  --t-raised: #1b1b24;
  --t-input: #0b0b10;
  --t-text: #f2f2f7;
  --t-muted: #b4b4c6;
  --t-accent: #c6ff3d;
  --t-on: #0b1200;
  --t-edge: #34343f;
  --t-radius: 22px;
  --t-font: 'Unbounded', system-ui, sans-serif;
  --t-good: #ff3dcb;
  --t-on-good: #18000f;
  --t-shadow: none;
  --t-hero: #101016;
  --t-nav: #17171f;
}
:root[data-liga-theme='tiza'] {
  color-scheme: light;
  --t-bg: #eef4ef;
  --t-glow: #dcebe0;
  --t-surface: #ffffff;
  --t-raised: #e1ede4;
  --t-input: #ffffff;
  --t-text: #0e2a1c;
  --t-muted: #3f5a4b;
  --t-accent: #16683f;
  --t-on: #ffffff;
  --t-edge: #b9d0c0;
  --t-radius: 18px;
  --t-font: 'Barlow', system-ui, sans-serif;
  --t-good: #16683f;
  --t-on-good: #ffffff;
  --t-shadow: 0 4px 14px #0e2a1c14;
  --t-hero: repeating-linear-gradient(90deg, #237f50 0 39px, #1e7247 39px 78px);
  --t-nav: #ffffff;
}
:root[data-liga-theme='ochenta'] {
  color-scheme: light;
  --t-bg: #f3e6cc;
  --t-glow: #f3e6cc;
  --t-surface: #fff6e4;
  --t-raised: #f0ddb8;
  --t-input: #fffaf0;
  --t-text: #2b1a10;
  --t-muted: #6a4a33;
  --t-accent: #b4461c;
  --t-on: #fff6e4;
  --t-edge: #2b1a10;
  --t-radius: 16px;
  --t-font: 'Bowlby One', system-ui, sans-serif;
  --t-good: #2e6e6a;
  --t-on-good: #fff6e4;
  --t-shadow: 5px 5px 0 #2b1a10;
  --t-hero: #fff6e4;
  --t-nav: #fff6e4;
}
:root[data-liga-theme='limpio'] {
  color-scheme: light;
  --t-bg: #f4f6fa;
  --t-glow: #f4f6fa;
  --t-surface: #ffffff;
  --t-raised: #f1f3f6;
  --t-input: #ffffff;
  --t-text: #111827;
  --t-muted: #4b5563;
  --t-accent: #2457d6;
  --t-on: #ffffff;
  --t-edge: #e2e6ed;
  --t-radius: 18px;
  --t-font: system-ui, sans-serif;
  --t-good: #e8eefc;
  --t-on-good: #1a3f9e;
  --t-shadow: 0 1px 2px #1118270f, 0 8px 24px #1118270f;
  --t-hero: #ffffff;
  --t-nav: #ffffff;
}
:root[data-liga-theme='vestuario'] {
  color-scheme: dark;
  --t-bg: #22302b;
  --t-glow: #34463f;
  --t-surface: #2b3b35;
  --t-raised: #34463f;
  --t-input: #1f2b27;
  --t-text: #f1f0e8;
  --t-muted: #cfdcd5;
  --t-accent: #ffe27a;
  --t-on: #22302b;
  --t-edge: #5e7268;
  --t-radius: 10px;
  --t-font: 'Kalam', 'Comic Sans MS', cursive;
  --t-good: #ffe27a;
  --t-on-good: #22302b;
  --t-shadow: inset 0 0 30px #0003;
  --t-hero: radial-gradient(ellipse at 30% 20%, #3b4e46, #26352f 75%);
  --t-nav: #1a2521;
}
:root[data-liga-theme='periodico'] {
  color-scheme: light;
  --t-bg: #f5f0e6;
  --t-glow: #f5f0e6;
  --t-surface: #fbf8f1;
  --t-raised: #ede5d6;
  --t-input: #fffdf8;
  --t-text: #141414;
  --t-muted: #4a4540;
  --t-accent: #c4211a;
  --t-on: #ffffff;
  --t-edge: #141414;
  --t-radius: 0px;
  --t-font: 'Oswald', 'Arial Narrow', sans-serif;
  --t-good: #141414;
  --t-on-good: #f5f0e6;
  --t-shadow: none;
  --t-hero: #fbf8f1;
  --t-nav: #f5f0e6;
}

/* ---------- Toques propios de cada tema ---------- */
/* Titulares en mayúsculas para los temas deportivos */
:root:is([data-liga-theme='estadio'], [data-liga-theme='periodico']) :is(h1, h2, .hero h2) {
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
:root[data-liga-theme='estadio'] :is(h1, h2) {
  font-weight: 800;
}
:root[data-liga-theme='estadio'] :is(.score, .pro-match .score) {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 1.25em;
}

/* Neón: letra moderna en todo y brillo en lo importante */
:root[data-liga-theme='neon'] body {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  background: var(--t-bg) !important;
}
:root[data-liga-theme='neon'] :is(h1, h2) {
  font-weight: 900;
  letter-spacing: 0.01em;
}
:root[data-liga-theme='neon'] h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
:root[data-liga-theme='neon']
  :is(button:not(.secondary):not(.alt), .btn:not(.alt), .cta, .poll441-btn[aria-pressed='true']) {
  box-shadow: 0 0 18px #c6ff3d55 !important;
}
:root[data-liga-theme='neon'] :is(.score, .pro-match .score, .badge) {
  box-shadow: 0 0 14px #ff3dcb66;
}
:root[data-liga-theme='neon'] :is(.nav button.active, nav.bottom445 a.active) {
  color: var(--t-accent) !important;
  text-shadow: 0 0 10px #c6ff3d88;
}

/* Césped y tiza: cabeceras con el campo de fondo y letras blancas */
:root[data-liga-theme='tiza'] body {
  background: var(--t-bg) !important;
}
:root[data-liga-theme='tiza'] :is(.hero, .hero.pro-hero, body[data-page='acceso_seguro'] main > header) {
  background: var(--t-hero) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 2px #ffffff88 !important;
}
:root[data-liga-theme='tiza']
  :is(.hero, .hero.pro-hero, body[data-page='acceso_seguro'] main > header)
  :is(h1, h2, h3, p, small, span, .muted, .eyebrow, b, strong) {
  color: #fff !important;
}
:root[data-liga-theme='tiza'] :is(h1, h2) {
  font-weight: 800;
}

/* Retro de los 80: bordes gordos, sombra dura y franjas de colores arriba */
:root[data-liga-theme='ochenta'] body {
  font-family: 'Rubik', system-ui, sans-serif !important;
  background: var(--t-bg) !important;
  border-top: 26px solid #e0712c;
  border-image: linear-gradient(#e0712c 0 50%, #f2b33d 50% 80%, #2e6e6a 80%) 1;
}
:root[data-liga-theme='ochenta']
  :is(section, .panel, .standing-card, .match, .club-tile, .tile, .role, .hero, .pro-match, .cal-match) {
  border: 3px solid #2b1a10 !important;
}
:root[data-liga-theme='ochenta'] :is(button, .btn, .pill, .cta) {
  border: 3px solid #2b1a10 !important;
  font-weight: 700;
}
:root[data-liga-theme='ochenta'] :is(h1, h2) {
  font-weight: 400;
  color: #b4461c !important;
}
:root[data-liga-theme='ochenta'] h3 {
  font-family: 'Rubik', system-ui, sans-serif;
  color: #2e6e6a !important;
}

/* Blanco y limpio: sin adornos, tarjetas suaves y botones secundarios grises */
:root[data-liga-theme='limpio'] body {
  background: var(--t-bg) !important;
}
:root[data-liga-theme='limpio'] :is(h1, h2, h3, .brand) {
  color: var(--t-text) !important;
  letter-spacing: -0.01em;
}
:root[data-liga-theme='limpio'] :is(.eyebrow, .points, .standing-points) {
  color: var(--t-accent) !important;
}
:root[data-liga-theme='limpio'] :is(section, .panel, .standing-card, .match, .tile, .role, .hero) {
  border-color: transparent !important;
}

/* Pizarra del vestuario: letra a mano en títulos y botones secundarios con raya discontinua */
:root[data-liga-theme='vestuario'] :is(h1, h2, h3) {
  font-weight: 700;
}
:root[data-liga-theme='vestuario']
  :is(button.secondary, .btn.alt, .chips button:not(.active), .tabs button:not(.active)) {
  background: transparent !important;
  border: 2px dashed #f1f0e899 !important;
}
:root[data-liga-theme='vestuario'] :is(section, .panel, .hero) {
  border: 6px solid #8a5a36 !important;
}

/* Prensa deportiva: papel, letra de periódico, filetes en vez de cajas */
:root[data-liga-theme='periodico'] body {
  font-family: 'Source Serif 4', Georgia, serif !important;
  background: var(--t-bg) !important;
}
:root[data-liga-theme='periodico'] :is(h1, h2) {
  border-bottom: 4px double #141414;
  padding-bottom: 6px;
}
:root[data-liga-theme='periodico'] :is(h1, h2, h3) {
  color: #141414 !important;
}
:root[data-liga-theme='periodico'] :is(.eyebrow, h3, .points, .standing-points) {
  color: #c4211a !important;
}
:root[data-liga-theme='periodico'] :is(button, .btn, .pill, .cta, .nav button, nav.bottom445 a) {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
:root[data-liga-theme='periodico'] :is(section, .panel, .standing-card, .tile, .role, .hero) {
  border: 0 !important;
  border-top: 1.5px solid #141414 !important;
}

/* Vista previa de los temas nuevos en el selector */
.theme-preview433[data-preview-theme='estadio'] .tp-title,
.theme-preview433[data-preview-theme='tiza'] .tp-title {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
}
.theme-preview433[data-preview-theme='neon'] .tp-title {
  font-family: 'Unbounded', system-ui, sans-serif;
}
.theme-preview433[data-preview-theme='ochenta'] .tp-title {
  font-family: 'Bowlby One', system-ui, sans-serif;
}
.theme-preview433[data-preview-theme='vestuario'] .tp-title {
  font-family: 'Kalam', cursive;
}
.theme-preview433[data-preview-theme='periodico'] .tp-title {
  font-family: 'Oswald', sans-serif;
}
.theme-preview433[data-preview-theme='tiza'] .tp-hero {
  background: repeating-linear-gradient(90deg, #237f50 0 12px, #1e7247 12px 24px) !important;
  color: #fff !important;
}
.theme-preview433[data-preview-theme='ochenta'] {
  border: 3px solid #2b1a10;
  box-shadow: 3px 3px 0 #2b1a10;
}
