/* CONTENEDOR PRINCIPAL */
.h-news-card{
    background:#ffffff;
    border-radius:18px;
    overflow:hidden;
    margin-bottom:30px;
    padding:18px;
    border:1px solid #e9ecef;
    box-shadow:0 4px 15px rgba(0,0,0,0.05);
    transition:all .3s ease;
}

.h-news-card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

/* IMAGEN */
.h-news-image-box{
    width:100%;
    height:240px; /* TAMAÑO FIJO */
    overflow:hidden;
    border-radius:14px;
    background:#f5f5f5;
}

.h-news-image{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .4s ease;
}

.h-news-card:hover .h-news-image{
    transform:scale(1.05);
}

/* CONTENIDO */
.h-news-content{
    padding:5px 10px;
}

/* META */
.h-news-meta{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    margin-bottom:12px;
    color:#6c757d;
    font-size:13px;
}

.h-news-meta i{
    color:#0d6efd;
    margin-right:5px;
}

/* TITULO */
.h-news-title{
    font-size:24px;
    font-weight:700;
    line-height:1.4;
    margin-bottom:15px;
}

.h-news-title a{
    color:#212529;
    text-decoration:none;
    transition:.3s;
}

.h-news-title a:hover{
    color:#0d6efd;
}

/* TEXTO */
.h-news-text{
    color:#555;
    font-size:15px;
    line-height:1.8;
    text-align:justify;
    margin-bottom:20px;
}

/* FOOTER */
.h-news-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}

/* VISTAS */
.h-news-views{
    color:#6c757d;
    font-size:14px;
}

/* BOTON */
.h-news-btn{
    display:inline-block;
    background:#0d6efd;
    color:#fff;
    padding:10px 22px;
    border-radius:50px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:.3s;
}

.h-news-btn:hover{
    background:#084298;
    color:#fff;
    text-decoration:none;
}

.h-news-btn i{
    margin-left:6px;
}

/* RESPONSIVE */
@media(max-width:768px){

    .h-news-image-box{
        height:220px;
        margin-bottom:15px;
    }

    .h-news-title{
        font-size:20px;
    }

    .h-news-footer{
        flex-direction:column;
        align-items:flex-start;
    }

    .h-news-btn{
        width:100%;
        text-align:center;
    }

}
/* RIBBON */
.h-news-ribbon{
    position:absolute;
    top:15px;
    left:-5px;
    z-index:2;
    padding:8px 18px;
    font-size:12px;
    font-weight:700;
    color:#fff;
    text-transform:uppercase;
    border-radius:0 30px 30px 0;
    letter-spacing:.5px;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
}

/* COLORES POR TIPO */
.ribbon-nota{
    background:#0d6efd;
}

.ribbon-comunicado{
    background:#198754;
}

.ribbon-noticia{
    background:#dc3545;
}

/* CONTENEDOR RELATIVO */
.h-news-image-wrapper{
    position:relative;
}
