/* Clasificación de un grupo (tabla común en calendario.css: .tabla-datos) */
.tabla-clasificacion {
    table-layout: auto;
}

.tabla-clasificacion th:nth-child(1),
.tabla-clasificacion td:nth-child(1) {
    width: 40px;
}

.tabla-clasificacion .equipo-nombre {
    text-align: left;
}

.tabla-clasificacion .equipo-nombre span {
    vertical-align: middle;
}

/* Líneas de corte: la API da la posición y la etiqueta, no el color */
.tabla-clasificacion tr.corte-dalt-1 td { border-bottom: 3px solid #2ecc71; }
.tabla-clasificacion tr.corte-dalt-2 td { border-bottom: 3px solid #3498db; }
.tabla-clasificacion tr.corte-baix-1 td { border-bottom: 3px solid #e74c3c; }
.tabla-clasificacion tr.corte-baix-2 td { border-bottom: 3px solid #f1b44c; }

.leyenda-cortes {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #ffffff;
}

.leyenda-cortes li {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Punto de color: mismo color que la línea de corte de la tabla */
.leyenda-cortes li::before {
    content: '';
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
}

.leyenda-cortes li.corte-dalt-1::before { background-color: #2ecc71; }
.leyenda-cortes li.corte-dalt-2::before { background-color: #3498db; }
.leyenda-cortes li.corte-baix-1::before { background-color: #e74c3c; }
.leyenda-cortes li.corte-baix-2::before { background-color: #f1b44c; }

/* Clasificación final de la categoría */
.tabla-final .podio-1 td:nth-child(1) { color: #f1c40f; font-weight: 700; }
.tabla-final .podio-2 td:nth-child(1) { color: #c0c8d0; font-weight: 700; }
.tabla-final .podio-3 td:nth-child(1) { color: #cd7f32; font-weight: 700; }
.tabla-final .podio-1 .equipo-nombre span { font-weight: 700; }

.tabla-final .retirado td {
    opacity: 0.6;
    font-style: italic;
}

.nota-final {
    max-width: 640px;
    margin: 14px auto 0;
    padding: 0 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #ffffff;
    text-align: center;
}

/* Móvil: las 8 columnas de la clasificación caben sin deslizar */
@media (max-width: 480px) {
    .tabla-clasificacion th:nth-child(1),
    .tabla-clasificacion td:nth-child(1) {
        width: 28px;
    }
}
