/* Añadir transición suave al scroll */
html {
    scroll-behavior: smooth;
}

/* Estructura principal simplificada */
.partidos-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.titulo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.titulo-container h1 {
    color: #ffffffdd;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Filtro de búsqueda */
.partidos-filter-form {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin: 0 auto 2rem;
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.filter-item label {
    display: block;
    margin-bottom: 0.5rem;
    color: #094c79;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-select,
.filter-item input[type="text"] {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #333;
}

.filter-select:focus,
.filter-item input[type="text"]:focus {
    border-color: #094c79;
    outline: none;
    box-shadow: 0 0 0 2px rgba(9,76,121,0.1);
}

.filter-button {
    background: #094c79;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-button:hover {
    background: #08355a;
}

/* Campeonato */
.campeonato-section {
    margin-bottom: 3rem;
}

.campeonato-title {
    color: #ffffffdd;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.campeonato-title:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: #094c79;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Fecha Numérica - Diseño simplificado y centrado */
.fecha-seccion {
    margin-bottom: 2rem;
    position: relative;
}

.fecha-numerica-title {
    background-color: #094c79;
    color: white;
    font-size: 1.3rem;
    padding: 0.6rem 1rem;
    margin: 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* Sección de día - Centrado y con padding reducido */
.dia-seccion {
    margin: 1rem 0;
}

.dia-title {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffffdd;
    font-size: 1.1rem;
    padding: 0.5rem;
    margin: 0.5rem auto;
    border-radius: 6px;
    text-align: center;
    max-width: 300px;
    border-left: none;
    font-weight: 500;
}

/* Tabla de partidos simplificada */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.partidos-table.compact {
    width: 100%;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    border-collapse: collapse;
}

.partidos-table.compact thead {
    background-color: #094c79;
}

.partidos-table.compact th {
    padding: 0.8rem 0.6rem;
    color: white;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
}

.partidos-table.compact tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.partidos-table.compact tbody tr:nth-child(odd) {
    background-color: #fff;
}

.partidos-table.compact tbody tr:hover {
    background-color: #f0f7fc;
}

.partidos-table.compact td {
    padding: 0.8rem 0.6rem;
    border-bottom: 1px solid #e6e6e6;
    color: #333;
}

/* Columnas optimizadas */
.partidos-table.compact .hora {
    width: 6%;
    text-align: center;
    font-weight: 600;
    color: #094c79;
}

.partidos-table.compact .serie {
    width: 10%;
    color: #0a5d8f;
}

.partidos-table.compact .equipo {
    width: 25%;
}

.partidos-table.compact .goles {
    width: 10%;
    text-align: center;
}

/* Equipos */
.team-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 50%;
    background-color: white;
    padding: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.team-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* Score */
.score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    color: #333;
    min-width: 50px;
    border: 1px solid #e6e6e6;
}

/* Estados */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 90px;
}

.status-badge.finalizado {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.no.jugado {
    background: #fff8e1;
    color: #f57f17;
}

.status-badge.suspendido {
    background: #ffebee;
    color: #c62828;
}

.status-badge.retirado {
    background: #f3e5f5;
    color: #6a1b9a;
}

/* Paginación */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.btn-pagination {
    background-color: #094c79;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
    font-weight: 500;
}

.btn-pagination:hover {
    background-color: #08355a;
}

/* Estado sin resultados */
.no-results {
    background-color: rgba(255,255,255,0.1);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.no-results i {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 1rem;
    display: block;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #ffffffdd;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-group {
        grid-template-columns: 1fr;
    }
    
    .partidos-table.compact td,
    .partidos-table.compact th {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }
    
    .team-logo {
        width: 22px;
        height: 22px;
    }
    
    .team-name {
        max-width: 100px;
    }
}

@media (max-width: 576px) {
    .partidos-table.compact .serie,
    .partidos-table.compact .cancha {
        display: none;
    }
    
    .status-badge {
        min-width: 70px;
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .score {
        min-width: 40px;
        padding: 0.2rem 0.4rem;
    }
}

