﻿/* ================================================
   RETOLIGA - TU LIGA. TU RETO.
   site.css — Tema dual (oscuro/claro) + Responsive
   ================================================ */

/* ---- FUENTES ---- */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&family=Sora:wght@600;700;800&display=swap');

/* ---- VARIABLES DE TEMA ---- */
:root[data-theme="dark"],
:root:not([data-theme]) {
    --bg-page: #0b1520;
    --bg-sidebar: #0f1e2e;
    --bg-card: #152030;
    --bg-card-hover: #1a2840;
    --bg-input: #0f1e2e;
    --bg-topbar: #0f1e2e;
    --bg-badge: #1e3248;
    --bg-overlay: rgba(0, 0, 0, 0.55);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.13);
    --text-primary: #e8f0f7;
    --text-secondary: #96b4cc;
    --text-muted: #5e7f99;
    --accent: #00c853;
    --accent-hover: #00e676;
    --accent-dim: rgba(0, 200, 83, 0.12);
    --accent-text: #00c853;
    --danger: #e24b4a;
    --danger-dim: rgba(226, 75, 74, 0.12);
    --warning: #ef9f27;
    --warning-dim: rgba(239, 159, 39, 0.12);
    --info: #378add;
    --info-dim: rgba(55, 138, 221, 0.12);
    --purple: #7f77dd;
    --purple-dim: rgba(127, 119, 221, 0.12);
    --scrollbar-track: #0f1e2e;
    --scrollbar-thumb: #1e3248;
    --hero-from: #06281d;
    --hero-to: #0b1d3a;
    --hero-line: rgba(0, 200, 83, 0.08);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow-btn: 0 2px 8px rgba(0, 200, 83, 0.25);
}

:root[data-theme="light"] {
    --bg-page: #eef2f7;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f8fc;
    --bg-input: #f5f8fc;
    --bg-topbar: #ffffff;
    --bg-badge: #e8f5ee;
    --bg-overlay: rgba(0, 0, 0, 0.3);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text-primary: #0f1923;
    --text-secondary: #3a5a74;
    --text-muted: #6a8fa8;
    --accent: #009e55;
    --accent-hover: #00b360;
    --accent-dim: rgba(0, 158, 85, 0.1);
    --accent-text: #007a41;
    --danger: #d63f3e;
    --danger-dim: rgba(214, 63, 62, 0.1);
    --warning: #c97f0a;
    --warning-dim: rgba(201, 127, 10, 0.1);
    --info: #1d6bb5;
    --info-dim: rgba(29, 107, 181, 0.1);
    --purple: #5b54b8;
    --purple-dim: rgba(91, 84, 184, 0.1);
    --scrollbar-track: #eef2f7;
    --scrollbar-thumb: #c8d8e8;
    --hero-from: #004d2a;
    --hero-to: #006535;
    --hero-line: rgba(255, 255, 255, 0.05);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-btn: 0 2px 8px rgba(0, 158, 85, 0.25);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', system-ui, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

/* ---- LAYOUT PRINCIPAL ---- */
.q-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ================================================
   SIDEBAR
   ================================================ */
.q-sidebar {
    width: 220px;
    min-width: 220px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease, width 0.3s ease;
    overflow: hidden;
}

/* Logo */
.q-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    flex-shrink: 0;
}

.q-logo-icon-img {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-btn);
}

.q-logo-text strong {
    display: block;
    font-family: 'Sora', 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1;
}

.q-logo-text .q-logo-text-accent {
    color: var(--accent-text);
}

.q-logo-text > span {
    font-size: 10px;
    color: var(--accent-text);
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Nav */
.q-sidebar-nav {
    flex: 1;
    padding: 10px 8px;
    overflow-y: auto;
    overflow-x: hidden;
}

.q-nav-section {
    margin-bottom: 6px;
}

.q-nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 10px 10px 4px;
    white-space: nowrap;
}

.q-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

    .q-nav-item:hover {
        background: var(--accent-dim);
        color: var(--text-primary);
    }

    .q-nav-item.active {
        background: var(--accent-dim);
        color: var(--accent-text);
    }

        .q-nav-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 60%;
            background: var(--accent);
            border-radius: 0 3px 3px 0;
        }

    .q-nav-item i {
        font-size: 17px;
        flex-shrink: 0;
    }

.q-nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    line-height: 1.5;
}

.q-nav-item.danger {
    color: var(--danger);
}

    .q-nav-item.danger:hover {
        background: var(--danger-dim);
        color: var(--danger);
    }

/* Sidebar bottom */
.q-sidebar-bottom {
    padding: 8px 8px 12px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.q-user-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 2px;
}

.q-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1.5px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-text);
    flex-shrink: 0;
    font-family: 'Sora', 'Barlow Condensed', sans-serif;
    letter-spacing: 0.05em;
}

.q-user-info strong {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.q-user-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.q-user-username {
    display: block;
    margin-top: 2px;
    color: var(--accent-text) !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.q-username-copy {
    width: calc(100% - 20px);
    margin: 2px 10px 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.q-username-copy:hover,
.q-username-copy.is-copied {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent-text);
    transform: translateY(-1px);
}

.q-username-copy i {
    font-size: 14px;
}


/* ================================================
   OVERLAY (mobile)
   ================================================ */
.q-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

/* ================================================
   MAIN CONTENT
   ================================================ */
.q-main {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Topbar */
.q-topbar {
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 10px;
}

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

.q-hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1;
    transition: border-color 0.2s, color 0.2s;
}

    .q-hamburger:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

.q-topbar-title {
    font-family: 'Sora', 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.q-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Botón toggle tema */
.q-theme-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

    .q-theme-btn:hover {
        border-color: var(--accent);
        color: var(--accent-text);
    }

    .q-theme-btn i {
        font-size: 14px;
    }

/* Contenido principal */
.q-content {
    flex: 1;
    padding: 20px 22px;
}

/* ================================================
   HERO BANNER
   ================================================ */
.q-hero {
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    overflow: hidden;
    position: relative;
    gap: 16px;
}

    .q-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient( -45deg, var(--hero-line), var(--hero-line) 1px, transparent 1px, transparent 12px );
    }

.q-hero-body {
    position: relative;
    z-index: 1;
}

.q-hero-title {
    font-family: 'Sora', 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

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

.q-hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 6px;
    max-width: 280px;
}

.q-hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.q-hero-trophy {
    font-size: 64px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

/* ================================================
   BOTONES
   ================================================ */
.btn-q-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 7px;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: var(--shadow-btn);
    white-space: nowrap;
}

    .btn-q-primary:hover {
        background: var(--accent-hover);
        transform: translateY(-1px);
        color: #fff;
        text-decoration: none;
    }

.btn-q-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 18px;
    border-radius: 7px;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

    .btn-q-outline:hover {
        border-color: rgba(255,255,255,0.6);
        background: rgba(255,255,255,0.08);
        color: #fff;
        text-decoration: none;
    }

.btn-q-sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-q-ghost {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 7px;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

    .btn-q-ghost:hover {
        border-color: var(--border-hover);
        color: var(--text-primary);
        text-decoration: none;
    }

.btn-q-danger {
    background: var(--danger-dim);
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 5px 12px;
    border-radius: 6px;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

    .btn-q-danger:hover {
        background: var(--danger);
        color: #fff;
        text-decoration: none;
    }

.btn-q-warning {
    background: var(--warning-dim);
    color: var(--warning);
    border: 1px solid var(--warning);
    padding: 5px 12px;
    border-radius: 6px;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

    .btn-q-warning:hover {
        background: var(--warning);
        color: #fff;
        text-decoration: none;
    }

/* ================================================
   STAT CARDS
   ================================================ */
.q-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.q-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s, transform 0.2s;
}

    .q-stat-card:hover {
        border-color: var(--border-hover);
        transform: translateY(-2px);
    }

.q-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 10px;
}

    .q-stat-icon.green {
        background: var(--accent-dim);
        color: var(--accent-text);
    }

    .q-stat-icon.blue {
        background: var(--info-dim);
        color: var(--info);
    }

    .q-stat-icon.purple {
        background: var(--purple-dim);
        color: var(--purple);
    }

    .q-stat-icon.amber {
        background: var(--warning-dim);
        color: var(--warning);
    }

.q-stat-val {
    font-family: 'Sora', 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.q-stat-lbl {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ================================================
   SECTION CARD (contenedor genérico)
   ================================================ */
.q-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.q-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.q-card-title {
    font-family: 'Sora', 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.q-card-link {
    font-size: 12px;
    color: var(--accent-text);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

    .q-card-link:hover {
        opacity: 0.75;
        text-decoration: none;
    }

.q-card-body {
    padding: 14px 16px;
}

/* ================================================
   PARTIDO ROWS
   ================================================ */
.q-partido-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

    .q-partido-row:last-child {
        border-bottom: none;
    }

    .q-partido-row:hover {
        background: var(--bg-card-hover);
    }

.q-partido-fecha {
    text-align: center;
    min-width: 30px;
    flex-shrink: 0;
}

.q-fecha-mes {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.q-fecha-dia {
    font-family: 'Sora', 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.q-partido-grupo {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 55px;
    flex-shrink: 0;
}

.q-partido-teams {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex-wrap: wrap;
}

.q-flag {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.q-team-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.q-vs {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    flex-shrink: 0;
}

.q-partido-hora {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}

/* ================================================
   BADGES / PILLS
   ================================================ */
.q-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.q-badge-success {
    background: var(--accent-dim);
    color: var(--accent-text);
}

.q-badge-danger {
    background: var(--danger-dim);
    color: var(--danger);
}

.q-badge-warning {
    background: var(--warning-dim);
    color: var(--warning);
}

.q-badge-info {
    background: var(--info-dim);
    color: var(--info);
}

.q-badge-muted {
    background: var(--bg-badge);
    color: var(--text-secondary);
}

.q-badge-purple {
    background: var(--purple-dim);
    color: var(--purple);
}

/* ================================================
   TABLA GENÉRICA
   ================================================ */
.q-table-wrap {
    overflow-x: auto;
}

.q-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .q-table th {
        text-align: left;
        padding: 10px 14px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--text-muted);
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
    }

    .q-table td {
        padding: 11px 14px;
        border-bottom: 1px solid var(--border);
        color: var(--text-primary);
        vertical-align: middle;
    }

    .q-table tbody tr:last-child td {
        border-bottom: none;
    }

    .q-table tbody tr {
        transition: background 0.15s;
    }

        .q-table tbody tr:hover {
            background: var(--bg-card-hover);
        }

    .q-table .text-end {
        text-align: right;
    }

    .q-table .text-center {
        text-align: center;
    }

/* ================================================
   RANKING
   ================================================ */
.q-rank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

    .q-rank-row:last-child {
        border-bottom: none;
    }

    .q-rank-row:hover {
        background: var(--bg-card-hover);
    }

.q-rank-pos {
    font-family: 'Sora', 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    color: var(--text-muted);
}

    .q-rank-pos.gold {
        color: #f0a500;
    }

    .q-rank-pos.silver {
        color: #8fa3b8;
    }

    .q-rank-pos.bronze {
        color: #c97f0a;
    }

.q-rank-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-badge);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-text);
    font-family: 'Sora', 'Barlow Condensed', sans-serif;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.q-rank-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.q-rank-pts {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-text);
    white-space: nowrap;
}

/* ================================================
   FORMULARIOS
   ================================================ */
.q-form-group {
    margin-bottom: 16px;
}

.q-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.q-input,
.q-select,
.q-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 13px;
    color: var(--text-primary);
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}

    .q-input:focus,
    .q-select:focus,
    .q-textarea:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-dim);
    }

    .q-input::placeholder {
        color: var(--text-muted);
    }

.q-input-sm {
    padding: 6px 10px;
    font-size: 13px;
    width: 75px;
    text-align: center;
}

.q-score-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.q-score-sep {
    font-family: 'Sora', 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Alerts */
.q-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .q-alert i {
        font-size: 16px;
        flex-shrink: 0;
    }

.q-alert-success {
    background: var(--accent-dim);
    color: var(--accent-text);
    border: 1px solid var(--accent);
}

.q-alert-danger {
    background: var(--danger-dim);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.q-alert-warning {
    background: var(--warning-dim);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.q-alert-info {
    background: var(--info-dim);
    color: var(--info);
    border: 1px solid var(--info);
}

/* ================================================
   PAGE HEADER
   ================================================ */
.q-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.q-page-title {
    font-family: 'Sora', 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* ================================================
   FECHA LOCAL (JS hook)
   ================================================ */
.fecha-local {
    white-space: nowrap;
}

/* ================================================
   FOOTER
   ================================================ */
.q-footer {
    border-top: 1px solid var(--border);
    padding: 14px 22px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================================
   RESPONSIVE — TABLET (≤ 992px)
   ================================================ */
@media (max-width: 992px) {
    .q-sidebar {
        width: 60px;
        min-width: 60px;
    }

    .q-logo-text,
    .q-nav-label,
    .q-nav-item span:not(.q-nav-badge),
    .q-nav-badge,
    .q-user-info,
    .q-username-copy {
        display: none;
    }

    .q-sidebar-logo {
        justify-content: center;
        padding: 14px 0;
    }

    .q-nav-item {
        justify-content: center;
        padding: 10px 0;
        border-radius: 8px;
    }

        .q-nav-item.active::before {
            display: none;
        }

    .q-user-card {
        justify-content: center;
        padding: 6px 0;
    }

    .q-main {
        margin-left: 60px;
    }

    .q-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ================================================ */
@media (max-width: 768px) {
    .q-sidebar {
        transform: translateX(-100%);
        width: 220px;
        min-width: 220px;
    }

        .q-sidebar.open {
            transform: translateX(0);
        }

            .q-sidebar.open ~ .q-overlay,
            .q-overlay.active {
                display: block;
                opacity: 1;
            }

    /* Restaurar texto en sidebar móvil */
    .q-logo-text,
    .q-nav-item span:not(.q-nav-badge),
    .q-nav-badge,
    .q-user-info {
        display: block;
    }

    .q-username-copy {
        display: flex;
    }

    .q-nav-item {
        justify-content: flex-start;
        padding: 8px 10px;
    }

        .q-nav-item.active::before {
            display: block;
        }

    .q-user-card {
        justify-content: flex-start;
    }

    .q-sidebar-logo {
        justify-content: flex-start;
        padding: 18px 16px 14px;
    }

    .q-main {
        margin-left: 0;
    }

    .q-hamburger {
        display: flex;
    }

    .q-content {
        padding: 14px 14px;
    }

    .q-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .q-hero {
        padding: 18px 18px;
    }

    .q-hero-trophy {
        font-size: 44px;
    }

    .q-hero-title {
        font-size: 20px;
    }

    .q-partido-grupo {
        display: none;
    }

    .q-topbar {
        padding: 10px 14px;
    }
}

/* ================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ================================================ */
@media (max-width: 480px) {
    .q-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .q-hero-trophy {
        display: none;
    }

    .q-hero-title {
        font-size: 18px;
    }

    .q-hero-sub {
        display: none;
    }

    .q-team-name {
        font-size: 11.5px;
    }

    .q-topbar-title {
        font-size: 15px;
    }

    .btn-q-primary, .btn-q-outline {
        padding: 7px 13px;
        font-size: 12px;
    }
}

/* ================================================
   UTILIDADES
   ================================================ */
.text-accent {
    color: var(--accent-text) !important;
}

.text-muted-q {
    color: var(--text-muted) !important;
}

.text-secondary-q {
    color: var(--text-secondary) !important;
}

.text-danger-q {
    color: var(--danger) !important;
}

.mt-q {
    margin-top: 18px;
}

.mb-q {
    margin-bottom: 18px;
}

.gap-q {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Columna doble para dashboard */
.q-two-col {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    align-items: start;
}

@media (max-width: 900px) {
    .q-two-col {
        grid-template-columns: 1fr;
    }
}
