/* styles.css - ARCHIVO PRINCIPAL */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@700;800;900&family=Playfair+Display:wght@400;500;600&display=swap');
@import 'variables.css';    /* PRIMERO - variables */
@import 'base.css';         /* SEGUNDO - estilos base */
@import 'components.css';   /* TERCERO - componentes */
@import 'sections.css';     /* CUARTO - secciones (incluye registro) */
@import 'modals.css';       /* QUINTO - modales */
@import 'responsive.css';   /* SEXTO - responsive */


/********** Template CSS **********/
:root {
    --primary: #EB1616;
    --secondary: #191C24;
    --light: #6C7293;
    --dark: #000000;
    --nfl-blue: #00338D;
    --nfl-red: #D50A0A;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Spinner Fix ***/
#spinner {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.8);
}

#spinner:not(.show) {
    opacity: 0;
    visibility: hidden;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/*** Button ***/
.btn {
    transition: .5s;
    border: none;
}

.btn-primary {
    background: var(--nfl-blue);
    border-color: var(--nfl-blue);
}

.btn-primary:hover {
    background: #002a6e;
    border-color: #002a6e;
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}

.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: #000;
}

.btn-info {
    background: var(--info);
    border-color: var(--info);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

/*** Layout ***/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background: var(--secondary);
    transition: 0.5s;
    z-index: 999;
}

.content {
    margin-left: 250px;
    min-height: 100vh;
    background: var(--dark);
    transition: 0.5s;
}

@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: calc(100% - 250px);
    }

    .content.open {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.open {
        margin-left: 0;
    }

    .content {
        width: 100%;
        margin-left: 0;
    }
}

/*** Navbar ***/
.sidebar .navbar .navbar-nav .nav-link {
    padding: 12px 20px;
    color: var(--light);
    font-weight: 500;
    border-left: 3px solid var(--secondary);
    border-radius: 0 30px 30px 0;
    outline: none;
    margin: 2px 0;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--dark);
    border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: var(--secondary);
}

.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
    padding-left: 25px;
    border-radius: 0 30px 30px 0;
    color: var(--light);
}

.sidebar .navbar .dropdown-item:hover,
.sidebar .navbar .dropdown-item.active {
    background: var(--dark);
    color: var(--primary);
}

.content .navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    color: var(--light);
    outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.content .navbar .dropdown-item {
    color: var(--light);
}

.content .navbar .dropdown-item:hover,
.content .navbar .dropdown-item.active {
    background: var(--dark);
    color: var(--primary);
}

.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

/*** Cards & Tables ***/
.bg-secondary {
    background: var(--secondary) !important;
    border: 1px solid #2a2e3e;
}

.rounded {
    border-radius: 10px !important;
}

.table {
    color: var(--light);
    margin-bottom: 0;
}

.table th {
    border-color: #2a2e3e;
    font-weight: 600;
    color: var(--light);
    background: var(--dark);
}

.table td {
    border-color: #2a2e3e;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(235, 22, 22, 0.1);
    color: var(--light);
}

/*** Badges ***/
.badge {
    font-weight: 500;
    padding: 6px 12px;
}

.badge.bg-primary {
    background: var(--nfl-blue) !important;
}

.badge.bg-success {
    background: var(--success) !important;
}

.badge.bg-warning {
    background: var(--warning) !important;
    color: #000;
}

/*** Prediction Status ***/
.prediction-local {
    background: rgba(40, 167, 69, 0.2);
    border-left: 4px solid var(--success);
}

.prediction-visita {
    background: rgba(23, 162, 184, 0.2);
    border-left: 4px solid var(--info);
}

.prediction-diferencia {
    background: rgba(255, 193, 7, 0.2);
    border-left: 4px solid var(--warning);
}

.confidence-high {
    color: var(--success);
    font-weight: 600;
}

.confidence-medium {
    color: var(--warning);
    font-weight: 600;
}

.confidence-low {
    color: var(--light);
    font-weight: 600;
}

/*** Quick Action Buttons ***/
.quick-action-btn {
    transition: all 0.3s ease;
    border: none;
    padding: 20px;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.quick-action-btn i {
    transition: transform 0.3s ease;
}

.quick-action-btn:hover i {
    transform: scale(1.1);
}

/*** Responsive ***/
@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .content {
        margin-left: 0;
    }
}

/*** Custom Scrollbar ***/
.sidebar::-webkit-scrollbar {
    width: 5px;
}

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

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

/*** Loading Animation ***/
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/*** NFL Theme Enhancements ***/
.nfl-gradient {
    background: linear-gradient(135deg, var(--nfl-blue) 0%, var(--nfl-red) 100%);
}

.text-nfl-blue {
    color: var(--nfl-blue) !important;
}

.text-nfl-red {
    color: var(--nfl-red) !important;
}

.bg-nfl-blue {
    background: var(--nfl-blue) !important;
}

.bg-nfl-red {
    background: var(--nfl-red) !important;
}

.prediction-table-container {
    background: var(--secondary);
    border-radius: 10px;
    border: 1px solid #2a2e3e;
    overflow: hidden;
    margin: 0 auto; /* Centrar el contenedor */
}

/* Para desktop: 50% del ancho */
@media (min-width: 992px) {
    .prediction-table-container {
        width: 50%;
        min-width: 800px; /* Ancho mínimo para buena legibilidad */
    }
}

/* Para tablets: 75% del ancho */
@media (min-width: 768px) and (max-width: 991px) {
    .prediction-table-container {
        width: 75%;
    }
}

/* Para mobile: 100% del ancho */
@media (max-width: 767px) {
    .prediction-table-container {
        width: 100%;
    }
}

.quiniela-row {
    display: grid;
    grid-template-columns: 50px 1fr 50px 1fr 50px 200px;
    gap: 1px;
    background: #2a2e3e;
    width: 100%; /* Asegurar ancho completo */
}

.table-cell {
    padding: 1rem;
    background: var(--secondary) !important; /* Forzar el color de fondo */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    border: none !important; /* Remover bordes conflictivos */
}

/* Específicamente para las celdas de selección */
.seleccion-col {
    background: var(--dark) !important;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Para las celdas de equipo */
.equipo-col {
    justify-content: flex-start;
    font-weight: 600;
    color: white;
    background: var(--secondary) !important;
}

/* Para probabilidades */
.probabilidad-col {
    padding: 0.5rem;
    background: var(--secondary) !important;
}

/* Asegurar que las filas tengan consistencia */
.table-row.quiniela-row .table-cell {
    background: var(--secondary) !important;
}

/* Clase específica para predicción ganadora */
/* Predicción ganadora - Verde oscuro elegante */
.prediccion-ganadora {
    background: rgba(76, 175, 80, 0.15) !important;
    border-left: 4px solid #2E7D32 !important;
    color: #E8F5E9 !important;
    font-weight: 700;
}
/* Efecto hover para predicciones ganadoras */
.prediccion-ganadora:hover {
    background: rgba(76, 175, 80, 0.25) !important;
    transition: background 0.3s ease;
}
/* Barra de probabilidades */
.prob-bar {
    display: flex;
    height: 25px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--dark);
    width: 100%;
}

/* Barra de probabilidades - Verde más oscuro para local */
.prob-local {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: width 0.3s ease;
}

/* Barra de probabilidades - Azul para visitante */
.prob-visita {
    background: linear-gradient(135deg, #1565C0 0%, #42A5F5 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: width 0.3s ease;
}

/* Contenedor principal centrado */
.centered-table-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

/* Para desktop: 80% del ancho (más espacio para contenido) */
@media (min-width: 992px) {
    .centered-table-container {
        width: 80%;
        max-width: 1200px;
    }
}

/* Para tablets: 90% del ancho */
@media (min-width: 768px) and (max-width: 991px) {
    .centered-table-container {
        width: 90%;
    }
}

/* Para mobile: 100% del ancho */
@media (max-width: 767px) {
    .centered-table-container {
        width: 100%;
    }
}

/* Estilos unificados para ambas tablas */
.prediction-table-container,
.protouch-inicial-container {
    background: var(--secondary);
    border-radius: 10px;
    border: 1px solid #2a2e3e;
    overflow: hidden;
    margin-bottom: 2rem;
    width: 100%; /* Ambas tablas mismo ancho */
}

/* Header de tablas */
.table-header,
.protouch-header {
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    border-bottom: 1px solid #2a2e3e;
}

/* Grid para quiniela - ADAPTATIVO */
.quiniela-grid {
    display: grid;
    grid-template-columns: 60px minmax(150px, 1fr) 60px minmax(150px, 1fr) 60px minmax(180px, 1fr);
    gap: 1px;
    background: #2a2e3e;
    width: 100%;
}

/* Celdas base */
.grid-cell {
    padding: 1rem;
    background: var(--secondary);
    display: flex;
    align-items: center;
    min-height: 70px;
    border: none;
}

/* Columnas específicas */
.seleccion-col {
    justify-content: center;
    background: var(--dark);
    font-weight: bold;
    font-size: 1.1rem;
}

.equipo-col {
    justify-content: flex-start;
    font-weight: 600;
    color: white;
    padding-left: 1.5rem;
}

.probabilidad-col {
    padding: 0.75rem;
    justify-content: center;
}

/* Barra de probabilidades */
.prob-bar {
    display: flex;
    height: 28px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--dark);
    width: 100%;
    min-width: 160px;
}

.prob-local {
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: width 0.3s ease;
}

.prob-visita {
    background: var(--info);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: width 0.3s ease;
}

/* Predicción ganadora */
.prediccion-ganadora {
    background: rgba(235, 22, 22, 0.15) !important;
    border-left: 4px solid var(--primary) !important;
}

/* Tabla Protouch */
.protouch-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) repeat(5, minmax(80px, 1fr));
    gap: 1px;
    background: #2a2e3e;
    width: 100%;
}

.protouch-cell {
    padding: 1rem;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    border: none;
    color: var(--light);
    text-align: center;
}

.protouch-header-cell {
    background: var(--dark);
    color: white;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .quiniela-grid {
        grid-template-columns: 50px 1fr 50px 1fr 50px 120px;
        font-size: 0.9rem;
    }
    
    .protouch-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-cell {
        padding: 0.75rem 0.5rem;
        min-height: 60px;
    }
    
    .prob-bar {
        height: 24px;
        min-width: 120px;
    }
}
/* Contenedor Protouch - formato texto plano */
.protouch-content-container {
    padding: 1.5rem;
}

.protouch-text-content {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #2a2e3e;
}

.protouch-team-block {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 4px solid var(--primary);
}

.protouch-team-name {
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.protouch-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    color: var(--light);
}

.protouch-stat {
    text-align: center;
    padding: 0.5rem;
    background: var(--dark);
    border-radius: 4px;
    font-size: 0.9rem;
}

.protouch-stat strong {
    color: var(--primary);
    font-size: 1rem;
}

.protouch-no-td {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 6px;
    border-left: 4px solid var(--warning);
    color: var(--light);
    text-align: center;
}

.protouch-no-td strong {
    color: var(--warning);
}

/* Alternativa: Si quieres mantener la tabla pero parsear el contenido */
.protouch-parsed-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) repeat(5, minmax(80px, 1fr));
    gap: 1px;
    background: #2a2e3e;
    width: 100%;
}

.protouch-parsed-cell {
    padding: 1rem;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    border: none;
    color: var(--light);
    text-align: center;
}

.protouch-parsed-header {
    background: var(--dark);
    color: white;
    font-weight: 600;
}
/* Versión simple - máximo contraste */
.protouch-cell {
    padding: 1rem;
    background: #2A2E3E; /* Fondo más oscuro para contraste */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    border: 1px solid #3A3F51; /* Bordes visibles */
    color: #F0F0F0; /* Texto muy claro */
    text-align: center;
    font-weight: 500;
}

.protouch-header-cell {
    background: #1A1E2E; /* Header más oscuro */
    color: #FFFFFF;
    font-weight: 600;
    border: 1px solid #3A3F51;
}

.protouch-cell strong {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Fondo alternado para filas */
.protouch-grid > .protouch-cell:nth-child(12n+1),
.protouch-grid > .protouch-cell:nth-child(12n+2),
.protouch-grid > .protouch-cell:nth-child(12n+3),
.protouch-grid > .protouch-cell:nth-child(12n+4),
.protouch-grid > .protouch-cell:nth-child(12n+5),
.protouch-grid > .protouch-cell:nth-child(12n+6) {
    background: #2A2E3E;
}

.protouch-grid > .protouch-cell:nth-child(12n+7),
.protouch-grid > .protouch-cell:nth-child(12n+8), 
.protouch-grid > .protouch-cell:nth-child(12n+9),
.protouch-grid > .protouch-cell:nth-child(12n+10),
.protouch-grid > .protouch-cell:nth-child(12n+11),
.protouch-grid > .protouch-cell:nth-child(12n+12) {
    background: #252937;
}
/* Quiniela Principal - Mejor contraste */
.quiniela-grid {
    display: grid;
    grid-template-columns: 60px minmax(150px, 1fr) 60px minmax(150px, 1fr) 60px minmax(180px, 1fr);
    gap: 1px;
    background: #3A3F51;
    width: 100%;
    border: 1px solid #3A3F51;
}

.grid-cell {
    padding: 1rem;
    background: #2A2E3E;
    display: flex;
    align-items: center;
    min-height: 70px;
    border: 1px solid #3A3F51;
    color: #F0F0F0;
    font-weight: 500;
}

/* Columnas específicas */
.seleccion-col {
    justify-content: center;
    background: #1A1E2E;
    font-weight: bold;
    font-size: 1.1rem;
    color: #FFFFFF;
}

.equipo-col {
    justify-content: flex-start;
    font-weight: 600;
    color: #FFFFFF;
    padding-left: 1.5rem;
}

.probabilidad-col {
    padding: 0.75rem;
    justify-content: center;
}

/* Predicción ganadora */
.prediccion-ganadora {
    background: rgba(235, 22, 22, 0.15) !important;
    border-left: 4px solid var(--primary) !important;
    color: #FFFFFF !important;
}

/* Barra de probabilidades */
.prob-bar {
    display: flex;
    height: 28px;
    border-radius: 14px;
    overflow: hidden;
    background: #1A1E2E;
    width: 100%;
    min-width: 160px;
    border: 1px solid #3A3F51;
}

.prob-local {
    background: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: width 0.3s ease;
}

.prob-visita {
    background: #2196F3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transition: width 0.3s ease;
}

/* Fondo alternado para mejor legibilidad */
.quiniela-grid:nth-child(odd) .grid-cell {
    background: #2A2E3E;
}

.quiniela-grid:nth-child(even) .grid-cell {
    background: #252937;
}

/* Header de la tabla */
.table-header {
    background: linear-gradient(135deg, var(--nfl-blue) 0%, var(--nfl-red) 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: 1px solid #3A3F51;
}

/* Contenedor principal */
.prediction-table-container {
    background: #2A2E3E;
    border-radius: 10px;
    border: 2px solid #3A3F51;
    overflow: hidden;
    margin-bottom: 2rem;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
/* ===== ESTILOS PARA TABLA DE COMPARACIÓN DE MODELOS ===== */

.model-comparison-divs {
    display: table;
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    /* ✅ AGREGAR: Fuerza que el ancho de la columna se base en el encabezado */
    table-layout: fixed; 
}

.table-row {
    display: table-row;
    transition: background-color 0.2s;
}

.table-row:hover:not(.header-row) {
    background-color: #f8f9fa;
}

.table-cell {
    display: table-cell;
    padding: 14px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
}

/* Header row */
.header-row {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-row .table-cell {
    border-bottom: 2px solid #1a252f;
    padding: 16px 12px;
}

/* Column widths específicos */
.table-cell.partido-info {
    /* AJUSTE: Subir el ancho para dar más espacio a los nombres de equipo */
    width: 25%; 
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    /* AGREGAR: Asegura que el contenido interno (strong) se comporte como bloque para una mejor alineación */
    display: table-cell; 
}

.table-cell.modelo-cell {
    /* AJUSTE: Reducir ligeramente el ancho de las 4 columnas del medio (15% -> 14.5%) para acomodar el ancho extra de partido-info */
    width: 14.5%; /* 4 x 14.5% = 58% */
}

.table-cell.consenso-cell {
    /* AJUSTE: Acomodar el ancho restante */
    width: 17.5%; /* 25% + 58% + 17.5% = 100.5% (Se redondeará, pero es una mejor distribución) */
}

/* Contenedor de predicciones */
.modelo-prediccion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 50px;
    justify-content: center;
}

.score {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.method-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 70px;
}

/* Colores de badges */
.epa-badge { 
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.pbp-v4-badge { 
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.pbp-v5-badge { 
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 2px 4px rgba(155, 89, 182, 0.3);
}

.poisson-badge { 
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.ensemble-badge { 
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .model-comparison-divs {
        display: block;
    }
    
    .table-row {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 1rem;
    }
    
    .table-cell {
        display: block;
        text-align: center;
        padding: 8px;
    }
    
    .table-cell.partido-info {
        width: 100%;
        text-align: center;
        font-size: 16px;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 8px;
        padding-bottom: 12px;
    }
}

/* 1. Equipos más claros y legibles */
.model-comparison-divs .table-cell.partido-info {
    color: #ffffff !important; /* Texto blanco */
    font-size: 15px; /* Un poco más grande para leer mejor */
}

.model-comparison-divs .table-cell.partido-info strong {
    font-weight: 500; /* Peso de fuente más limpio */
}

/* 2. Convertir el RESULTADO (Score) en el elemento con color */
.model-comparison-divs .score {
    display: inline-block;
    padding: 6px 12px;       /* Espacio interno para parecer botón */
    border-radius: 20px;     /* Bordes redondeados */
    color: white;            /* Texto blanco */
    font-weight: 700;
    font-size: 14px;
    min-width: 95px;         /* Ancho mínimo para que se vean uniformes */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Sombra suave */
}

/* 3. Convertir el NOMBRE DEL MODELO en texto simple (sin fondo) */
.model-comparison-divs .method-badge {
    background: none !important;   /* Quitar fondo de color */
    box-shadow: none !important;   /* Quitar sombra */
    color: #adb5bd !important;     /* Color gris claro */
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;               /* Separarlo un poco del score */
    padding: 0;                    /* Quitar relleno */
    border-radius: 0;
    min-width: auto;
}

/* 4. Mapear los colores a la clase .score en lugar de al badge (usando las mismas clases) */
.score.epa-badge { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.score.pbp-v4-badge { background: linear-gradient(135deg, #3498db, #2980b9); }
.score.pbp-v5-badge { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.score.poisson-badge { background: linear-gradient(135deg, #f39c12, #e67e22); }
.score.ensemble-badge { background: linear-gradient(135deg, #27ae60, #229954); }