#noticias{
    max-width: 100%;
    width: 100%;
    height: 700px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#texto_noticias{
    width: 42%;
    height: 70%;
    margin: 10px ;    
}
#texto_noticias h1{
    font-size: calc(0.9rem + 1.2vw); /* Escala dinámica */
}

#texto_noticias p{
    font-size: calc(0.6rem + 0.7vw); /* Escala dinámica */
}

#imagenes_noticias{
    display: flex;
    flex-direction: row;
    width: 55%;
    height: auto;
    justify-content: center;
    align-items: center;
    object-fit: contain;
}

.elementos_noticias{
    max-width: 100%;
    height: 100%;
    height: 40vh; /* Ajustar la altura de las imágenes del slider */
    margin: 2px;
}


/* Media Queries para dispositivos móviles */
@media (max-width: 1170px) {
    #noticias{
        max-width: 100%;
        width: 90%;
        height: 1000px;
        background-color: white;
        display: flex;
        margin: 0 auto;
        flex-direction: column;
    }

    #texto_noticias{
        width: 100%;
        height: 30%;
        margin: 10px ;    
    }

    #imagenes_noticias{
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 90%;
        align-items: center;
        justify-content: center;
    }

    .elementos_noticias{
        object-fit: contain;
        max-width: 70%;
        height: 40vh;
        margin: 2px;
    }
    
}