/* =========================
RESET BÁSICO
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 90px;
    /* espacio para header fijo */
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
}


/* =========================
BOTÓN SUBIR
========================= */



/* =========================
TÍTULO DE LA PÁGINA
========================= */

.window-title-noticias {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    color: #0d3b66;
    margin-top: 40px;
}


/* =========================
CONTENEDOR NOTICIAS
========================= */

.thirdSection {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 5%;
}


/* =========================
CARDS NOTICIAS
========================= */



.cardsResponsive {
    width: 300px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.cardsResponsive:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}


/* =========================
IMAGEN
========================= */

.allImageResponsive {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.myImgResponsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.allImageResponsive:hover .myImgResponsive {
    transform: scale(1.15);
}


/* =========================
OVERLAY HOVER
========================= */

.overlayResponsive {
    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: 0;
    transition: .4s;
}

.cardsResponsive:hover .overlayResponsive {
    opacity: 1;
}

.myButtonResponsive {
    background: transparent;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
}

.myButtonResponsive:hover {
    background: white;
}

.textHoverResponsive {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.myButtonResponsive:hover .textHoverResponsive {
    color: #1e293b;
}


/* =========================
TEXTO CARD
========================= */

.bottomCardResponsive {
    padding: 18px;
}

.cardsTitleResponsive {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0d3b66;
    margin-bottom: 6px;
}

.paragraphResponsive {
    font-size: 0.85rem;
    color: #64748b;
}


/* =========================
RESPONSIVE
========================= */

@media (max-width:900px) {

    .thirdSection {
        gap: 30px;
        padding: 50px 5%;
    }

}

@media (max-width:600px) {

    .window-title-noticias {
        font-size: 1.6rem;
        padding: 0 20px;
    }

}

@media (max-width:400px) {
    .cardsResponsive {
        width: 100%;
    }
}
