/* --- Tarjeta de noticia (nh_*) --- */
/* usada tanto por index_noticias.html.twig (home) como por banda_noticiasinterna.html.twig (interior) */
.nh_card {
    width: 100%;
    background-color: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nh_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.nh_imagen {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.nh_imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nh_card:hover .nh_imagen img {
    transform: scale(1.06);
}

.nh_contenido {
    padding: 26px 24px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nh_fecha {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 12px;
}

.nh_fecha i {
    color: #2098d1;
}

.nh_titulo {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.nh_titulo a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nh_card:hover .nh_titulo a {
    color: #2098d1;
}

.nh_texto {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.nh_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: #2098d1;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.nh_link:hover {
    border-color: #2098d1;
}


#paginacion {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

#paginacion .pagination {
    gap: 0.5rem;
}


/*------------------ ficha --------------------*/
.fondo_adornos {   padding: 10px 0px; background-color: #efefef;}

.ficha_noticia .caja_noticia_g h1{font-size:clamp(1.375rem, 1.173rem + 1.01vw, 2.5rem); color:#000; }
.ficha_noticia .caja_noticia_g h2{font-size:clamp(1.25rem, 1.138rem + 0.56vw, 1.875rem); color:#00847C; text-align: left;}
.ficha_noticia .caja_noticia_g h3{font-size:clamp(1.125rem, 1.046rem + 0.39vw, 1.563rem); color:#000;}
.ficha_noticia .caja_noticia_g h4{font-size:clamp(1.063rem, 1.006rem + 0.28vw, 1.375rem); color:#00847C;}
.ficha_noticia .fecha_redes{display: flex; justify-content: space-between;}
.ficha_noticia .fecha_redes .fecha_g{font-size: 1.1em;  line-height:90%;  color:#fff; padding: 8px 15px; border-radius: 50px;}

.ficha_noticia .redes_ficha .lista_redes {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
}

.ficha_noticia .redes_ficha .lista_redes li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.ficha_noticia .redes_ficha .lista_redes li a:hover { opacity: 0.85; }

.ficha_noticia .redes_ficha .lista_redes .facebook a { background-color: #3B5998; }
.ficha_noticia .redes_ficha .lista_redes .twitter a { background-color: #000000; }
.ficha_noticia .redes_ficha .lista_redes .whatsapp a { background-color: #3DC24F; }
.ficha_noticia .redes_ficha .lista_redes .email a { background-color: #999; }

.ficha_noticia .caja_noticia_g .texto a:hover{font-weight: bolder;}
.ficha_noticia .caja_noticia_g  img{border-radius: 10px;}

/*--columna dcha--*/
.ficha_noticia  .columna_dcha .titular_columna{ font-weight:600;   line-height:100%; font-size:1.5em;  color:#000; padding-left: 83px; }
.ficha_noticia .not_peke h2{    line-height:110%; font-size:clamp(1.1rem, 1.046rem + 0.27vw, 1.2rem);  color:#333;  margin-bottom: 5px;}

.ficha_noticia .not_peke .caja_not a{display: grid; grid-template-columns:60px auto; color:#666;}

.ficha_noticia .not_peke .fecha_not{height: 65px; width: 65px; border-radius: 13px; display: flex; align-items: center; flex-direction: column; justify-content: center;
    font-size: clamp(1rem, 5vw, 1.3rem); text-align: center; line-height: 100%; text-transform: uppercase; color:#fff; transition: color 1s linear;}
.ficha_noticia .not_peke .fecha_not span{ display: block; line-height: 100%; font-size: 0.9em; color:#ffffff90 ;}
.ficha_noticia .not_peke .fecha_not b{ color:#ffffff!important ;}
.ficha_noticia .not_peke .caja_not .noticia-body {position: relative;}
.ficha_noticia .not_peke .caja_not .noticia-body .sinopsis{margin-bottom:5px;}
.ficha_noticia .not_peke .caja_not a:hover .btn{transition: box-shadow 1s linear;}
.ficha_noticia .not_peke .caja_not a:hover .btn{   box-shadow: 10px 12px 34px #8f8f8f, -15px 1px 38px #8f8f8f;}
.ficha_noticia .not_peke .sinopsis{
    display: block;
    display: -webkit-box;
    line-height: 140%;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ficha_noticia  .ver_mas {
    font-size: 0.85em;
    font-weight: 400;
    padding: 2px ;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 1s linear !important;
}
.ficha_noticia .not_peke .sinopsis p{margin-bottom: 3px; font-size: 0.85em; line-height: 130%;}

/* Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
    .ficha_noticia  .columna_dcha {margin-top: 40px;}

}

/* Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) {
    .ficha_noticia  .columna_dcha {margin-top: 40px;}

}

/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) {

}

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1199.98px) {

}

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) and (max-width: 1399px){
    .ficha_noticia .caja_noticia_g .texto{text-align: justify;}

}
/* Extra large devices (large desktops, 1400px and up)*/
@media (min-width: 1400px) {
    .ficha_noticia .caja_noticia_g .texto{text-align: justify;}

}

