/* ==================================== */
/* sede.css - Estilos para la página de sedes */
/* ==================================== */

/* --- Hero Section - CONSISTENTE con wsw --- */
.sede-hero {
    background-color: var(--color-light-gray);
    color: var(--color-dark); 
    padding: 60px 20px;
    text-align: center;
}

.sede-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 3px solid var(--color-secondary);
}

.sede-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-dark);
}

/* =======================================================
    SECCIÓN sede-content CON BACKGROUND RESPONSIVO
    ======================================================= */
.sede-content {
    padding: 200px 20px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    
    /* Propiedades comunes para todas las imágenes */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
}

/* Imágenes diferentes por breakpoint - Versión 2 */
@media (min-width: 1920px) {
    .sede-content {
        background-image: url('../img/background/background-xxlage-v2.png');
    }
}

@media (min-width: 1200px) and (max-width: 1919px) {
    .sede-content {
        background-image: url('../img/background/background-large-v2.png');
        min-height: 65vh;
        padding: 40px 20px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .sede-content {
        background-image: url('../img/background/background-medium-v2.png');
        min-height: 60vh;
        padding: 160px 20px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .sede-content {
        background-image: url('../img/background/background-small-v2.png');
        min-height: 50vh;
        padding: 100px 20px;
    }
}

@media (max-width: 479px) {
    .sede-content {
        background-image: url('../img/background/background-mobile-v2.png');
        min-height: 40vh;
        padding: 80px 15px;
    }
}

/* FALLBACK para sede-content */
.sede-content {
    background-image: url('../img/background/background-large-v2.png');
}

.container1 {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Grid para cada sede - 3 columnas */
.sede-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.sede-grid:last-of-type {
    margin-bottom: 40px;
}

.sede-column {
    width: 100%;
}

/* =======================================================
    EFECTO VIDRIO (Glassmorphism)
    ======================================================= */
.glass-effect {
    background: rgba(0,0,0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/*.glass-effect:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}*/

/* =======================================================
    ESTILOS ESPECÍFICOS PARA SEDES
    ======================================================= */

/* Info Container */
.info-container.glass-effect {
    justify-content: flex-start;
}

.info-container h2 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 10px;
    display: block;
    /*text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);*/
}

/* NUEVO: Estilos para actividades */
.actividad-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    padding: 8px 12px;
    background: rgba(242, 92, 5, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.actividad-container:hover {
    background: rgba(242, 92, 5, 0.3);
    transform: translateX(5px);
}

.actividad-container i {
    color: var(--color-accent);
    font-size: 1.3rem;
    min-width: 24px;
}

.actividad-texto {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Dirección Container */
.direccion-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    padding: 8px 12px;
    background: rgba(88, 136, 166, 0.15);
    border-radius: 8px;
}

.direccion-container i {
    color: var(--color-primary);
    font-size: 1.3rem;
    min-width: 24px;
    margin-top: 3px;
}

.direccion-container p {
    margin: 0;
    flex: 1;
}

/* Imagen Container */
.imagen-container.glass-effect {
    padding: 15px;
}

.sede-imagen {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.sede-imagen:hover {
    transform: scale(1.02);
}

.imagen-caption {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.imagen-caption i {
    color: var(--color-accent);
}

/* Mapa Container */
.mapa-container.glass-effect {
    padding: 15px;
    position: relative;
    height: 100%;
    min-height: 350px;
}

.mapa-iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 12px;
    border: none;
}

.mapa-overlay {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mapa-container:hover .mapa-overlay {
    opacity: 1;
}

.mapa-link {
    display: inline-block;
    background-color: var(--color-primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mapa-link i {
    margin-right: 5px;
}

.mapa-link:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

/* =======================================================
    VIDEO DE YOUTUBE
    ======================================================= */
.video-sede-container {
    margin-top: 60px;
    text-align: center;
}

.video-sede-titulo {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 10px;
    display: inline-block;
}

.video-sede-wrapper {
    max-width: 1000px;
    margin: 0 auto 20px;
    padding: 20px;
    border-radius: 24px;
}

.video-sede-iframe {
    width: 100%;
    height: 562.5px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-sede-descripcion {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 20px auto 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* =======================================================
    RESPONSIVE DESIGN
    ======================================================= */

@media (max-width: 1200px) {
    .sede-grid {
        gap: 20px;
    }
    
    .video-sede-iframe {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .sede-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .sede-column {
        max-width: 700px;
        margin: 0 auto;
        width: 100%;
    }
    
    .mapa-iframe {
        min-height: 350px;
    }
    
    .video-sede-iframe {
        height: 400px;
    }
    
    .info-container h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .sede-hero h1 {
        font-size: 2rem;
        padding-bottom: 8px;
        margin-bottom: 15px;
    }
    
    .sede-hero p {
        font-size: 1rem;
    }
    
    .glass-effect {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .sede-imagen {
        height: 200px;
    }
    
    .mapa-iframe {
        min-height: 300px;
    }
    
    .video-sede-iframe {
        height: 300px;
    }
    
    .video-sede-titulo {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .sede-hero {
        padding: 40px 15px;
    }
    
    .sede-hero h1 {
        font-size: 1.8rem;
    }
    
    .sede-content {
        padding: 60px 15px;
    }
    
    .glass-effect {
        padding: 20px;
        backdrop-filter: blur(8px);
    }
    
    .info-container h2 {
        font-size: 1.5rem;
    }
    
    .actividad-container,
    .direccion-container {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .actividad-container i,
    .direccion-container i {
        font-size: 1.1rem;
        min-width: 20px;
    }
    
    .sede-imagen {
        height: 180px;
    }
    
    .mapa-iframe {
        min-height: 250px;
    }
    
    .video-sede-iframe {
        height: 200px;
    }
    
    .video-sede-titulo {
        font-size: 1.4rem;
    }
    
    .video-sede-descripcion {
        font-size: 1rem;
    }
    
    .mapa-overlay {
        opacity: 1;
        position: static;
        margin-top: 15px;
    }
    
    .mapa-link {
        width: 100%;
    }
}

/* Optimización para dispositivos sin soporte de backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
    .glass-effect {
        background: rgba(255, 255, 255, 0.9);
        color: var(--color-dark);
        text-shadow: none;
    }
    
    .glass-effect h2,
    .glass-effect .video-sede-titulo {
        color: var(--color-white);
        text-shadow: none;
    }
    
    .glass-effect p,
    .glass-effect .actividad-container,
    .glass-effect .direccion-container,
    .glass-effect .imagen-caption,
    .glass-effect .video-sede-descripcion {
        color: var(--color-dark);
        text-shadow: none;
    }
    
    .glass-effect .actividad-container {
        background: rgba(242, 92, 5, 0.1);
    }
    
    .glass-effect .direccion-container {
        background: rgba(88, 136, 166, 0.1);
    }
}

/* Estilos para cuando las imágenes no estén disponibles */
.sede-imagen[src="assets/img/placeholder-sede.jpg"] {
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
}