/* =========================
   CABECERA SIMPLE
========================= */
.noticias-top {
    padding: 90px 0 40px;
    background: #f5f4f2;
}

.noticias-heading {
    max-width: 760px;
    margin: 0 auto;
}

.noticias-heading h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 4rem);
    color: #7c766d;
}

.noticias-heading p {
    margin: 0;
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

.noticias-categoria {
    display: inline-block;
    margin-top: 18px;
    padding: 0.55rem 1rem;
    border: 1px solid #d8d1c8;
    color: #7c766d;
    background: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* =========================
   LISTADO
========================= */
.noticias-listado {
    padding: 30px 0 80px;
    background: #f5f4f2;
}

.noticia-wrap {
    height: 100%;
    background: #fff;
    border: 1px solid #e8e2da;
    padding: 18px;
    transition: 0.3s ease;
}

.noticia-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.noticia-wrap .card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    height: 100%;
}

.noticia-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.noticia-wrap h2,
.noticia-wrap h3,
.noticia-wrap h4,
.noticia-wrap .card-title {
    color: #7c766d;
}

.noticia-wrap p,
.noticia-wrap .card-text {
    color: #666;
    line-height: 1.7;
}

.noticia-wrap a {
    color: #7c766d;
    text-decoration: none;
}

.noticia-wrap a:hover {
    color: #5f5952;
}

/* =========================
   VACÍO
========================= */
.sin-noticias {
    background: #fff;
    border: 1px solid #e8e2da;
    padding: 40px;
    text-align: center;
    color: #666;
}

/* =========================
   PAGINACIÓN
========================= */
.noticias-paginacion {
    display: flex;
    justify-content: center;
}

.noticias-paginacion .pagination {
    gap: 0.45rem;
}

.noticias-paginacion .page-link {
    border: 1px solid #d8d1c8;
    color: #7c766d;
    min-width: 42px;
    text-align: center;
    border-radius: 999px !important;
    padding: 0.55rem 0.9rem;
    background: #fff;
}

.noticias-paginacion .page-item.active .page-link {
    background: #7c766d;
    border-color: #7c766d;
    color: #fff;
}

/* NOTICIAS CARDS */
/* =========================
   CARD NOTICIA (PARTIAL ACTUAL)
========================= */

.noticias-listado .card {
    height: 100%;
    background: #ffffff;
    border: 1px solid #e8e2da;
    border-radius: 0;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.noticias-listado .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
    border-color: #ddd5cc;
}

/* Imagen */
.noticias-listado .card-img-top {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.noticias-listado .card:hover .card-img-top {
    transform: scale(1.04);
}

/* Body */
.noticias-listado .card-body {
    padding: 1.45rem;
    gap: 0.8rem !important;
}

/* Título */
.noticias-listado .card-title {
    font-size: 1.25rem !important;
    line-height: 1.35;
    font-weight: 400;
    margin: 0;
}

.noticias-listado .card-title a {
    color: var(--index-principal);
    text-decoration: none;
    transition: color 0.25s ease;
}

.noticias-listado .card-title a:hover {
    color: #5f5952;
}

/* Categoría */
.noticias-listado .card-body .fs-6 {
    margin: 0;
    font-size: 0.82rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9a948c;
}

/* Resumen */
.noticias-listado .card-body p {
    margin: 0;
    color: black;
    line-height: 1.75;
    font-size: 0.97rem;
    font-weight: 400;
}

.noticias-listado .card-body p:last-child {
    margin-top: 0.15rem;
}

/* Links generales */
.noticias-listado .card a {
    text-decoration: none;
}

/* =========================
   TABLET
========================= */
@media (max-width: 991.98px) {
    .noticias-listado .card-title {
        font-size: 1.15rem !important;
    }

    .noticias-listado .card-body {
        padding: 1.2rem;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 767.98px) {
    .noticias-listado .card-body {
        padding: 1rem;
    }

    .noticias-listado .card-title {
        font-size: 1.05rem !important;
    }

    .noticias-listado .card-body p {
        font-size: 0.94rem;
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 767.98px) {
    .noticias-top {
        padding: 60px 0 30px;
    }

    .noticias-listado {
        padding: 20px 0 50px;
    }

    .noticia-wrap {
        padding: 14px;
    }
}
