/* Estilo para la información de los partidos - Más negrita */
.matches-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

/* Estilo específico para los nombres de equipos */
.matches-table td:nth-child(4),
.matches-table td:nth-child(5) {
    font-weight: 700;
}

/* Filas alternadas - Blanco y Naranja */
.matches-table tr {
    background-color: #ffffff;
}

.matches-table tr:nth-child(even) {
    background-color: #FF8C00;
    color: white;
}

.matches-table tr:nth-child(even) td {
    color: white;
    font-weight: 600;
}

/* Efecto hover para ambas filas */
.matches-table tr:hover {
    background-color: #e8f4fc;
}

.matches-table tr:nth-child(even):hover {
    background-color: #FF7F00;
}

/* Mantener los títulos como están */
.matches-table th {
    background-color: #2c3e50;
    color: white;
    padding: 12px 10px;
    text-align: left;
    font-weight: bold;
    position: sticky;
    top: 0;
    font-size: 14px;
}

/* Mejora para el contenedor principal */
.fixture-container {
    max-width: 1400px;
    margin: 80px auto 30px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

/* Estilo para los botones de día */
.day-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    background-color: #ecf0f1;
    color: #2c3e50;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 14px;
    margin: 5px;
}

.day-btn:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

.day-btn.active {
    background-color: #2980b9;
    color: white;
}

/* Mejora para el contador de partidos */
.matches-count {
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    padding: 12px;
    background-color: #ecf0f1;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 15px;
}

/* Estilo para el mensaje de "No hay partidos" */
.matches-table td[colspan] {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #7f8c8d;
    background-color: #f9f9f9;
    font-weight: 600;
}

/* Estilo para partidos de eliminatoria */
.partido-eliminatoria {
    background-color: #FFF3E0 !important;
    border-left: 4px solid #FF8C00;
}

.partido-eliminatoria:nth-child(even) {
    background-color: #FFE0B2 !important;
}

.partido-eliminatoria:hover {
    background-color: #FFCC80 !important;
}

/* CONTENEDOR PRINCIPAL RESPONSIVE */
.matches-table-container {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch; /* Suaviza el scroll en iOS */
}

/* Asegurar que la tabla tenga un ancho mínimo */
.matches-table {
    min-width: 700px; /* Ancho mínimo para mostrar todas las columnas */
    width: 100%;
    border-collapse: collapse;
}

/* Mejora responsive - Mostrar TODAS las columnas en móviles */
@media (max-width: 768px) {
    .fixture-container {
        margin: 70px 10px 20px;
        padding: 10px;
    }
    
    .matches-table-container {
        overflow-x: auto;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
    }
    
    .matches-table {
        min-width: 650px; /* Reducir un poco el ancho mínimo */
        font-size: 13px;
    }
    
    .matches-table th,
    .matches-table td {
        padding: 10px 8px;
        font-size: 13px;
        white-space: nowrap; /* Evitar que el texto se divida en varias líneas */
    }
    
    .matches-table th {
        font-size: 13px;
        padding: 12px 8px;
    }
    
    /* Ajustar botones para móviles */
    .day-buttons {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .day-btn {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 13px;
        margin: 0 5px 5px 0;
    }
    
    .day-selector h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .fixture-container {
        margin: 60px 5px 15px;
        padding: 8px;
    }
    
    .matches-table {
        min-width: 600px; /* Ancho mínimo aún más reducido */
    }
    
    .matches-table th,
    .matches-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .matches-table th {
        font-size: 12px;
        padding: 10px 6px;
    }
    
    .day-btn {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .fixture-container h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .day-selector h2 {
        font-size: 16px;
    }
    
    .matches-count {
        padding: 10px;
        font-size: 13px;
    }
}

/* Estilos para mejorar la visualización en dispositivos móviles */
body {
    -webkit-text-size-adjust: 100%; /* Evitar zoom automático en iOS */
}

/* Mejorar la apariencia del scroll horizontal */
.matches-table-container::-webkit-scrollbar {
    height: 8px;
}

.matches-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.matches-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.matches-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}