
.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;
    }
}

.moduloProgram {
    color: black;
    background: #dedee0;
    border: 2px solid white;

}

.moduloProgram:hover {
    background: var(--color-primario);
    color: white !important;
}

.moduloProgram:hover h5 {
    color: white !important;
}

.moduloProgram:hover i {
    color: white !important;
}

#divnoticia {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 1px 4px 8px rgba(107, 109, 126, 0.829);
}

#divnoticia:hover {
    transform: translateY(15px);
    /* Ajusta la cantidad de elevación aquí */
    box-shadow: 1px 4px 8px rgba(21, 36, 167, 0.959);
    /* Agrega una sombra para mayor efec|to visual */
}

/* Estilo para el contenedor de la imagen */
.image-container {
    position: relative;
    overflow: hidden;
}

/* Estilo para la imagen (efecto de oscurecer) */
.image {
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(60%);
}

/* Efecto hover: aclarar imagen y agrandar */
.image-container:hover .image {
    filter: brightness(100%);
    transform: scale(1.1);
}

/* Estilo para la superposición (overlay) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Texto en la superposición */
.text {
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

/* Ocultar la superposición al hacer hover */
.image-container:hover .overlay {
    opacity: 0;
}