/*******************************************************************************
 * *
 * 7. ESTADISTICAS DEL PARTIDO
 * *
 *******************************************************************************/

.seccion-estadisticas-header {
    background: #cf1515;
    color: #fff;
    text-align: center;
    padding: 52px 20px;
}

.seccion-estadisticas-header h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.seccion-estadisticas-header p {
    opacity: 0.9;
    font-size: 17px;
}

.contenedor-estadisticas {
    max-width: 1200px;
    margin: 22px auto 50px;
    padding: 0 20px;
}

.public-news-hero .botones-categoria {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.public-news-hero .boton-categoria {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    transition: all 0.3s ease;
}

.public-news-hero .boton-categoria.activo,
.public-news-hero .boton-categoria:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: #b91c1c !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.stats-team-filter {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
    margin-bottom: 16px;
}

.stats-team-field {
    display: grid;
    gap: 6px;
    flex: 1;
    font-weight: 700;
    color: #334155;
}

.stats-team-select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #1f2937;
    font-weight: 700;
}

.stats-team-select:hover,
.stats-team-select:focus {
    background: #eef2ff;
    border-color: #c7d2fe;
    outline: none;
}

.stats-team-btn {
    min-height: 44px;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    background: #b91c1c;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.stats-team-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(185, 28, 28, 0.28);
    filter: saturate(1.06);
}

.stats-team-panel {
    background: linear-gradient(150deg, #ffffff 0%, #f8fafc 55%, #eef2ff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.stats-team-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.stats-team-identidad {
    display: flex;
    gap: 12px;
    align-items: center;
}

.stats-team-identidad img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.stats-team-identidad h3 {
    margin: 0;
    color: #111827;
}

.stats-team-identidad p {
    margin: 4px 0 0;
    color: #64748b;
}

.stats-team-pill {
    background: #111827;
    color: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    text-align: center;
    min-width: 130px;
}

.stats-team-pill strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1;
}

.stats-team-pill span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.stats-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.stats-record-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.stats-record-card:hover {
    transform: translateY(-6px);
    border-color: #ef4444;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.stats-record-card span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
}

.stats-record-card strong {
    display: block;
    margin-top: 4px;
    color: #111827;
    font-size: 1.45rem;
}

.stats-record-card small {
    color: #b91c1c;
    font-weight: 700;
}

.stats-shooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.stats-shot-card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 12px 14px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.stats-shot-card:hover {
    transform: translateY(-6px);
    border-color: #ef4444;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.stats-shot-card h4 {
    margin: 0 0 8px;
    color: #0f172a;
}

.stats-shot-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.stats-shot-card strong {
    margin-top: 8px;
    display: block;
    font-size: 1.2rem;
    color: #b91c1c;
}

.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.stats-kpi {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.stats-kpi:hover {
    transform: translateY(-6px);
    border-color: #ef4444;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.stats-kpi span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
}

.stats-kpi strong {
    display: block;
    margin-top: 4px;
    color: #111827;
    font-size: 1.25rem;
}

.stats-kpi small {
    color: #b91c1c;
    font-weight: 700;
}

.stats-quarters {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.stats-quarters:hover {
    transform: translateY(-6px);
    border-color: #ef4444;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.stats-quarters h4 {
    margin: 0 0 10px;
    color: #0f172a;
}

.stats-quarters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.stats-quarter-item {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 10px;
    text-align: center;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.stats-quarter-item:hover {
    transform: translateY(-5px);
    border-color: #ef4444;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.stats-quarter-item span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
}

.stats-quarter-item strong {
    display: block;
    margin-top: 2px;
    color: #0f172a;
    font-size: 1.2rem;
}

.stats-quarter-item small {
    color: #b91c1c;
    font-weight: 700;
}

.stats-season-filter {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 14px;
}

.stats-season-field {
    display: grid;
    gap: 6px;
    flex: 1;
    font-weight: 700;
    color: #334155;
}

.stats-season-select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
}

.stats-season-btn {
    min-height: 42px;
    border: none;
    border-radius: 10px;
    padding: 0 14px;
    background: #b91c1c;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.stats-season-head {
    margin-bottom: 12px;
}

.stats-season-head h3 {
    margin: 0;
    color: #111827;
}

.stats-season-head p {
    margin: 6px 0 0;
    color: #64748b;
}

.stats-season-table-wrap {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
}

.stats-season-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
}

.stats-season-table th,
.stats-season-table td {
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: center;
}

.stats-season-table th {
    background: #111827;
    color: #fff;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stats-season-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.stats-season-team {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left !important;
    font-weight: 700;
}

.stats-season-team img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.estadisticas-partido-head {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.estadisticas-partido-head:hover {
    transform: translateY(-8px);
    border-color: rgba(239, 68, 68, 0.18);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
}

.equipo-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    transition: transform 0.24s ease;
}

.equipo-head:first-child {
    justify-content: flex-start;
}

.equipo-head:last-child {
    justify-content: flex-end;
}

.equipo-head img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.28s ease;
}

.marcador-head {
    text-align: center;
    transition: transform 0.24s ease;
}

.marcador-head strong {
    font-size: 30px;
    color: #111;
}

.marcador-head small {
    display: block;
    color: #6b7280;
    margin-top: 4px;
}

.estadisticas-partido-head:hover .equipo-head:first-child {
    transform: translateX(4px);
}

.estadisticas-partido-head:hover .equipo-head:last-child {
    transform: translateX(-4px);
}

.estadisticas-partido-head:hover .equipo-head img {
    transform: scale(1.06);
}

.estadisticas-partido-head:hover .marcador-head {
    transform: translateY(-2px) scale(1.02);
}

.tabla-estadisticas-wrap,
.tabla-cuartos-wrap {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.tabla-estadisticas-wrap:hover,
.tabla-cuartos-wrap:hover {
    transform: translateY(-8px);
    border-color: rgba(239, 68, 68, 0.18);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
}



.tabla-estadisticas-comparada,
.tabla-cuartos {
    width: 100%;
    border-collapse: collapse;
}

.tabla-estadisticas-comparada {
    table-layout: fixed;
}

.tabla-estadisticas-comparada th,
.tabla-cuartos th {
    background: #111827;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tabla-estadisticas-comparada th,
.tabla-estadisticas-comparada td,
.tabla-cuartos th,
.tabla-cuartos td {
    border: 1px solid #e5e7eb;
    padding: 11px 12px;
    text-align: center;
}

.tabla-estadisticas-comparada .col-metrica {
    text-align: center;
    min-width: 230px;
    font-weight: 700;
    width: 30%;
}

.tabla-estadisticas-comparada .col-local,
.tabla-estadisticas-comparada .col-visitante {
    width: 35%;
}

.tabla-estadisticas-comparada tbody td:nth-child(2) {
    text-align: center;
    font-weight: 600;
    color: #475569;
}

.tabla-estadisticas-comparada tbody tr:nth-child(even) {
    background: #f8fafc;
}

.tabla-estadisticas-comparada tbody td:first-child,
.tabla-estadisticas-comparada tbody td:last-child {
    font-weight: 700;
}

.tabla-estadisticas-comparada .separador-row td {
    background: #111827;
    color: #fff;
    font-weight: 700;
    text-align: center !important;
}


.tabla-cuartos-wrap h2 {
    margin-bottom: 12px;
    color: #111827;
}

.tabla-cuartos tbody tr:last-child {
    font-weight: 700;
}

@media (max-width: 992px) {
    .estadisticas-partido-head {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .equipo-head,
    .equipo-head:first-child,
    .equipo-head:last-child {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .seccion-estadisticas-header {
        padding: 34px 18px;
    }

    .seccion-estadisticas-header h1 {
        font-size: 28px;
    }

    .contenedor-estadisticas {
        padding: 0 14px;
    }

    .stats-team-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-team-btn {
        width: 100%;
    }

    .stats-season-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-season-btn {
        width: 100%;
    }

    .tabla-estadisticas-wrap,
    .tabla-cuartos-wrap {
        padding: 12px;
        overflow-x: auto;
    }

    .tabla-estadisticas-comparada,
    .tabla-cuartos {
        min-width: 680px;
    }
}

/*******************************************************************************
 *                                                                              *
 * 8. GRÁFICO DE ESTADÍSTICAS (ESTILO FLASHSCORE)                               *
 *                                                                              *
 *******************************************************************************/

.grafico-estadisticas-wrap {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.grafico-estadisticas-wrap:hover {
    transform: translateY(-8px);
    border-color: rgba(239, 68, 68, 0.18);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
}

.grafico-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #111827;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
    padding: 8px 14px;
    border-radius: 8px;
}

.grafico-titulo-equipo {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.75;
    max-width: 35%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Cada fila de estadística */
.grafico-fila {
    display: grid;
    grid-template-columns: 44px 1fr 160px 1fr 44px;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.24s ease;
}

.grafico-fila:last-child {
    border-bottom: none;
}

.grafico-fila:hover {
    background: #f8fafc;
}

/* Separador de sección dentro del gráfico */
.grafico-separador {
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 5px 10px;
    border-radius: 4px;
    margin: 10px 0 4px;
}


/* Valores numéricos */
.grafico-valor {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.grafico-valor-local {
    text-align: left;
}

.grafico-valor-visitante {
    text-align: right;
}

.grafico-ganador {
    color: #cf1515;
}

/* Etiqueta central */
.grafico-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

/* Contenedores de barras */
.grafico-barra-container-local {
    display: flex;
    justify-content: flex-end;
    /* la barra crece desde el centro hacia la izquierda */
    height: 10px;
    background: #f3f4f6;
    border-radius: 5px 0 0 5px;
    overflow: hidden;
}

.grafico-barra-container-visitante {
    display: flex;
    justify-content: flex-start;
    /* la barra crece desde el centro hacia la derecha */
    height: 10px;
    background: #f3f4f6;
    border-radius: 0 5px 5px 0;
    overflow: hidden;
}

/* Las barras en sí */
.grafico-barra {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s ease;
}

.grafico-barra-local {
    background: #cf1515;
    border-radius: 5px 0 0 5px;
}

.grafico-barra-visitante {
    background: #1f2937;
    border-radius: 0 5px 5px 0;
}

.pie-pagina {
    margin-top: 0;
}

/* =========================
   Modo oscuro SOLO Estadisticas
   ========================= */
html[data-theme="dark"] .public-news-hero {
    background: radial-gradient(circle at 22% 12%, #7f1d1d 0%, #1f2937 45%, #020617 100%);
}

html[data-theme="dark"] .public-news-hero-badge {
    background: #111827;
    border: 1px solid #374151;
    color: #fecaca;
}

html[data-theme="dark"] .public-news-hero h1 {
    color: #f8fafc;
}

html[data-theme="dark"] .public-news-hero p {
    color: #e2e8f0;
}

html[data-theme="dark"] .public-news-hero-divider {
    background: #f87171;
}

html[data-theme="dark"] .contenedor-estadisticas {
    background: #0b1120;
    border-radius: 14px;
}

html[data-theme="dark"] .stats-team-filter {
    background: #0f172a;
    border: 1px solid #1f2937;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.55);
}

html[data-theme="dark"] .stats-team-field {
    color: #cbd5e1;
}

html[data-theme="dark"] .stats-team-select {
    background: #111827;
    border-color: #334155;
    color: #f8fafc;
}

html[data-theme="dark"] .stats-team-btn {
    background: #dc2626;
    color: #fff;
}

html[data-theme="dark"] .stats-team-btn:hover {
    background: #ef4444;
}

html[data-theme="dark"] .stats-team-panel {
    background: linear-gradient(150deg, #1e293b 0%, #111827 55%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.45);
}

html[data-theme="dark"] .stats-team-identidad h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .stats-team-identidad p {
    color: #cbd5e1;
}

html[data-theme="dark"] .stats-team-identidad img {
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .stats-record-card,
html[data-theme="dark"] .stats-shot-card,
html[data-theme="dark"] .stats-kpi,
html[data-theme="dark"] .stats-quarters {
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .stats-record-card strong,
html[data-theme="dark"] .stats-shot-card h4,
html[data-theme="dark"] .stats-kpi strong,
html[data-theme="dark"] .stats-quarters h4,
html[data-theme="dark"] .stats-quarter-item strong {
    color: #f8fafc;
}

html[data-theme="dark"] .stats-record-card span,
html[data-theme="dark"] .stats-shot-card p,
html[data-theme="dark"] .stats-kpi span,
html[data-theme="dark"] .stats-quarter-item span {
    color: #cbd5e1;
}

html[data-theme="dark"] .stats-record-card small {
    color: #fca5a5;
}

html[data-theme="dark"] .stats-quarter-item {
    background: #111827;
    border-color: #334155;
}

html[data-theme="dark"] .contenedor-estadisticas .estado-vacio {
    background: linear-gradient(180deg, #1e293b 0%, #111827 100%);
    border-color: #334155;
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.5);
}

html[data-theme="dark"] .contenedor-estadisticas .estado-vacio-icono {
    background: #3f1418;
    color: #fca5a5;
}

html[data-theme="dark"] .contenedor-estadisticas .estado-vacio h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .contenedor-estadisticas .estado-vacio p {
    color: #cbd5e1;
}

html[data-theme="dark"] .contenedor-estadisticas .estado-vacio-accion {
    background: #dc2626;
    border-color: #ef4444;
}

html[data-theme="dark"] .contenedor-estadisticas .estado-vacio-accion:hover {
    background: #ef4444;
}

html[data-theme="dark"] .estadisticas-partido-head,
html[data-theme="dark"] .tabla-estadisticas-wrap,
html[data-theme="dark"] .tabla-cuartos-wrap,
html[data-theme="dark"] .grafico-estadisticas-wrap {
    background: #0f172a;
    border: 1px solid #1f2937;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.55);
}


html[data-theme="dark"] .estadisticas-partido-head:hover,
html[data-theme="dark"] .tabla-estadisticas-wrap:hover,
html[data-theme="dark"] .tabla-cuartos-wrap:hover,
html[data-theme="dark"] .grafico-estadisticas-wrap:hover {
    background: #0f172a;
    border-color: #334155;
    box-shadow: 0 20px 38px rgba(2, 6, 23, 0.62);
}

html[data-theme="dark"] .equipo-head {
    color: #f8fafc;
}

html[data-theme="dark"] .marcador-head strong {
    color: #f8fafc;
}

html[data-theme="dark"] .marcador-head small {
    color: #cbd5e1;
}

html[data-theme="dark"] .grafico-titulo,
html[data-theme="dark"] .grafico-separador {
    background: #111827;
    color: #f8fafc;
}

html[data-theme="dark"] .grafico-fila {
    border-bottom-color: #1f2937;
}


html[data-theme="dark"] .grafico-fila:hover {
    background: #111827;
}

html[data-theme="dark"] .grafico-label {
    color: #cbd5e1;
}

html[data-theme="dark"] .grafico-valor {
    color: #e2e8f0;
}

html[data-theme="dark"] .grafico-ganador {
    color: #f87171;
}

html[data-theme="dark"] .grafico-barra-container-local,
html[data-theme="dark"] .grafico-barra-container-visitante {
    background: #1f2937;
}

html[data-theme="dark"] .grafico-barra-local {
    background: #ef4444;
}

html[data-theme="dark"] .grafico-barra-visitante {
    background: #334155;
}

html[data-theme="dark"] .tabla-estadisticas-comparada th,
html[data-theme="dark"] .tabla-cuartos th {
    background: #111827;
    color: #f8fafc;
}

html[data-theme="dark"] .tabla-estadisticas-comparada th,
html[data-theme="dark"] .tabla-estadisticas-comparada td,
html[data-theme="dark"] .tabla-cuartos th,
html[data-theme="dark"] .tabla-cuartos td {
    border-color: #334155;
    color: #e5e7eb;
}

html[data-theme="dark"] .tabla-estadisticas-comparada tbody tr:nth-child(even) {
    background: #111827;
}

html[data-theme="dark"] .tabla-estadisticas-comparada .separador-row td {
    background: #1f2937;
    color: #f8fafc;
}

html[data-theme="dark"] .tabla-cuartos-wrap h2 {
    color: #f8fafc;
}

/* Responsive */
@media (max-width: 640px) {
    .grafico-fila {
        grid-template-columns: 38px 1fr 110px 1fr 38px;
    }

    .grafico-cabecera {
        grid-template-columns: 1fr 110px 1fr;
    }

    .grafico-label {
        font-size: 10px;
    }

    .grafico-valor {
        font-size: 12px;
    }
}
