/* Tema claro (mismo diseño que index) sobre styles.css para páginas legacy */
:root {
    --bg-main: #f5f7fb; --bg-sec: #f8fafc; --bg-card: #ffffff; --bg-card-hover: #f1f5f9;
    --border-color: #e6eaf2;
    --accent-primary: #2563eb; --accent-success: #059669; --accent-danger: #dc2626; --accent-warning: #d97706;
    --text-main: #0f172a; --text-muted: #475569;
    --shadow-soft: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --bg: #f5f7fb; --surface: #ffffff; --ink: #0f172a; --ink-2: #475569; --ink-3: #94a3b8;
    --line: #e6eaf2; --navy: #0b1b3a; --green: #059669; --green-bg: #e7f8f0; --gold: #f59e0b;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --font-h: 'Outfit', sans-serif; --font-b: 'Inter', sans-serif;
}
html, body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { letter-spacing: -.01em; }
.container { max-width: 1180px; }

/* Header (idéntico a index) */
.header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-family: var(--font-h); font-weight: 800; font-size: 24px; display: flex; align-items: center; gap: 8px; color: var(--navy); }
.logo i { color: var(--green); font-size: 26px; }
.nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav a:hover, .nav a.active { color: var(--ink); font-weight: 600; }
.btn-premium { background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; border: 0; transition: transform .15s; white-space: nowrap; }
.btn-premium:hover { transform: translateY(-2px); }
.btn-premium i { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--navy); cursor: pointer; }
@media (max-width: 820px) {
    .nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 14px; text-align: center; }
    .nav.open { display: flex; }
    .nav-toggle { display: block; margin-left: auto; }
}

/* Footer */
footer.site-footer { text-align: center; font-size: 12px; color: var(--ink-3); padding: 36px 20px 40px; }
footer.site-footer a { margin: 0 10px; text-decoration: underline; }

/* Textos que eran blancos sobre fondo oscuro */
.sidebar-title, .league-card h3, .matrix-table th.row-header, .modal-title { color: var(--navy); }
.league-nav-item:hover { color: var(--ink); }
.league-nav-item.active { background: var(--green-bg); }
.modal-close:hover { color: var(--ink); }
.scroll-competiciones::-webkit-scrollbar-track { background: #f1f5f9; }
.scroll-competiciones::-webkit-scrollbar-thumb { background: #cbd5e1; }

/* Tarjetas con sombra suave, como index */
.league-card, .league-sidebar, .accuracy-card, .league-stat-card, .fixture-item, .popup-content { box-shadow: var(--shadow); }
.league-layout-split, .league-card { border-color: var(--line); }

/* Bordes translúcidos blancos → líneas visibles en claro */
.match-item, .fixture-item, .league-stat-card { border-color: var(--line) !important; }

/* Pop-up +18 y modales claros */
#agePopup, .modal-overlay { background: rgba(15, 23, 42, .5); }
.modal-content, .popup-content { background: #fff; border-color: var(--line); }
