﻿/* ==========================================================
   HERO
========================================================== */

.institution-hero {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.institution-hero-overlay {
    height: 100%;
    display: flex;
    align-items: center;
}

.institution-hero h1,
.institution-hero p {
    color: white;
}


/* ==========================================================
   TARJETAS DE LA GALERÍA
========================================================== */

.institution-card {
    overflow: hidden;
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: .3s ease;
}

    .institution-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 40px rgba(0,0,0,.15);
    }

.institution-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform .4s ease;
}

.institution-card:hover .institution-image {
    transform: scale(1.05);
}


/* ==========================================================
   BOTÓN FLOTANTE
========================================================== */

.back-home-btn {
    position: fixed;
    right: 28px;
    bottom: 70px;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 50%;
    background: var(--school-600);
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,.18), inset 0 -3px 0 rgba(0,0,0,.15);
    transition: all .25s ease;
}

    .back-home-btn:hover {
        background: var(--school-900);
        color: white;
        transform: translateY(-4px) scale(1.08);
        box-shadow: 0 18px 40px rgba(0,0,0,.30);
    }


/* ==========================================================
   SECCIONES DE LA GALERÍA
========================================================== */

.gallery-section {
    padding: 5rem 0;
}

.gallery-section-title {
    margin-bottom: .5rem;
    font-size: 2.2rem;
    font-weight: 800;
}

.gallery-section-subtitle {
    max-width: 700px;
    margin-bottom: 2.5rem;
    opacity: .8;
}


/* ==========================================================
   FONDOS DE SECCIONES
========================================================== */

.gallery-academic {
    background: linear-gradient( 180deg, #f8fbff 0%, #eef6ff 100%);
}

.gallery-green {
    background: linear-gradient( 180deg, #f5fbf6 0%, #edf8ef 100%);
}

.gallery-building {
    background: linear-gradient( 180deg, #fafafa 0%, #f2f2f2 100%);
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 992px) {

    .institution-image {
        height: 240px;
    }
}

@media (max-width: 576px) {

    .institution-image {
        height: 220px;
    }
}
