/* ==========================================================================
   NOTICIAS - ESTILOS ESPECÍFICOS
   ========================================================================== */

:root {
    --rojo-principal: #e63946;
    --rojo-oscuro: #d62839;
    --negro: #212529;
    --gris-oscuro: #495057;
    --gris-claro: #f8f9fa;
    --azul: #0d6efd;
    --verde: #198754;
    --blanco: #ffffff;
}

/* Hero Noticias */
.hero-noticias {
    background: linear-gradient(135deg, var(--rojo-principal), var(--negro));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-noticias h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-noticias p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Contenido Noticias */
.content-noticias {
    padding: 5rem 0;
    background: var(--gris-claro);
}

/* Filtros */
.filtros-noticias {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filtro-btn {
    background: white;
    border: 2px solid var(--gris-oscuro);
    color: var(--gris-oscuro);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.filtro-btn:hover,
.filtro-btn.active {
    background: var(--rojo-principal);
    border-color: var(--rojo-principal);
    color: white;
    transform: translateY(-2px);
}

/* Grid de Noticias */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.noticia-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* ACTUALIZADO: Imágenes de noticias - Ahora se ven completas */
.noticia-imagen {
    width: 100%;
    height: 250px;
    /* Incrementado de 200px */
    background: var(--gris-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.noticia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* CAMBIADO: de cover a contain para mostrar imagen completa */
    background: white;
    /* Fondo blanco para imágenes con transparencia */
}

.noticia-imagen.no-image {
    background: linear-gradient(135deg, var(--rojo-principal), var(--negro));
    color: white;
}

.noticia-imagen.no-image i {
    font-size: 3rem;
    opacity: 0.7;
}

/* NUEVO: Galería de imágenes en cards */
.noticia-imagenes-gallery {
    position: relative;
    width: 100%;
    height: 250px;
    background: var(--gris-claro);
    overflow: hidden;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: white;
    transform: scale(1.3);
}

.gallery-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.noticia-content {
    padding: 1.5rem;
}

.noticia-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gris-oscuro);
}

.noticia-fecha {
    font-weight: 600;
}

.noticia-categoria {
    background: var(--rojo-principal);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.noticia-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-excerpt {
    color: var(--gris-oscuro);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-autor {
    font-size: 0.9rem;
    color: var(--gris-oscuro);
    font-weight: 500;
}

/* Badge destacada */
.noticia-card.destacada {
    border: 3px solid var(--rojo-principal);
    position: relative;
}

.noticia-card.destacada::before {
    content: '⭐ DESTACADA';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--rojo-principal);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

/* Loading */
.loading-noticias {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gris-oscuro);
}

.loading-noticias i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--rojo-principal);
}

/* Sin noticias */
.no-noticias {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gris-oscuro);
}

.no-noticias i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gris-oscuro);
}

/* Paginación */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.btn-paginacion {
    background: var(--rojo-principal);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-paginacion:hover {
    background: var(--rojo-oscuro);
    transform: translateY(-2px);
}

.btn-paginacion:disabled {
    background: var(--gris-oscuro);
    cursor: not-allowed;
    transform: none;
}

.page-info {
    font-weight: 600;
    color: var(--negro);
}

/* Modal */
.modal-noticia {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--rojo-principal);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--rojo-oscuro);
    transform: scale(1.1);
}

/* ACTUALIZADO: Header del modal para múltiples imágenes */
.modal-noticia-header {
    position: relative;
    height: 400px;
    /* Incrementado para mejor visualización */
    background: linear-gradient(135deg, var(--rojo-principal), var(--negro));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-noticia-header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* CAMBIADO: para mostrar imagen completa */
    background: white;
}

.modal-noticia-header.no-image {
    color: white;
}

.modal-noticia-header.no-image i {
    font-size: 4rem;
    opacity: 0.7;
}

/* NUEVO: Galería en modal */
.modal-gallery {
    position: relative;
    height: 400px;
    background: white;
    overflow: hidden;
}

.modal-gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal-gallery-image.active {
    opacity: 1;
}

.modal-gallery-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.modal-gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-gallery-dot.active {
    background: var(--rojo-principal);
    transform: scale(1.3);
}

.modal-gallery-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}

.modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.modal-gallery-nav.prev {
    left: 20px;
}

.modal-gallery-nav.next {
    right: 20px;
}

.modal-noticia-body {
    padding: 2rem;
}

.modal-noticia-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gris-claro);
}

.modal-noticia-titulo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--negro);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.modal-noticia-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gris-oscuro);
}

.modal-noticia-content h1,
.modal-noticia-content h2,
.modal-noticia-content h3 {
    color: var(--negro);
    margin: 2rem 0 1rem;
}

.modal-noticia-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-noticias {
        padding: 3rem 0;
    }

    .hero-noticias h1 {
        font-size: 2.2rem;
    }

    .filtros-noticias {
        gap: 0.5rem;
    }

    .filtro-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .noticia-imagen,
    .noticia-imagenes-gallery {
        height: 200px;
    }

    .paginacion {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-noticia-header,
    .modal-gallery {
        height: 250px;
    }

    .modal-noticia-body {
        padding: 1.5rem;
    }

    .modal-noticia-titulo {
        font-size: 1.5rem;
    }

    .modal-noticia-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .modal-gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .modal-gallery-nav.prev {
        left: 10px;
    }

    .modal-gallery-nav.next {
        right: 10px;
    }

    .gallery-counter,
    .modal-gallery-counter {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* ==========================================================================
   PÁGINA INDIVIDUAL DE NOTICIA
   La generan scripts/build-noticias.js — no editar las páginas a mano.
   ========================================================================== */

.noticia-detalle {
    /* Margen lateral del texto. inde.css pone .container al 98% en móvil,
       lo que dejaba el texto a 4px del borde de la pantalla. */
    --noticia-margen: clamp(1.1rem, 4.5vw, 1.5rem);
    background: var(--blanco);
    padding-bottom: 4rem;
}

.noticia-detalle .container {
    width: 100%;
    padding-left: var(--noticia-margen);
    padding-right: var(--noticia-margen);
    box-sizing: border-box;
}

/* ---------- Cabecera ----------
   Mismo degradado rojo→negro que el hero del listado, para que al entrar
   en una noticia se siga sintiendo la misma web.
   Es un <div>, no un <header>: inde.css da a todos los <header> altura fija,
   display:flex y position:sticky en móvil. Las reglas de abajo lo blindan
   igualmente por si alguna vez se cambia la etiqueta. */
.noticia-cabecera {
    background: linear-gradient(135deg, var(--rojo-principal), var(--negro));
    color: var(--blanco);
    padding: 2.5rem 0 3rem;
    display: block;
    height: auto;
    position: relative;
    top: auto;
    z-index: 1;
    box-shadow: none;
}

.noticia-cabecera::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--rojo-principal);
}

.noticia-cabecera .container {
    max-width: 820px;
}

.noticia-migas {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.noticia-migas a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.noticia-migas a:hover {
    color: var(--blanco);
    text-decoration: underline;
}

.noticia-migas span {
    opacity: 0.5;
}

.noticia-cat {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--blanco);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    padding: 0.32rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.noticia-cabecera h1 {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(1.5rem, 4.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--blanco);
    margin: 0 0 1rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    overflow-wrap: break-word;
}

.noticia-datos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    flex-wrap: wrap;
}

.noticia-datos span[aria-hidden] {
    opacity: 0.5;
}

/* ---------- Foto de portada ----------
   Se monta ligeramente sobre la cabecera roja, estilo revista. */
.noticia-portada {
    margin: -1.5rem auto 2.5rem;
    max-width: 940px;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* La foto se muestra COMPLETA, sin recortar: la mayoría son verticales
   (hechas con el móvil) y con object-fit:cover se perdía más de la mitad.
   Se limita por altura para que una vertical no ocupe toda la pantalla. */
.noticia-portada img {
    display: block;
    max-width: 100%;
    max-height: 68vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

/* Con la proporción conocida (--r = ancho/alto, la calcula el build) se
   reserva el hueco exacto antes de que cargue la foto: el texto no salta. */
.noticia-portada img.con-ratio {
    width: min(100%, calc(68vh * var(--r)));
    max-height: none;
    aspect-ratio: var(--r);
    object-fit: cover;
}

/* ---------- Cuerpo del texto ---------- */
.noticia-detalle > .container {
    max-width: 720px;
    padding-top: 0;
}

/* Sin foto de portada hace falta separar el texto de la cabecera */
.noticia-detalle.sin-portada > .container {
    padding-top: 2.5rem;
}

.noticia-cuerpo p {
    font-size: 1.06rem;
    line-height: 1.78;
    color: #2c2c2c;
    margin: 0 0 1.25rem;
    overflow-wrap: break-word;
}

/* Entradilla destacada */
.noticia-cuerpo p:first-of-type {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--negro);
    font-weight: 500;
    padding-left: 1rem;
    border-left: 3px solid var(--rojo-principal);
}

/* Listas de resultados */
.noticia-detalle__lista {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    border-top: 1px solid #eee;
}

.noticia-detalle__lista li {
    position: relative;
    padding: 0.7rem 0 0.7rem 1.6rem;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    line-height: 1.55;
    color: #2c2c2c;
}

.noticia-detalle__lista li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 1.15rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rojo-principal);
}

/* ---------- Galería ---------- */
.noticia-galeria {
    margin: 3rem 0 0;
    /* explícito: inde.css da 4rem de padding a todas las <section> */
    padding: 2rem 0 0;
    border-top: 1px solid #e8e8e8;
}

.noticia-galeria h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--negro);
    margin: 0 0 1.1rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.noticia-galeria h2 span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gris-oscuro);
}

.noticia-galeria__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 560px) {
    .noticia-galeria__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }
}

.noticia-galeria__item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gris-claro);
    line-height: 0;
}

.noticia-galeria__item img {
    width: 100%;
    height: auto; /* anula el height="" del HTML para que mande el aspect-ratio */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.noticia-galeria__item:hover img {
    transform: scale(1.05);
    opacity: 0.92;
}

/* ---------- Pie ---------- */
.noticia-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e8e8e8;
}

.noticia-volver {
    color: var(--gris-oscuro);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    transition: color 0.2s ease;
}

.noticia-volver:hover {
    color: var(--rojo-principal);
}

.noticia-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rojo-principal);
    color: var(--blanco) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    transition: background 0.25s ease, transform 0.25s ease;
    min-height: 46px;
}

.noticia-cta:hover {
    background: var(--rojo-oscuro);
    transform: translateY(-2px);
}

/* ---------- Móvil ---------- */
@media (max-width: 560px) {
    .noticia-detalle {
        padding-bottom: 1.5rem;
    }

    .noticia-cabecera {
        padding: 1.75rem 0 2.25rem;
    }

    .noticia-migas {
        margin-bottom: 1rem;
    }

    /* Sin solape en móvil: no hay espacio y la foto pisaba la fecha */
    .noticia-portada {
        margin: 1.25rem auto 1.75rem;
        padding: 0 var(--noticia-margen);
    }

    .noticia-portada img {
        max-height: 55vh;
        border-radius: 10px;
    }

    .noticia-portada img.con-ratio {
        width: min(100%, calc(55vh * var(--r)));
        max-height: none;
    }

    .noticia-cuerpo p:first-of-type {
        font-size: 1.1rem;
    }

    .noticia-pie {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .noticia-galeria__item img,
    .noticia-cta {
        transition: none;
    }

    .noticia-galeria__item:hover img,
    .noticia-cta:hover {
        transform: none;
    }
}

/* ==========================================================================
   ARCHIVO / HEMEROTECA en el listado
   ========================================================================== */
.archivo-noticias {
    padding: 3rem 0;
    background: var(--gris-claro);
    border-top: 1px solid #e8e8e8;
}

.archivo-noticias h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--negro);
    margin: 0 0 1.5rem;
    text-align: center;
}

.archivo-noticias__lista {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 820px;
}

.archivo-noticias__lista li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #e4e4e4;
    font-size: 0.92rem;
    line-height: 1.45;
}

.archivo-noticias__lista a {
    color: var(--negro);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.archivo-noticias__lista a:hover {
    color: var(--rojo-principal);
    text-decoration: underline;
}

.archivo-noticias__lista span {
    display: block;
    font-size: 0.78rem;
    color: var(--gris-oscuro);
    margin-top: 0.15rem;
}

/* ==========================================================
   AJUSTES AL SISTEMA DE DISEÑO COMÚN (site.css)
   Mismas tipografías, colores y formas que el resto de la web.
   ========================================================== */

.content-noticias {
    background: var(--papel, #f3f0ea);
    padding: 4.5rem 0 5rem;
}

.content-noticias .container {
    max-width: 1240px;
    padding: 0 24px;
    width: 100%;
}

.filtros-noticias {
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filtro-btn {
    border-radius: 0;
    border: 2px solid var(--tinta, #0c0c0c);
    background: transparent;
    color: var(--tinta, #0c0c0c);
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1rem;
    padding: 0.5rem 1.1rem;
    box-shadow: none;
}

.filtro-btn:hover,
.filtro-btn.active {
    background: var(--tinta, #0c0c0c);
    color: #fff;
    border-color: var(--tinta, #0c0c0c);
    transform: none;
}

.noticias-grid {
    gap: 2.5rem 1.5rem;
}

.noticia-card,
.noticia-card.destacada {
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
}

.noticia-card:hover {
    transform: none;
    box-shadow: 0 20px 40px rgba(12, 12, 12, 0.08);
}

.noticia-card.destacada::before {
    border-radius: 0;
    background: var(--marca, #d41e25);
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.noticia-imagen,
.noticia-imagenes-gallery,
.gallery-image {
    border-radius: 0;
}

.noticia-fecha {
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--marca, #d41e25);
}

.noticia-categoria,
.noticia-cat {
    border-radius: 0;
    background: var(--tinta, #0c0c0c);
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.noticia-titulo {
    font-family: var(--display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: 1.45rem;
    line-height: 1.02;
    color: var(--tinta, #0c0c0c);
}

.noticia-card:hover .noticia-titulo {
    color: var(--marca, #d41e25);
}

.btn-paginacion {
    border-radius: 0;
    background: var(--tinta, #0c0c0c);
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.btn-paginacion:hover:not(:disabled) {
    background: var(--marca, #d41e25);
    transform: none;
}

.modal-content {
    border-radius: 0;
}

.modal-noticia-titulo {
    font-family: var(--display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1;
}

/* ---------- Página de cada noticia ---------- */
.noticia-cabecera {
    background: var(--tinta, #0c0c0c);
    padding-top: 4rem;
    padding-bottom: 4.5rem;
}

.noticia-cabecera::after {
    display: none;
}

.noticia-cabecera h1 {
    font-family: var(--display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.noticia-cat {
    background: var(--marca, #d41e25);
}

.noticia-portada img {
    border-radius: 0;
}

.noticia-cuerpo p:first-of-type {
    border-left-color: var(--marca, #d41e25);
}

.noticia-galeria h2,
.archivo-noticias h2 {
    font-family: var(--display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: 2rem;
    line-height: 1;
}

.noticia-galeria__item,
.noticia-galeria__item img {
    border-radius: 0;
}

.noticia-cta,
.noticia-volver {
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.05rem;
}

.noticia-cta {
    border-radius: 0;
    background: var(--marca, #d41e25);
    box-shadow: none;
}

.noticia-cta:hover {
    background: var(--marca-osc, #b9161c);
    transform: none;
}

.archivo-noticias {
    background: #fff;
    border-top: 1px solid var(--linea, #e2ded6);
}

.archivo-noticias__lista li {
    border-bottom-color: var(--linea, #e2ded6);
}
