/* ================= HEADER ================= */

.main-header{
    width:100%;
    background:#fff;
    border-bottom:3px solid #0056d6;
    margin-bottom:35px;
}

.header-container{
    width:90%;
    max-width:1400px;
    margin:auto;
    padding:20px 0;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo-site{
    color:#0056d6;
    font-size:36px;
    font-weight:bold;
}

.header-action{
    color:#0056d6;
    font-weight:bold;
}

/* ================= CONTENEDOR DE NOTICIAS ================= */

.contenedor-noticias{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    justify-content:flex-start;
}

/* Tarjetas dentro del contenedor */

.tarjeta-noticia{
    flex:1 1 calc(33.333% - 20px);
    min-width:280px;
    box-sizing:border-box;
}

/* ================= GRID ================= */

.grid-noticias{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:30px;
}

/* ================= TARJETA ================= */

.card-noticia{
    background:#fff;
    border:1px solid #ddd;
    overflow:hidden;
    transition:.3s;
}

.card-noticia:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

/* ================= IMAGEN ================= */

.card-imagen{
    width:100%;
    height:230px;
    overflow:hidden;
}

.card-imagen img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.4s;
}

.card-noticia:hover img{
    transform:scale(1.05);
}

.placeholder-img{
    background:#ddd;
}

/* ================= CONTENIDO ================= */

.card-content{
    padding:20px;
}

.badge{
    color:#0056d6;
    font-size:14px;
    font-weight:bold;
    text-transform:uppercase;
    letter-spacing:1px;
}

.card-content h2{
    margin-top:15px;
    margin-bottom:18px;
    font-size:24px;
    font-family:Georgia, serif;
    line-height:1.3;
    color:#111;
}

.card-content p{
    color:#555;
    font-size:18px;
    line-height:1.6;
    margin-bottom:20px;
    overflow-wrap:break-word;
    word-break:break-word;
    display:-webkit-box;
    -webkit-line-clamp:3;
    line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.meta{
    color:#666;
    font-size:15px;
    margin-bottom:18px;
}

.btn-leer{
    display:inline-block;
    padding:10px 22px;
    background:#0056d6;
    color:#fff;
    text-decoration:none;
    border-radius:4px;
    transition:.3s;
}

.btn-leer:hover{
    background:#003ea6;
}

/* ================= RESPONSIVE ================= */

@media (max-width:768px){

    .contenedor-noticias{
        flex-direction:column;
    }

    .tarjeta-noticia{
        flex:1 1 100%;
        min-width:100%;
    }

    .grid-noticias{
        grid-template-columns:1fr;
    }

    .card-content h2{
        font-size:22px;
    }

    .card-content p{
        font-size:16px;
    }

}