/*******************************************************************************
 * 8. CLASIFICACION
 *******************************************************************************/

.icono-trofeo {
    font-size: 50px;
    color: #f1c40f;
    margin-top: 20px;
}

.contenedor-clasificacion {
    max-width: 1100px;
    margin: 22px auto 60px auto;
    padding: 0 20px;
}

.selector-categorias {
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 26px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.selector-field {
    display: flex;
    flex-direction: column;
    min-width: 230px;
    gap: 6px;
}

.selector-field span {
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-cat {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #1f2937;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.selector-input {
    appearance: none;
}

.btn-cat.activo {
    background: #cf1515;
    color: #fff;
    border-color: #cf1515;
    min-height: 42px;
}

.btn-cat.activo:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(207, 21, 21, 0.26);
}

.btn-cat:hover:not(.activo) {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.tabla-contenedor {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.tabla-header {
    background: linear-gradient(120deg, #e62e2e, #cf1515);
    color: #fff;
    padding: 16px 22px;
    font-size: 19px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tabla-scroll {
    overflow-x: auto;
}

.tabla-clasificacion {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.tabla-clasificacion th {
    background: #f8fafc;
    padding: 14px 18px;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
}

.tabla-clasificacion td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 14px;
    transition: background-color 0.24s ease, transform 0.24s ease;
}

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

.equipo-columna img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.fila-destacada td {
    background: #fff4f4;
    color: #b91c1c;
}

.fila-destacada td strong {
    color: #b91c1c;
}

.fila-destacada td:first-child {
    border-left: 4px solid #cf1515;
}

.tabla-clasificacion tr:hover td {
    background: #f8fafc;
}

.tabla-clasificacion tbody tr:hover .equipo-columna {
    transform: translateX(6px);
}

.jornada-partidos {
    margin-top: 24px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.jornada-header {
    justify-content: space-between;
}

.jornada-pill {
    margin-left: auto;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.partidos-jornada-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
}

.jornada-bloque + .jornada-bloque {
    border-top: 0;
    box-shadow: none;
}

.jornada-partidos > .jornada-bloque:first-of-type .jornada-bloque-titulo {
    margin-top: 10px;
}

.jornada-bloque-titulo {
    padding: 12px 16px 8px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #dc2626;
    border-left: 4px solid #b91c1c;
}

.partido-jornada-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.partido-jornada-card:hover {
    transform: translateY(-8px);
    border-color: #cf1515;
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.14);
}

.partido-jornada-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.estado-partido {
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
    border-radius: 999px;
}

.estado-partido.finalizado {
    background: #fee2e2;
    color: #991b1b;
}

.estado-partido.proximo {
    background: #dcfce7;
    color: #166534;
}

.partido-fecha {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.partido-jornada-equipos {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

.club-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.club-mini img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f5f9;
    background: #fff;
}

.club-mini p {
    margin: 0;
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
}

.marcador-jornada {
    min-width: 74px;
    text-align: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-weight: 800;
}

.marcador-jornada.pendiente {
    background: #fee2e2;
    color: #b91c1c;
}

.partido-lugar {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
    text-align: center;
}

.partido-lugar i {
    color: #cf1515;
}




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

/* =========================
   Modo oscuro SOLO Clasificacion
   ========================= */
html[data-theme="dark"] .public-news-hero {
    background: radial-gradient(circle at 20% 12%, #7f1d1d 0%, #1f2937 46%, #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"] .icono-trofeo {
    color: #fde68a;
}

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

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

html[data-theme="dark"] .btn-cat {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .btn-cat:hover:not(.activo) {
    background: #273449;
    border-color: #475569;
}

html[data-theme="dark"] .btn-cat.activo {
    background: #dc2626;
    border-color: #ef4444;
    color: #fff;
}

html[data-theme="dark"] .tabla-contenedor,
html[data-theme="dark"] .jornada-partidos {
    background: #0b1120;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.55);
    border: 1px solid #1f2937;
}

html[data-theme="dark"] .tabla-header {
    background: linear-gradient(120deg, #b91c1c, #991b1b);
}

html[data-theme="dark"] .tabla-clasificacion th {
    background: #111827;
    color: #cbd5e1;
    border-bottom-color: #334155;
}

html[data-theme="dark"] .tabla-clasificacion td {
    color: #e5e7eb;
    border-bottom-color: #1f2937;
}

html[data-theme="dark"] .equipo-columna img {
    border-color: #334155;
    background: #0b1220;
}

html[data-theme="dark"] .fila-destacada td {
    background: #3a1115;
    color: #fecaca;
}

html[data-theme="dark"] .fila-destacada td strong {
    color: #fecaca;
}

html[data-theme="dark"] .fila-destacada td:first-child {
    border-left-color: #ef4444;
}

html[data-theme="dark"] .tabla-clasificacion tr:hover td {
    background: #131f32;
}

html[data-theme="dark"] .partidos-jornada-grid {
    background: #111827;
}

html[data-theme="dark"] .jornada-bloque + .jornada-bloque {
    border-top: 0;
    box-shadow: none;
}

html[data-theme="dark"] .jornada-bloque-titulo {
    background: #b91c1c;
    color: #fff;
    border-left-color: #ef4444;
}

html[data-theme="dark"] .partido-jornada-card {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .partido-jornada-card:hover {
    border-color: #ef4444;
    box-shadow: 0 20px 36px rgba(2, 6, 23, 0.62);
}


html[data-theme="dark"] .estado-partido.finalizado {
    background: #3f1418;
    color: #fecaca;
}

html[data-theme="dark"] .estado-partido.proximo {
    background: #10281d;
    color: #bbf7d0;
}

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

html[data-theme="dark"] .club-mini img {
    border-color: #334155;
    background: #0b1220;
}

html[data-theme="dark"] .club-mini p {
    color: #f8fafc;
}

html[data-theme="dark"] .marcador-jornada {
    background: #111827;
    color: #f8fafc;
}

html[data-theme="dark"] .marcador-jornada.pendiente {
    background: #3f1418;
    color: #fecaca;
}

html[data-theme="dark"] .partido-lugar {
    color: #cbd5e1;
    border-top-color: #334155;
}

html[data-theme="dark"] .partido-lugar i {
    color: #f87171;
}




@media (max-width: 768px) {
    .contenedor-clasificacion {
        margin-top: -18px;
        padding: 0 14px;
    }

    .selector-field {
        min-width: 100%;
    }

    .btn-cat.activo {
        width: 100%;
    }

    .tabla-header {
        font-size: 16px;
        padding: 14px;
    }

    .tabla-clasificacion th,
    .tabla-clasificacion td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .equipo-columna {
        min-width: 180px;
    }

    .jornada-pill {
        margin-left: 0;
    }

    .partidos-jornada-grid {
        grid-template-columns: 1fr;
    }
}

.columna-racha,
.celda-racha {
    min-width: 132px;
}

.racha-ultimos-cinco {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.racha-circulo {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.racha-win {
    background: #16a34a;
    border-color: #15803d;
}

.racha-draw {
    background: #facc15;
    border-color: #ca8a04;
}

.racha-loss {
    background: #dc2626;
    border-color: #b91c1c;
}

.racha-empty {
    background: #ffffff;
    border-color: #cbd5e1;
}
