/* ---------------------- */
/* Botones Filtros */
/* ---------------------- */

.series-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.serie-btn {
    background: #e3f2fd;
    border: 2px solid #094c79;
    color: #094c79;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.serie-btn.active {
    background: #094c79;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(9, 76, 121, 0.3);
}

.serie-btn:hover:not(.active) {
    background: #bbdefb;
}

.equipos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.filtros-container {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.equipos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.equipo-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    display: flex !important;
    flex-direction: column;
    align-items: center; /* Centrado horizontal de todos los elementos */
    transition: all 0.3s ease, opacity 0.3s ease !important;
}

.equipo-card[style*="display: none"] {
    display: none !important;
}

.equipo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.equipo-nombre {
    color: #094c79;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}



.equipo-card:hover {
    transform: translateY(-5px);
}

.equipo-logo-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 5%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipo-logo-container img{
    max-width: max-content;
    max-height: max-content;
    object-fit: cover;
}

.equipo-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgb(255, 255, 255);


}

.grupo-con-logo {
    margin-bottom: 3rem;
    border-bottom: 2px solid #094c79;
    padding-bottom: 2rem;
}

.grupo-sin-logo::before {
    content: "Equipos sin logo";
    display: block;
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.equipo-card:not(:has(img)) {
    opacity: 0.8;
    background: #f8f9fa;
    border: 1px dashed #094c79;
}

/* ---------------------- */
/* Estilos Generales Modal */
/* ---------------------- */

.modal {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #f8f9fa;
    max-width: 500px;
    margin: 4rem auto;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #2d3436;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

/* ---------------------- */
/* Elementos del Modal */
/* ---------------------- */

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.modal-logo-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: white;
    padding: 8px;
}

#modalLogo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

#modalNombre {
    font-size: 1.8rem;
    color: #094c79;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#modalDescripcion {
    line-height: 1.6;
    color: #555;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.delegados-info {
    background: #f1f3f5;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.delegados-info h4 {
    color: #094c79;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delegados-info h4 i {
    font-size: 1.4rem;
}

.delegados-info p {
    color: #666;
    margin-bottom: 0.5rem;
}


/* ---------------------- */
/* Botón de Cerrar */
/* ---------------------- */
.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #094c79;
}




@media (max-width: 768px) {
    .equipos-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 90%;
        margin: 1rem auto;
        padding: 1rem;
    }
}


/* Estilos diferenciados para equipos sin logo */
.equipo-card.sin-logo {
    opacity: 0.8;
    background: #f8f9fa;
    border: 2px dashed #e0e0e0;
}

.equipo-card.sin-logo .equipo-nombre {
    color: #666;
}

.equipo-card.sin-logo .logo-placeholder {
    background: #f0f0f0;
}