/* Estructura Principal */
.posiciones-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;
}

.subtitle {
    color: #a0aec0;
    font-size: 1.1rem;
}

/* Filtros */
.filtros-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.filtro-group {
    margin-bottom: 1.5rem;
}

.filtro-label {
    display: block;
    color: #094c79;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.filtro-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filtro-btn {
    background: #e3f2fd;
    border: 2px solid #094c79;
    color: #094c79;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filtro-btn.active {
    background: #094c79;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(9, 76, 121, 0.3);
}

/* Cards de Campeonato */
.campeonato-card {
    background: white;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.campeonato-header {
    padding: 1.5rem;
    background: #094c79;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.trofeo-container i {
    font-size: 2rem;
}

.campeonato-title {
    margin: 0;
    flex-grow: 1;
}

.fechas {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Tablas */
.table-scroll-container {
    overflow-x: auto;
    padding: 0 1rem;
}

.posiciones-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.posiciones-table th {
    background: #f8f9fa;
    color: #094c79;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

.posiciones-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}




.puntos {
    font-weight: 700;
    color: #094c79;
}

/* Equipos */
.equipo-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.logo-placeholder {
    width: 35px;
    height: 35px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #094c79;
}

/* Responsive */
@media (max-width: 768px) {
    .campeonato-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .posiciones-table th,
    .posiciones-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .equipo-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .team-logo {
        width: 30px;
        height: 30px;
    }
}

/* Sin datos */
.no-data-card {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    color: #718096;
}

.no-data-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

/* Estilos Base */
.posiciones-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.titulo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.titulo-container h1 {
    color: #094c79;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Filtros */
.filtros-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.filtro-group {
    margin-bottom: 1.5rem;
}

.filtro-label {
    display: block;
    color: #094c79;
    font-weight: 600;
    margin-bottom: 1rem;
}

.filtro-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filtro-btn {
    background: #e3f2fd;
    border: 2px solid #094c79;
    color: #094c79;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filtro-btn.active {
    background: #094c79;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(9, 76, 121, 0.3);
}

/* Tablas */
.table-scroll {
    overflow-x: auto;
    margin: 1rem 0;
}


.posiciones-table th {
    background: #094c79;
    color: white;
    padding: 1rem;
    font-weight: 600;
}

.posiciones-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

/* Estados */
.clasifica {
    background-color: #ffffff;
    border-left: 4px solid #4CAF50;
}

.descenso {
    background-color: #ffffff;
    border-left: 4px solid #f44336;
}


.puntos {
    font-weight: 700;
    color: #094c79;
}

/* Equipos */
.team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Sin datos */
.no-data {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    color: #718096;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

/* Responsive */
@media (max-width: 768px) {
    .posiciones-container {
        padding: 0 1rem;
    }
    
    .posiciones-table th,
    .posiciones-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* ========== CORRECCIÓN DE INCONSISTENCIAS ========== */
/* Unificación de bordes redondeados */
.posiciones-container,
.filtros-card,
.campeonato-card,
.serie-section,
.posiciones-table {
    border-radius: 12px !important; /* Mismo radio para todos */
}

/* ========== MEJORA DE CONTRASTE Y TIPOGRAFÍA ========== */
.titulo-container h1 {
    color: #ffffffdd;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    color: #a0aec0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ========== LAYOUT DE 2 COLUMNAS PARA SERIES ========== */
.campeonato-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.serie-section {
    background: white;
    border: 1px solid #e9ecef;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ========== OPTIMIZACIÓN DE TABLAS ========== */
.posiciones-table {
    font-size: 0.9rem; /* Tamaño reducido */
    min-width: auto; /* Eliminar ancho mínimo fijo */
}

.posiciones-table th,
.posiciones-table td {
    padding: 0.75rem 0.5rem; /* Padding reducido */
}

.posiciones-table th {
    font-weight: 600;
    white-space: nowrap;
}

/* Columnas menos importantes en móviles */
@media (max-width: 768px) {
    .posiciones-table .dg,
    .posiciones-table .gc,
    .posiciones-table .gf {
        display: none;
    }
    
    .posiciones-table {
        font-size: 0.85rem;
    }
}

/* ========== SISTEMA DE COLORES COHERENTE ========== */

/* ========== MEJORAS DE DISEÑO PROFESIONAL ========== */
/* Efecto hover moderno */
.serie-section:hover {
    transform: translateY(-3px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Encabezado de campeonato mejorado */
.campeonato-header {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #094c79 0%, #08355a 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px !important;
    margin: -1rem; /* Compensa el padding del contenedor */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.campeonato-header i {
    font-size: 2.5rem;
    margin-right: 1rem;
    color: #ffd54f; /* Amarillo contrastante */
}

/* ========== AJUSTES RESPONSIVOS ========== */
@media (min-width: 1024px) {
    .campeonato-card {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en desktop */
    }
    
    .serie-section {
        min-height: 400px; /* Altura mínima uniforme */
        display: flex;
        flex-direction: column;
    }
    
    .table-scroll {
        flex-grow: 1; /* Aprovecha espacio vertical */
    }
}


/* Asegurar posicionamiento preciso del scroll */
.serie-section {
    scroll-margin-top: 80px; /* Altura de tu header fijo */
}

/* Eliminar transiciones durante el scroll */
.serie-section.scrolling {
    transition: none !important;
}

/* Asegurar que la primera tabla no tenga desplazamiento inicial */
.serie-section:first-child {
    scroll-margin-top: 0;
    animation: none !important;
}

/* Eliminar transiciones iniciales */
.serie-section {
    transition: none !important;
}

/* Restaurar transiciones después de 100ms */
@media (prefers-reduced-motion: no-preference) {
    .serie-section {
        transition: all 0.4s ease !important;
    }
}


