.noticias-container{
    background: #5059bc;
    width: 100%;
    min-height: 100vh;
}

.noticias-titulo{
    font-family: "Kanit", sans-serif;
    text-align: center;
    margin: 30px 0;
    color: #fff;
    margin-top: 20px;
    display: none;
}

.noticias-flexibles{
    width: 100%;
}

.noticias-card-noticias{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 40px;
    list-style: none;
    margin: 0;
}

.noticia-card{
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}

.noticia-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

.enlace-noticia{
    display: block;
    text-decoration: none;
    color: inherit;
}

.noticia-imagen-wrapper{
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.noticia-imagen{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.noticia-card:hover .noticia-imagen{
    transform: scale(1.05);
}

/* Overlay */
.noticia-imagen-wrapper::after{
    content:'';
    position:absolute;
    inset:0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.15)
    );
    z-index: 1;
}

.fecha-publicacion{
    position: absolute;
    top: 12px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: #eaeaea;
    z-index: 2;
}

.emoji-reloj{
    margin: 0;
}

.fecha-noticia{
    margin: 0;
    font-family: "Manrope", sans-serif;
}

.noticia-titulo{
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    font-family: "Kanit", sans-serif;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #ffffff;
    z-index: 2;
    margin: 0;
}


@media (max-width: 768px){

    .noticias-card-noticias{
        padding: 20px;
        gap: 16px;
    }

    .noticia-imagen-wrapper{
        height: 220px;
    }

    .noticia-titulo{
        font-size: 1.05rem;
    }

    .footer {
        position: relative;
    }
}
