/* =========================================
   PÁGINA DE DETALLE DE SEDE / CAMPUS
   ========================================= */

/* Hero de la Sede */
.sede-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-color: var(--primary-blue);
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    padding-top: 100px;
    background-size: cover;
    background-position: center;
}

/* Capa de oscurecimiento elegante (Gradient de abajo hacia arriba) */
.sede-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(23, 27, 77, 0.95) 0%, rgba(23, 27, 77, 0.3) 100%);
    z-index: 1;
}

.sede-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.sede-eyebrow {
    color: var(--yellow);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
}

.sede-hero h1 {
    color: var(--white);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.sede-location {
    color: #cbd5e1;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Layout de 2 Columnas (Contenido y Formulario) */
.sede-layout {
    display: flex;
    gap: 60px;
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.sede-main {
    flex: 1;
}

.sede-section-title {
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.sede-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
}

.sede-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 50px;
}

/* Galería Mosaico (Estilo Editorial) */
.sede-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 250px 250px;
    gap: 15px;
    margin-bottom: 60px;
}

.gallery-img {
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Hacemos que la primera foto sea grande (ocupa 2 columnas y 2 filas) */
.gallery-img.main-photo {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Lista de Carreras en la Sede */
.sede-programs {
    list-style: none;
    margin-bottom: 60px;
}

.sede-programs li {
    border-bottom: 1px solid #e2e8f0;
}

.sede-programs a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    color: var(--primary-blue);
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sede-programs a span {
    color: var(--primary-red);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.sede-programs a:hover {
    color: var(--primary-red);
    padding-left: 10px;
}

.sede-programs a:hover span {
    transform: translateX(5px);
}

/* Mapa */
.sede-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Formulario Sticky (Sidebar) */
.sede-sidebar {
    width: 420px;
    position: sticky;
    top: 100px;
    /* Se pega a 100px del top al scrollear */
}

/* Reutilizamos el estilo del form-card pero con toques premium */
.sede-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(23, 27, 77, 0.1);
    border-top: 5px solid var(--primary-red);
}

/* Responsive */
@media (max-width: 992px) {
    .sede-hero h1 {
        font-size: 2.8rem;
    }

    .sede-layout {
        flex-direction: column;
        gap: 40px;
    }

    .sede-sidebar {
        width: 100%;
        position: static;
    }

    .sede-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px;
    }

    .gallery-img.main-photo {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
    }
}

@media (max-width: 576px) {
    .sede-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }

    .gallery-img {
        height: 250px;
    }

    .gallery-img.main-photo {
        grid-column: auto;
        grid-row: auto;
    }
}