/* ============================================
   RESET Y BASE
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    padding: 20px;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contenedor-principal {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   HEADER HOME
   ============================================ */
.header-home {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 10px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.icono-home {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: opacity 0.2s;
}

.icono-home:hover {
    opacity: 0.8;
}

@media (max-width: 600px) {
    .header-home {
        padding: 0 10px;
    }

    .icono-home {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   BANNERS
   ============================================ */
.banner-principal,
.banner-intermedio {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.banner-principal {
    margin-bottom: 10px;
}

.banner-intermedio {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.banner-intermedio:hover {
    opacity: 0.9;
}

/* ============================================
   BARRA DE FECHAS
   ============================================ */
.seccion-barra {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.titulo-barra {
    font-weight: 800;
    font-size: 14px;
    min-width: 90px;
    color: #333;
}

.scroll-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.botones-num {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
}

.botones-num::-webkit-scrollbar {
    display: none;
}

.btn-fecha {
    min-width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #7A1E1E;
    color: white;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-fecha.clausura {
    background: #2e7d32;
}

.btn-fecha.jugada {
    background: #9e9e9e;
}

.btn-fecha.active {
    outline: 3px solid #ffa000;
    transform: scale(1.1);
    z-index: 5;
}

/* ============================================
   PANEL DE PARTIDOS
   ============================================ */
.resultados-master {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.selector-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.fecha-label {
    font-size: 24px;
    font-weight: 800;
    min-width: 320px;
    text-align: center;
    color: #333;
}

.btn-grande {
    width: 45px;
    height: 45px;
    background: #333;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-partidos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.tarjeta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    gap: 10px;
    width: 100%;
}

.partido-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.eq-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 160px;
}

.eq-container.local {
    justify-content: flex-end;
}

.eq-container.visita {
    justify-content: flex-start;
}

.eq {
    font-size: 14px;
    font-weight: 700;
    color: #444;
    white-space: nowrap;
}

.escudo-fixture {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.gol {
    width: 45px;
    height: 40px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin: 0 5px;
    font-size: 18px;
}

.vs {
    font-weight: 800;
    color: #7A1E1E;
    min-width: 30px;
    text-align: center;
    font-size: 16px;
}

.vs-link {
    cursor: pointer;
    color: #7A1E1E;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: all 0.2s;
}

.vs-link:hover {
    color: #5C1616;
    transform: scale(1.1);
    display: inline-block;
}

.fecha-hora-partido {
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.acciones-fixture {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* ============================================
   BOTONES GENERALES
   ============================================ */
.btn-accion,
.btn-especial,
.btn-est,
.btn-cerrar,
.btn-donar {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    color: #4A4A4A;
    background: #F5E1B8;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-accion:hover,
.btn-especial:hover,
.btn-est:hover,
.btn-cerrar:hover,
.btn-donar:hover {
    background: #F2C14E;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(226, 168, 61, 0.35);
}

.btn-especial:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.4);
    background: #e0e0e0;
    color: #888;
}

.btn-cerrar {
    background: #808080;
    color: white;
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 10px 20px;
}

.btn-cerrar:hover {
    background: #D32F2F;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-donar {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #e0e0e0;
}

.btn-donar img {
    width: 20px;
    height: 20px;
}

/* ============================================
   TABLAS
   ============================================ */
.tabla-seccion {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tabla-contenedor {
    overflow-x: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

.tabla-contenedor table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
}

.tabla-contenedor table th:first-child,
.tabla-contenedor table td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #f4f4f4;
    text-align: center;
    min-width: 40px;
}

.tabla-contenedor table th:nth-child(2),
.tabla-contenedor table td:nth-child(2) {
    position: sticky;
    left: 40px;
    z-index: 10;
    background: #f4f4f4;
    text-align: left;
    min-width: 150px;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    white-space: nowrap;
    background: white;
}

th {
    background: #f4f4f4;
    font-size: 11px;
    color: #666;
    font-weight: bold;
}

.tabla-contenedor table thead th {
    z-index: 20;
    position: sticky;
    top: 0;
}

.tabla-contenedor table thead th:first-child,
.tabla-contenedor table thead th:nth-child(2) {
    z-index: 30;
}

.txt-left {
    text-align: left !important;
}

.escudo-tabla {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

.titulo-tabla {
    font-size: 18px;
    font-weight: 800;
    color: #7A1E1E;
    margin-bottom: 15px;
    text-align: center;
}

.bloque-final-tablas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.leyenda-tabla {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 13px;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
}

.punto-libertadores,
.punto-lider-torneo {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff9c4;
    border: 2px solid #fbc02d;
}

.punto-sudamericana {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #b3e5fc;
    border: 2px solid #039be5;
}

.punto-descenso {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffcdd2;
    border: 2px solid #e57373;
}

.punto-posibilidades-torneo {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fffde7;
    border: 2px solid #fff59d;
}

.fila-libertadores,
.fila-libertadores td,
.fila-lider-torneo,
.fila-lider-torneo td {
    background: #fff9c4 !important;
}

.fila-sudamericana,
.fila-sudamericana td {
    background: #b3e5fc !important;
}

.fila-descenso,
.fila-descenso td {
    background: #ffcdd2 !important;
}

.fila-posibilidades-torneo,
.fila-posibilidades-torneo td {
    background: #fffde7 !important;
}

.botones-extra-tabla {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* ============================================
   SELECTOR DE TABLAS APERTURA / CLAUSURA / ACUMULADA
   ============================================ */
.tablas-tabs-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.tab-tabla {
    flex: 1;
    padding: 12px 6px;
    border: none;
    border-radius: 10px 10px 0 0;
    background: #dfe4ea;
    color: #444;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.tab-tabla:hover {
    background: #c7cdd6;
}

.tab-tabla.activa {
    background: #7A1E1E;
    color: white;
}

.tablas-slider-viewport {
    overflow: hidden;
    border-radius: 15px;
    transition: height 0.35s ease;
}

.tablas-slider-track {
    display: flex;
    align-items: flex-start;
    width: 300%;
    transition: transform 0.35s ease;
}

.tabla-slide {
    width: 33.3333%;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* ============================================
   ESTADÍSTICAS POR EQUIPO
   ============================================ */
.seccion-estadisticas-equipo {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 0;
}

.titulo-est {
    font-weight: 800;
    color: #7A1E1E;
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
}

.listbox-equipos {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #7A1E1E;
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

.grupo-botones-est {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-est {
    min-width: 180px;
    padding: 14px 24px;
}

/* ============================================
   MODALES GENERALES
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background: white;
    width: 95%;
    max-width: 1200px;
    max-height: 85vh;
    border-radius: 15px;
    padding: 25px;
    overflow-y: auto;
    position: relative;
}

#modalComparativaVS .modal-contenido,
#modalComparativaPartido .modal-contenido {
    max-width: 750px;
}

.opciones-plaza,
.opciones-prota,
.opciones-clima {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.opciones-clima,
.opciones-prota {
    flex-wrap: wrap;
}

.check-prota,
.check-clima {
    display: flex;
    align-items: center;
    gap: 5px;
}

.check-prota label,
.check-clima label {
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.check-prota input:disabled {
    cursor: not-allowed;
}

.check-prota input:disabled + label {
    color: #ff9800;
    font-weight: 800;
}

/* ============================================
   RESULTADOS EN MODALES
   ============================================ */
.resultados-partidos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.partido-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    width: 100%;
}

.partido-content-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.partido-eq {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.partido-goles {
    font-weight: 800;
    color: #ff9800;
    min-width: 60px;
    text-align: center;
    font-size: 18px;
}

.escudo-prota {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.partido-info {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.partido-local {
    background: #e8f5e9 !important;
}

.partido-visita {
    background: #fff3e0 !important;
}

/* ============================================
   TABLAS UNIFICADAS EN MODALES
   ============================================ */
.tabla-stats-unificada {
    margin-top: 25px;
    border: 2px solid #7A1E1E;
    border-radius: 10px;
    overflow: hidden;
}

.tabla-stats-unificada .tabla-contenedor-modal {
    overflow-x: auto;
}

.tabla-stats-unificada table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tabla-stats-unificada th {
    background: #f4f4f4;
    color: #666;
    font-size: 11px;
    padding: 10px 8px;
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
}

.tabla-stats-unificada td {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    background: white;
}

.tabla-stats-unificada th:first-child,
.tabla-stats-unificada td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #f4f4f4;
    text-align: left;
    min-width: 150px;
}

.tabla-stats-unificada thead th {
    z-index: 20;
    position: sticky;
    top: 0;
}

.tabla-stats-unificada thead th:first-child {
    z-index: 30;
}

/* ============================================
   QR / DONACIONES / FOOTER
   ============================================ */
.qr-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

.qr-container h2 {
    font-size: 20px;
    font-weight: 800;
    color: #7A1E1E;
    margin-bottom: 20px;
}

.qr-img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    border: 4px solid #e0e0e0;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: #6B6B6B;
    font-size: 13px;
    opacity: 0.8;
}

/* ============================================
   CONTENIDO SEO
   ============================================ */
.contenido-seo-estatico {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
    text-align: left;
    color: #444;
}

.contenido-seo-estatico h1 {
    font-size: 22px;
    font-weight: 800;
    color: #7A1E1E;
    margin: 15px 0 10px 0;
    line-height: 1.3;
}

.contenido-seo-estatico p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #555;
}

.contenido-seo-estatico strong {
    color: #333;
}

.contenido-seo-estatico ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.contenido-seo-estatico li {
    font-size: 14px;
    margin: 5px 0;
    color: #555;
}

/* ============================================
   FIXTURE POR EQUIPO
   ============================================ */
.fixture-equipo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    width: 100%;
    border: 1px solid #e0e0e0;
}

.fixture-linea-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-weight: 700;
    font-size: 14px;
}

.fixture-eq-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fixture-escudo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.fixture-marcador {
    font-weight: 800;
    color: #ff9800;
    min-width: 50px;
    text-align: center;
    font-size: 16px;
}

.fixture-vs {
    font-weight: 800;
    color: #7A1E1E;
    min-width: 30px;
    text-align: center;
}

.fixture-linea-2 {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid #e8e8e8;
    width: 100%;
}

/* ============================================
   GRÁFICA DE EVOLUCIÓN
   ============================================ */
.evol-leyenda-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.evol-leyenda-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.2s;
}

.evol-leyenda-item:hover {
    background: #f0f0f0;
}

.evol-leyenda-item.dimmed {
    opacity: 0.4;
}

.evol-leyenda-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.evol-leyenda-text {
    font-weight: 600;
    font-size: 13px;
}

.ultimos5-reciente {
    display: inline-block;
    border: 2px solid #FFD700;
    border-radius: 50%;
    padding: 1px 3px;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

/* ============================================
   RESTO POR JUGAR
   ============================================ */
.resto-grid-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    align-items: flex-start;
    justify-content: center;
}

.resto-col {
    min-width: 160px;
    max-width: 180px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.resto-col-header {
    background: white;
    padding: 15px 10px;
    border-bottom: 2px solid #7A1E1E;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.resto-col-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.resto-col-escudo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.resto-col-nombre {
    font-weight: 800;
    font-size: 15px;
    color: #333;
}

.resto-col-puntos {
    font-size: 12px;
    color: #ff9800;
    font-weight: 600;
}

.resto-col-body {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 400px;
}

.resto-col-footer {
    padding: 12px 10px;
    background: #e3f2fd;
    border-top: 1px solid #bbdefb;
    border-radius: 0 0 12px 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.resto-proyeccion-texto {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.resto-proyeccion-valor {
    font-weight: 800;
    color: #7A1E1E;
    font-size: 18px;
    transition: color 0.3s ease;
}

.resto-matched-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #eee;
}

.resto-matched-info {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.resto-matched-select {
    width: 100%;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
}

.resto-col-footer.sin-posibilidades {
    background: #ffcdd2 !important;
    border-top-color: #ef9a9a !important;
}

.resto-col-footer.sin-posibilidades .resto-proyeccion-valor {
    color: #c62828 !important;
}

.resto-col-footer.sin-posibilidades .resto-proyeccion-texto {
    color: #c62828 !important;
}

/* ============================================
   MODAL COMPARATIVA VS
   ============================================ */
.vs-comparativa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.vs-eq-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.vs-eq-side.visitante {
    flex-direction: row-reverse;
    text-align: right;
}

.vs-eq-side.local {
    text-align: left;
}

.vs-eq-escudo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.vs-eq-nombre {
    font-weight: 800;
    font-size: 16px;
    color: #333;
}

.vs-vs-texto {
    font-weight: 900;
    color: #7A1E1E;
    font-size: 24px;
    min-width: 60px;
    text-align: center;
}

.vs-stat-row {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.vs-stat-row:last-child {
    border-bottom: none;
}

.vs-stat-left,
.vs-stat-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vs-stat-center {
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.vs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 32px;
    padding: 0 12px;
    border-radius: 16px;
    font-weight: normal;
    font-size: 14px;
    background: transparent;
    color: #000000;
}

.vs-badge.ganador {
    background: #b71c1c !important;
    color: #ffffff !important;
    font-weight: normal;
}

.vs-separador {
    margin: 15px 0;
    border: none;
    border-top: 2px dashed #e0e0e0;
}

.vs-subtitulo {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
}

/* ============================================
   FILTROS ANTIGUOS DEL MODAL VS
   Se conservan por compatibilidad.
   ============================================ */
.vs-filtros-proyectadas {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.vs-filtro-grupo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vs-filtro-grupo label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.vs-filtro-grupo select {
    padding: 6px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: white;
    cursor: pointer;
}

.vs-filtro-grupo select:focus {
    outline: none;
    border-color: #7A1E1E;
}

/* ============================================
   ✅ FILTROS INDEPENDIENTES DEL MODAL VS
   Cada columna (local y visitante) tiene sus
   propios selectores de Rol y Plaza.
   ============================================ */
.vs-filtros-independientes {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vs-filtro-columna {
    flex: 1;
    min-width: 240px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vs-filtro-titulo {
    font-size: 13px;
    font-weight: 800;
    color: #333;
    text-align: center;
}

.vs-filtro-columna .vs-filtro-grupo {
    justify-content: center;
    flex-wrap: wrap;
}

.vs-filtro-columna .vs-filtro-grupo select {
    min-width: 150px;
}

/* ============================================
   ✅ BANNER PUBLICITARIO EN MODAL VS
   ============================================ */
.vs-banner-publicidad {
    margin: 18px 0;
    width: 100%;
}

.vs-banner-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================
   NOTIFICACIONES TOAST
   ============================================ */
.toast-notificacion {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    max-width: 90%;
    width: 420px;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 600;
    color: white;
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-notificacion.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast-notificacion.toast-error {
    background: #c62828;
}

.toast-notificacion.toast-aviso {
    background: #ef6c00;
}

.toast-notificacion.toast-info {
    background: #1976d2;
}

.toast-notificacion .toast-cerrar {
    margin-left: auto;
    cursor: pointer;
    font-weight: 800;
    opacity: 0.8;
    flex-shrink: 0;
}

.toast-notificacion .toast-cerrar:hover {
    opacity: 1;
}

/* ============================================
   RESPONSIVE - ESCRITORIO
   ============================================ */
@media (min-width: 601px) {
    body > img.banner-principal,
    body > img.banner-intermedio,
    body > a > img.banner-intermedio,
    body > .seccion-barra,
    body > .resultados-master,
    body > .tablas-tabs-selector,
    body > .tablas-slider-viewport,
    body > .seccion-estadisticas-equipo,
    body > .qr-container,
    body > footer {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    body > a {
        display: block;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .grid-partidos {
        max-width: 100%;
        margin: 0;
    }

    .tabla-contenedor {
        max-width: 100%;
        margin: 0 auto;
    }

    .bloque-final-tablas {
        max-width: 800px;
        margin: 10px auto;
    }

    .seccion-estadisticas-equipo {
        max-width: 900px;
        margin: 0 auto;
    }

    .listbox-equipos {
        margin: 0 auto 20px auto;
    }

    .qr-container {
        max-width: 600px;
        margin: 0 auto 20px auto;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL
   ============================================ */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    th,
    td {
        padding: 8px 5px;
        font-size: 10px;
    }

    .tabla-seccion {
        padding: 10px;
    }

    .opciones-prota {
        gap: 10px;
    }

    .opciones-clima {
        flex-direction: column;
        gap: 10px;
    }

    .partido-item {
        flex-wrap: wrap;
    }

    .tabla-stats-unificada th,
    .tabla-stats-unificada td {
        font-size: 9px;
        padding: 10px 4px;
    }

    .escudo-tabla {
        width: 20px;
        height: 20px;
    }

    .ultimos5 {
        font-size: 11px;
    }

    .tabla-contenedor table th:nth-child(2),
    .tabla-contenedor table td:nth-child(2) {
        min-width: 100px;
        left: 35px;
    }

    .tabla-stats-unificada th:first-child,
    .tabla-stats-unificada td:first-child {
        min-width: 100px;
    }

    .leyenda-tabla {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .banner-principal,
    .banner-intermedio {
        border-radius: 10px;
    }

    .qr-img {
        width: 180px;
        height: 180px;
    }

    .grid-partidos {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .tarjeta {
        padding: 12px 10px;
        gap: 8px;
    }

    .eq-container {
        width: 110px;
    }

    .eq {
        font-size: 12px;
    }

    .escudo-fixture {
        width: 24px;
        height: 24px;
    }

    .gol {
        width: 42px;
        height: 38px;
        font-size: 18px;
        margin: 0 2px;
    }

    .vs {
        font-size: 14px;
        min-width: 35px;
    }

    .fecha-hora-partido {
        font-size: 10px;
        margin-top: 8px;
        padding-top: 8px;
    }

    .botones-extra-tabla {
        flex-direction: column;
    }

    .evol-leyenda-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .vs-comparativa-header {
        flex-direction: column;
        gap: 10px;
    }

    .vs-eq-side {
        justify-content: center;
    }

    .vs-stat-row {
        grid-template-columns: 1fr 100px 1fr;
        gap: 5px;
    }

    .vs-stat-center {
        font-size: 11px;
    }

    .vs-badge {
        min-width: 45px;
        height: 28px;
        font-size: 12px;
        padding: 0 8px;
    }

    .resto-grid-container {
        justify-content: flex-start;
    }

    .tab-tabla {
        padding: 10px 4px;
        font-size: 12px;
        border-radius: 8px 8px 0 0;
    }

    .toast-notificacion {
        width: 92%;
        font-size: 13px;
        padding: 12px 15px;
    }

    /* ✅ Filtros independientes del modal VS en móvil */
    .vs-filtros-independientes {
        flex-direction: column;
    }

    .vs-filtro-columna {
        min-width: 100%;
    }

    .vs-filtro-columna .vs-filtro-grupo {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .vs-filtro-columna .vs-filtro-grupo label {
        text-align: left;
    }

    .vs-filtro-columna .vs-filtro-grupo select {
        width: 100%;
        min-width: 0;
    }

    /* ✅ Banner del modal VS en móvil */
    .vs-banner-publicidad {
        margin: 14px 0;
    }
}