.section-wrapper {
    position: relative;
    overflow: hidden;
    transition: height 2s ease;
    /* Transición suave al cambiar la altura */
    padding-bottom: 20px;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: none;
    /* Secciones ocultas por defecto */
    opacity: 0;
    /* Ocultar completamente */
}

.section.show {
    display: block;
    /* Mostrar la sección activa */
    opacity: 1;
    /* Mostrar la sección */
    position: absolute;
    /* Todas las secciones se superponen entre sí */
}

.section.active {
    animation-name: aparecer;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

.section.inactive {
    animation-name: desaparecer;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

@keyframes aparecer {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes desaparecer {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.contact_list .card-body {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(7, 16, 91, 0.6);
    background: white;
    border-radius: 1rem;
}


.moduloProgram {
    color: black;
    background: #dedee0;
    border: 2px solid white;

}

.moduloProgram:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgb(160, 130, 130) 100%);
    color: white !important;
}

.moduloProgram:hover h5 {
    color: white !important;
}

.moduloProgram:hover i {
    color: white !important;
}

.card {
    /* background-color: rgba(0, 0, 0, 0.575) !important;
   */
    transition: transform 3s ease;
}

.card .imgn {
    transition: transform 0.5s ease;
}

.card:hover .imgn img {
    transform: scale(1.1);
    filter: brightness(0.5);
    border-radius: 0.375rem;

}

.card:hover .imgn {
    transform: scale(1.1);
    max-height: auto;
}

.card:hover .expand {
    display: flex;
    border-radius: 0.375rem;
}

.card:hover .expand button {
    display: block;
}

.expand {
    background: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: none;
    transition: transform 3s ease;
    border-radius: 0.375rem;
}

.expand button {
    width: 3rem;
    height: 3rem;
    border: 0px;
    display: none;
    background-color: rgb(205, 205, 206);
    transition: transform 2s ease;
}
