/*------------------noticias CARD-----------------------*/
/* Contenedor de noticias */

.noticias .titular  {  font-size: clamp(1.3rem, 2.5vw, 2.1rem); }

.noticias {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Espaciado entre cards */
.not_ind {
    margin-bottom: 2rem;
}

/* Eliminamos el estilo de enlace */
.not_ind a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Card principal - altura igual */
.not_ind .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.not_ind .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Contenedor de imagen con posición relativa para la fecha */
.not_ind figure {
    position: relative;
    margin: 0;
    overflow: hidden;
}

/* Imagen responsive */
.not_ind .card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.not_ind .card:hover .card-img-top {
    transform: scale(1.05);
}

/* Fecha superpuesta en la imagen */
.not_ind .fecha {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    z-index: 10;
}

.not_ind .fecha span {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #7faa11;
    line-height: 1;
}

.not_ind .fecha {
    font-size: 14px;
    text-transform: uppercase;
}

/* Body de la card - crece para ocupar espacio */
.not_ind .card-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Título */
.not_ind .card-title {
    font-size: 1.25rem;  
    color: #333;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Footer - siempre al fondo */
.not_ind .card-footer {
    background-color: #fff;
    border-top: 1px solid #fff;
    padding: 1rem 1.5rem;
    margin-top: auto;
}

.not_ind .ver {
    color: #607B00;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.not_ind .card:hover .ver {
    color: #7faa11;
}

/* Añadir una flecha al "ver más" */
.not_ind .ver::after {
    content: " →";
    display: inline-block;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.not_ind .card:hover .ver::after {
    transform: translateX(5px);
}

/* ============================================
   RESPONSIVE - AJUSTES POR PANTALLA
   ============================================ */

/* Tablets grandes y desktop */
@media (min-width: 992px) {
    .noticias {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .not_ind {
        margin-bottom: 2.5rem;
    }
    
    
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .not_ind .card-img-top {
        height: auto;
    }
    
    .not_ind .card-title {
        font-size: 1.15rem;
    }
}

/* Móviles */
@media (max-width: 767px) {
    .not_ind {
        margin-bottom: 1.5rem;
    }
    
    .not_ind .card-img-top {
        height: 220px;
    }
    
    .not_ind .fecha {
        top: 10px;
        right: 10px;
        padding: 10px 14px;
    }
    
    .not_ind .fecha span {
        font-size: 28px;
    }
    
    .not_ind .card-title {
        font-size: 1.1rem;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .not_ind .card-img-top {
        height: 200px;
    }
    
    .not_ind .fecha {
        padding: 8px 12px;
    }
    
    .not_ind .fecha span {
        font-size: 24px;
    }
}

/* ============================================
   PAGINACIÓN 
   ============================================ */

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

#paginacion .pagination {
    gap: 0.5rem;
}


/*------------------ficha  noticias CARD-----------------------*/

.fecha_redes{ display: flex;  align-items: center;}
.fecha_redes .redes_ficha{ display: inline-block;}
.fecha_redes .fecha_g{ display: inline-block; margin-left: 30px; font-size: 1em; text-transform: uppercase; font-weight: 700; line-height:100%; color:#fff; padding: 7px 15px; background-color: #000;}
.zona_otras_noticias{background: #fff;
    padding: 40px 30px 40px;
    -webkit-box-shadow: 15px 15px 30px rgb(0 0 1 / 5%);
    box-shadow: 15px 15px 30px rgb(0 0 1 / 5%);
    border-radius: 15px;
}

.titular_not_g{margin-bottom: 20px; margin-top: 30px; font-weight: 600; color: #333;}

.caja_noticia_g{
    
    background: #fff;
    border-radius: 15px;
    transition: 0.3s;
    padding: 30px;
    box-shadow:15px -1px 30px rgb(0 0 1 / 5%);
}

.imagen_g{border-radius: 10px; overflow: hidden; margin-bottom: 20px;}

.lista_redes{ margin-bottom: 0;}
.lista_redes li {
    display: inline-block;
    margin: 0 10px 0 0;
}

.lista_redes li i {
    line-height: 30px !important;
}

.lista_redes li a {
    color: #fff;
    font-size: 16px;
    height: 30px;
    text-align: center;
    width: 30px;
    display: inline-block;
    vertical-align: top;
}

.lista_redes a:hover { box-shadow: 0 2px 3px rgba(0, 0, 0, 0.7);}
    
.facebook { background-color: #3B5998;}
.twitter { background-color: #00A0D1;}
.youtube { background-color: #C4302B;}
.instagram { background-color: #825C48;}
.whatsapp { background-color: #3DC24F;}
.email { background-color: #f6d317;}

.titular_otras{color:#333; font-weight: 700; font-size: 1.5em; margin-bottom: 30px;}
.noticia_peke{ grid-template-columns:85px auto ; display: grid; margin-bottom: 15px;}
.datos_p{ padding-left: 10px;}
.datos_p .fecha{ color:#888; text-transform: uppercase; font-size: 0.8em;}
.noticia_peke figure img{border-radius: 5px; overflow: hidden;  transition: all 1s linear;}
.noticia_peke:hover figure img{opacity: 0.5;}
.datos_p h3 {font-size: 0.9em; font-weight: 600; line-height:110%!important; margin-bottom: 20px;}
.datos_p h3 a{ font-weight: 600; line-height:100%!important; color:#333;}
.datos_p h3 a:hover{ color:#000; }

 /*-----------------*/

/* Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) { 
    .caja_noticia_g { padding: 10px;}
}

/* Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) {

}

/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) { 
    .noticia_peke{grid-template-rows:auto auto; grid-template-columns: none; display: grid;}
}

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1199.98px) { 
    .caja_noticia_g p{ text-align: justify;}
}

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

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