/* =====================================================================================================================*/
/* HERO SECUNDARIO */
/* =====================================================================================================================*/
.hero-section-secondary .carousel,
.hero-section-secondary .carousel-inner,
.hero-section-secondary .carousel-item {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 60vh;
    position: relative;
}

.hero-slide-secondary {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-title-custom {
    font-size: 50px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    padding-bottom: 5%;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

@media (max-width: 992px) {
    .hero-section-secondary .carousel,
    .hero-section-secondary .carousel-inner,
    .hero-section-secondary .carousel-item {
        height: 40vh;
    }
    .hero-title-custom {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .hero-section-secondary .carousel,
    .hero-section-secondary .carousel-inner,
    .hero-section-secondary .carousel-item {
        height: 30vh;
    }
    .hero-title-custom {
        font-size: 22px;
    }
}

.hero-section-secondary .carousel-control-prev,
.hero-section-secondary .carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hero-section-secondary .carousel-control-prev:hover,
.hero-section-secondary .carousel-control-next:hover {
    opacity: 1;
}

/* =====================================================================================================================*/
/* BANNER ORGANIZACIÓN */
/* =====================================================================================================================*/
.organizacion-banner-wrapper {
    width: 100%;
    background-color: var(--navy-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.organizacion-banner-img {
    width: 100%;
    height: auto;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
}

@media (max-width: 768px) {
    .organizacion-banner-img {
        height: 120px;
    }
}

@media (max-width: 993px) {
    .organizacion-img-saludo-institucional {
        width: 100% !important;
    }
}

/* =====================================================================================================================*/
/* HISTORIA CARD */
/* =====================================================================================================================*/
.historia-card:hover .historia-img {
    transform: scale(1.06);
}

.historia-card:hover .historia-overlay {
    opacity: 1 !important;
}

.historia-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.historia-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
    transform: translateY(-4px);
}

/* =====================================================================================================================*/
/* PROGRAM CARD (Estructura Organización) */
/* =====================================================================================================================*/
.card.program-card a {
    margin-top: auto;
}

.carta-estructura {
    border: 3px solid #393F6F;
}

@media (max-width: 576px) {
    .card.program-card {
        height: 280px !important;
        padding: 15px !important;
    }
    .card.program-card img.rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
    .card.program-card h5 {
        font-size: 12px;
    }
    .card.program-card p {
        font-size: 10px;
    }
    .card.program-card .bi-linkedin {
        font-size: 1.2rem !important;
    }
    .section-title {
        font-size: 18px;
    }
}

@media (max-width: 570px) {
    .col-12.px-5 {
        padding-left: 35px !important;
        padding-right: 35px !important;
    }
}
