@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {

    --azul-principal: #004171;
    --azul-secundario1: #0d5575;
    --azul-secundario2: #297ba2;
    --azul-secundario3: #389eb0;
    --color-destacado: #FF9154;
    --gris-fondo: #f9f9f9;
    --gris-borde: #e5e5e5;
    --texto: #222222;
}

/* ==========================
   ARCHIVE NOTICIAS
========================== */
.noticias-archive {
    padding: 6rem 0;
    background: var(--gris-fondo);
}

.noticias-archive .section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--azul-principal);
}

.noticias-archive .section-title::after {
    background: var(--color-destacado);
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.noticia-card a {
    display: block;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: all .3s ease;
}

.noticia-card a:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,.15);
}

.noticia-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.noticia-content {
    padding: 1.5rem;
}

.noticia-title {
    font-size: 1.2rem;
    color: var(--azul-principal);
    margin-bottom: .75rem;
    line-height: 1.3;
    padding-top: 1rem;
}

.noticia-excerpt {
    color: #555;
    line-height: 1.6;
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination a,
.pagination span {
    padding: .5rem .75rem;
    margin: 0 .25rem;
    border-radius: 6px;
}

/* ==========================
   SINGLE NOTICIA
========================== */
.noticia-single {
    padding: 5rem 0;
    background: #fff;
}

.noticia-single .container {
    max-width: 900px;
}

.noticia-single .noticia-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--azul-principal);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.noticia-meta {
    color: #777;
    margin-bottom: 2rem;
    font-size: .95rem;
}

.noticia-single .noticia-img {
    height: 480px;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.noticia-single .noticia-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.noticia-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.noticia-content p {
    margin-bottom: 1.2rem;
}

.noticia-content h2,
.noticia-content h3 {
    color: var(--azul-principal);
    margin-top: 2rem;
}

.enlace-volver {
    margin-top: 2.5rem;
    text-align: left;
}

.enlace-volver a {
    color: var(--azul-secundario1);
    text-decoration: none;
    font-weight: 600;
}

.enlace-volver a:hover {
    color: var(--color-destacado);
}