.contenedor-partidos {
    width: 95%;
    max-width: 1000px;
    margin: 20px auto;
    overflow-x: auto;
    background-color: var(--fondo-cristal);
    border-radius: 10px;
    box-shadow: var(--sombra);
    padding: 20px;
}

.tabla-partidos {
    width: 100%;
    border-collapse: collapse;
    color: var(--color-texto);
}

.tabla-partidos th,
.tabla-partidos td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.tabla-partidos th {
    background-color: var(--color-primario);
    color: var(--texto-claro);
    font-weight: bold;
    text-transform: uppercase;
}

.tabla-partidos tr:nth-child(even) {
    background-color: #f2f2f2;
}

.tabla-partidos tr:hover {
    background-color: #ddd;
    transition: background-color 0.3s ease;
}

/* Contenedor flexible dentro de la celda */
.contenido-equipo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

.contenido-equipo.local {
    justify-content: flex-end;
}

.contenido-equipo.visitante {
    justify-content: flex-start;
}

.escudo-partido {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.fecha {
    font-weight: bold;
    color: #555;
}

.hora {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--primario-oscuro);
    font-weight: bold;
}

/* Responsividad */
@media (max-width: 768px) {
    .contenido-equipo {
        flex-direction: column;
        font-size: 0.9rem;
        gap: 5px;
        justify-content: center !important;
        /* Centrar en móvil */
    }

    .escudo-partido {
        width: 30px;
        height: 30px;
    }

    .tabla-partidos th,
    .tabla-partidos td {
        padding: 8px 4px;
        font-size: 0.9rem;
    }
}