/* ---- NUEVA SECCIÓN ---- */
.mas-noticias {
    margin-top: 5rem;
    height: 450px;
    padding: 2rem 5rem;
    background-color: #f5f6f8;
}

.separador {
    border: none;
    border-top: 2px solid #ccc;
    margin-bottom: 3rem;
    width: 100%;
}

.mas-noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.tarjeta-noticia {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tarjeta-noticia:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tarjeta-imagen {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.tarjeta-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tarjeta-noticia:hover .tarjeta-imagen img {
    transform: scale(1.05);
}

/* Botón sobre la imagen */
.btn-leer-mas-overlay {
    position: absolute;
    bottom: 10px;
    left: 62px;
    transform: translateX(-50%);
    background-color: #1f72b2ff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-leer-mas-overlay:hover {
    background-color: #0d2881ff;
    color: #fff;
}

.tarjeta-contenido {
    padding: 1rem 1.3rem 1.5rem 1.3rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tarjeta-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #222;
}

.tarjeta-extracto {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .mas-noticias {
        padding: 2rem 3rem;
    }

    .mas-noticias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 650px) {
    .mas-noticias {
        padding: 1.5rem;
    }

    .mas-noticias-grid {
        grid-template-columns: 1fr;
    }

    .tarjeta-imagen {
        height: 200px;
    }
}

/* PRIMERA SECCION */
.noticia-page {
    background-color: #f5f6f8;
    padding: 4rem 0;
    margin-top: 70px;
}

/* contenedor */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* GRID ajustado */
.noticia-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.noticia-col-izquierda {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5rem;
    object-fit: cover;
}

.noticia-col-derecha {
    width: 100%;
    height: calc(250px * 2 + 2.5rem); /* altura igual a las dos imágenes de la izquierda */
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

/* TARJETAS */
.noticia-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    flex: 1;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* IMÁGENES AJUSTADAS */
.imagen-con-texto,
.imagen-con-texto.grande {
    position: relative;
    width: 100%;
    height: 250px; /* altura estándar */
    overflow: hidden;
    background-color: #000; /* fondo negro */
}

/* Columna derecha grande */
.imagen-con-texto.grande {
    height: calc(250px * 2 + 2.5rem); /* altura = 540px */
}

/* Capa del degradado (negro a transparente) */
.degradado-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 1) 20%,
        rgba(40, 40, 40, 1) 45%,
        rgba(80, 80, 80, 0.4) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    border-radius: 8px;
    z-index: 1;
}

/* Overlay con degradado negro a transparente para todas las noticias */
.overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    color: #fff;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.2rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 20%,  
        rgba(0, 0, 0, 0.4) 50%,   
        rgba(0, 0, 0, 0) 100%     
    );
    border-radius: 0 0 12px 12px; 
}

/* Fecha */
.overlay-info .fecha-noticia {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

/* Título */
.overlay-info .titulo-noticia {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

/* Botón Leer más más corto */
.overlay-info .btn-leer-mas {
    margin-top: 0.3rem;
    background-color: #1f72b2ff;
    color: #fff;
    padding: 4px 12px;
    border-radius: 25px;
    font-size: 0.85rem;
    text-decoration: none;
    width: fit-content;
    transition: all 0.3s ease;
}

.overlay-info .btn-leer-mas:hover {
    background-color: #0a4774ff;
    color: #fff;
}

/* Imagen se ajusta al contenedor */
.imagen-con-texto img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ocupa todo el contenedor */
    object-position: center;
    transition: none;
}

/* hover de zoom */
.imagen-con-texto:hover img {
    transform: none;
}

/* TEXTOS */
.titulo-noticia {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.titulo-noticia.grande {
    color: #fff;
    padding: 10px 20px;
    font-size: 1.8rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.fecha-noticia {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 0.2rem;
}

.fecha-noticia.grande {
    font-size: 1rem;
    font-weight: 500;
    color: #d1d1d1;
}

/* BOTÓN */
.btn-leer-mas {
    margin-top: 0.8rem;
    background-color: #1f72b2ff;
    color: #fff;
    padding: 0.4rem 1.4rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-leer-mas:hover {
    background-color: #0a4774ff;
    transform: translateY(-2px);
    color: #fff;
}

.btn-leer-mas.grande {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .noticia-grid {
        grid-template-columns: 1fr;
    }
    .noticia-col-derecha {
        margin-top: 0;
        height: auto;
    }
    .noticia-page {
        margin-top: 50px;
    }

    .imagen-con-texto {
        height: 220px;
    }

    .imagen-con-texto.grande {
        height: 300px;
    }

    .titulo-noticia.grande {
        font-size: 1.4rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

.mas-noticias .swiper-slide {
    display: flex;
    justify-content: center;
    height: auto;
    width: 100%;
}

@media (max-width: 767px) {
    .mas-noticias-swiper .swiper-slide {
        width: 100% !important;
        display: flex;
        justify-content: center;
        align-items: stretch;
    }

    .mas-noticias-swiper .tarjeta-noticia {
        width: 90%;
        box-sizing: border-box;
    }
}

/* --- Estilo general de los botones Swiper --- */
.swiper-button-next,
.swiper-button-prev {
    opacity: 3;
    color: #f0f4f5ff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ícono de flecha */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Hover */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #121421;
    transform: scale(1.1);
    box-shadow: 0 0 15px #b4bbbcff;
}

/* Ajustes de posición */
.swiper-button-next {
    right: 10px;
}
.swiper-button-prev {
    left: 10px;
}
