/* ==========================================================================
   Actualidad (actualidad.html) y detalle de noticia (noticia.html)
   --------------------------------------------------------------------------
   Hero .ph, barra, pie, eyebrow, botones y banda .ld-cta vienen de ui.css /
   styles.css. La tipografía del cuerpo (.news-detail__body) sigue en
   styles.css; aquí va la maquetación de ambas páginas. Prefijo nw-.

   Listado: destacada editorial, buscador/orden, y el resto en filas
   horizontales agrupadas por mes (misma cronología que Eventos).
   ========================================================================== */

:root {
    --nw-border: #e3e8ef;
    --nw-muted: #6b7f95;
    --nw-radius: 20px;
    --nw-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --nw-shadow: 0 1px 2px rgba(7, 43, 87, 0.04);
    --nw-shadow-hover: 0 22px 40px -22px rgba(7, 43, 87, 0.30), 0 2px 6px rgba(7, 43, 87, 0.05);
    --nw-green-text: #5A9E1E;
}

.nw-wrap {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.nw-main { padding: 48px 0 24px; }

.nw-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Hero: bahía con velo azul y nodos ------------------------------------ */

.nw-hero { padding: 150px 0 72px; }
.nw-hero__media, .nw-hero__overlay { position: absolute; inset: 0; }
.nw-hero__media { z-index: 0; }
.nw-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.nw-hero__overlay {
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(7, 43, 87, 0.94) 0%, rgba(7, 43, 87, 0.82) 45%, rgba(7, 43, 87, 0.42) 100%),
        linear-gradient(180deg, rgba(0, 45, 90, 0.35) 0%, rgba(0, 45, 90, 0) 100%);
}
.nw-hero .ph__network { z-index: 0; opacity: 0.7; }
.nw-hero__copy { max-width: 700px; }
.nw-hero .eyebrow--light { color: var(--emerald); font-weight: 700; }
.nw-hero .ph__title { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.nw-hero .ph__lead { max-width: 600px; }

/* --- Noticia destacada ---------------------------------------------------- */

.nw-lead-slot[hidden] { display: none; }
.nw-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    background: #fff;
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius);
    overflow: hidden;
    box-shadow: var(--nw-shadow);
    text-decoration: none;
    color: inherit;
    margin-bottom: 36px;
    transition: transform 0.45s var(--nw-ease), box-shadow 0.45s var(--nw-ease), border-color 0.3s ease;
}
.nw-lead:hover, .nw-lead:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--nw-shadow-hover);
    border-color: rgba(0, 75, 135, 0.28);
}
.nw-lead:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.nw-lead__media {
    position: relative;
    min-height: 340px;
    background: linear-gradient(135deg, #072B57, #0A3D78);
    background-size: cover;
    background-position: center;
}
.nw-lead__media--plain, .nw-card__media--plain, .nw-row__thumb--plain {
    background:
        radial-gradient(circle at 80% 20%, rgba(79, 195, 247, 0.25), transparent 45%),
        linear-gradient(135deg, #072B57, #0A3D78);
}
.nw-lead__body { display: flex; flex-direction: column; justify-content: center; padding: 40px 44px; }
.nw-lead__title {
    margin: 10px 0 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--primary-blue);
    text-wrap: balance;
}
.nw-lead__summary {
    margin: 0 0 22px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--gray-text);
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.nw-lead--skeleton { pointer-events: none; }
.nw-lead--skeleton .nw-lead__media { background: #e9eef5; }

.nw-badge {
    position: absolute;
    left: 16px; top: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--emerald);
    color: #072B57;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Fecha y categoría (destacada, tarjetas y detalle) */
.nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--nw-muted); }
.nw-meta time { color: #3F7A1E; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.74rem; }
.nw-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: #eef4fb; color: var(--accent-blue); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.nw-chip[hidden] { display: none; }

/* Enlace de lectura con subrayado que se dibuja al pasar */
.nw-more { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; color: var(--nw-green-text); padding-bottom: 3px; }
.nw-more::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--nw-ease); }
.nw-more i { font-size: 0.8rem; transition: transform 0.4s var(--nw-ease); }
.nw-lead:hover .nw-more::after, .nw-card:hover .nw-more::after,
.nw-lead:focus-visible .nw-more::after, .nw-card:focus-visible .nw-more::after { transform: scaleX(1); }
.nw-lead:hover .nw-more i, .nw-card:hover .nw-more i { transform: translateX(4px); }

/* --- Buscador, categorías y orden ---------------------------------------- */

.nw-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 10px; }
.nw-toolbar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-left: auto; }
.nw-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-filters[hidden] { display: none; }
.nw-chip-btn {
    padding: 8px 14px;
    border: 1px solid var(--nw-border);
    border-radius: 999px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nw-chip-btn:hover { border-color: rgba(0, 75, 135, 0.35); background: #f4f8fc; }
.nw-chip-btn[aria-pressed="true"] { background: var(--primary-blue); border-color: var(--primary-blue); color: #fff; }

.nw-search { position: relative; flex: 0 1 340px; min-width: 220px; }
.nw-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--nw-muted); font-size: 0.9rem; pointer-events: none; }
.nw-search input {
    width: 100%;
    border: 1px solid var(--nw-border);
    border-radius: 999px;
    background: #fff;
    padding: 11px 44px 11px 42px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--dark-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nw-search input::placeholder { color: #94a3b8; }
.nw-search input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.12); }
.nw-search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--nw-muted); cursor: pointer; }
.nw-search button:hover { background: #eef2f7; color: var(--primary-blue); }

.nw-sort { display: inline-flex; align-items: center; gap: 10px; font-size: 0.84rem; font-weight: 600; color: var(--nw-muted); white-space: nowrap; }
.nw-sort__select {
    appearance: none; -webkit-appearance: none;
    border: 1px solid var(--nw-border);
    border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23506680' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    padding: 10px 36px 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--primary-blue);
    cursor: pointer;
}
.nw-sort__select:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.12); }

.nw-count { margin: 0 0 26px; min-height: 1.2em; font-size: 0.86rem; font-weight: 600; color: var(--nw-muted); }

/* --- Cronología por mes --------------------------------------------------- */

.nw-timeline { position: relative; padding-left: 28px; }
.nw-timeline[hidden] { display: none; }
.nw-timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 10px; bottom: 10px;
    width: 1px;
    background: linear-gradient(180deg, var(--nw-border), var(--nw-border) 85%, transparent);
}
.nw-month + .nw-month { margin-top: 36px; }
.nw-month__head { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nw-month__dot {
    position: absolute;
    left: -28px; top: 50%;
    transform: translateY(-50%);
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(141, 198, 63, 0.35);
}
.nw-month__title {
    margin: 0;
    padding: 7px 16px;
    border-radius: 999px;
    background: #eef4fb;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.84rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-blue);
}
.nw-month__count { font-size: 0.8rem; font-weight: 600; color: var(--nw-muted); }
.nw-month__list { display: grid; gap: 12px; }

/* Fila: fecha | imagen 16:9 | contenido | leer noticia */
.nw-row {
    display: grid;
    grid-template-columns: 78px 208px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--nw-border);
    border-radius: 18px;
    box-shadow: var(--nw-shadow);
    cursor: pointer;
    transition: transform 0.35s var(--nw-ease), box-shadow 0.35s var(--nw-ease), border-color 0.25s ease;
}
.nw-row:hover, .nw-row:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -20px rgba(7, 43, 87, 0.3), 0 2px 6px rgba(7, 43, 87, 0.05);
    border-color: rgba(0, 75, 135, 0.28);
}
.nw-row:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.nw-row__date {
    align-self: center;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border-radius: 14px;
    background: #eef4fb;
    text-align: center;
    line-height: 1;
}
.nw-row__day { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--primary-blue); }
.nw-row__mon { margin-top: 5px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-blue); }
.nw-row__year { margin-top: 4px; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.06em; color: var(--nw-muted); }
.nw-row__thumb {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: linear-gradient(135deg, #072B57, #0A3D78);
    background-size: cover;
    background-position: center;
}
.nw-row__body { min-width: 0; }
.nw-row__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.nw-row__meta:empty { display: none; }
.nw-row__title { margin: 0 0 6px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.05rem; line-height: 1.3; color: var(--primary-blue); }
.nw-row__title a { color: inherit; text-decoration: none; }
.nw-row__title a:hover { color: var(--accent-blue); }
.nw-row__summary {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--gray-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nw-row__actions { display: flex; flex-direction: column; align-items: stretch; }
.nw-row__actions .btn-ld { padding: 0.7rem 1.15rem; font-size: 0.86rem; gap: 8px; justify-content: center; white-space: nowrap; }
.nw-row__actions .btn-ld--outline { color: var(--primary-blue); border-color: rgba(0, 45, 90, 0.25); }
.nw-row__actions .btn-ld--outline i { transition: transform 0.35s var(--nw-ease); }
.nw-row:hover .nw-row__actions .btn-ld--outline { background: rgba(0, 45, 90, 0.05); color: var(--primary-blue); border-color: rgba(0, 75, 135, 0.4); }
.nw-row:hover .nw-row__actions .btn-ld--outline i { transform: translateX(4px); }
.nw-row--skeleton { pointer-events: none; }
.nw-row--skeleton .nw-row__thumb { background: #e9eef5; }

/* --- Paginación ----------------------------------------------------------- */

.nw-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
.nw-pager[hidden] { display: none; }
.nw-pager__page, .nw-pager__arrow {
    min-width: 40px; height: 40px;
    padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--nw-border);
    border-radius: 12px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.nw-pager__page:hover, .nw-pager__arrow:hover:not(:disabled) { border-color: rgba(0, 75, 135, 0.4); background: #f4f8fc; }
.nw-pager__page.is-current { background: var(--primary-blue); border-color: var(--primary-blue); color: #fff; cursor: default; }
.nw-pager__arrow:disabled { opacity: 0.4; cursor: default; }
.nw-pager__gap { padding: 0 4px; color: var(--nw-muted); }

/* --- Tarjeta compacta (relacionadas) -------------------------------------- */

.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nw-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--nw-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--nw-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.45s var(--nw-ease), box-shadow 0.45s var(--nw-ease), border-color 0.3s ease;
}
.nw-card:hover, .nw-card:focus-visible { transform: translateY(-4px); box-shadow: var(--nw-shadow-hover); border-color: rgba(0, 75, 135, 0.28); }
.nw-card:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.nw-card__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #072B57, #0A3D78); background-size: cover; background-position: center; }
.nw-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.nw-card__title { margin: 8px 0 12px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.98rem; line-height: 1.35; color: var(--primary-blue); }
.nw-card .nw-more { margin-top: auto; font-size: 0.84rem; }

/* --- Esqueletos y estados ------------------------------------------------- */

.nw-skel {
    display: block;
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e9eef5 0%, #f4f7fb 50%, #e9eef5 100%);
    background-size: 200% 100%;
    animation: nwShimmer 1.4s linear infinite;
    margin: 8px 0;
}
.nw-skel--w40 { width: 40%; } .nw-skel--w70 { width: 70%; } .nw-skel--w90 { width: 90%; }
.nw-skel--pill { width: 160px; height: 30px; border-radius: 999px; margin: 0; }
.nw-skel--title { height: 34px; width: 85%; }
.nw-skel--figure { aspect-ratio: 16 / 9; height: auto; width: 100%; border-radius: 16px; margin: 24px 0; }
@keyframes nwShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.nw-state { text-align: center; background: #fff; border: 1px dashed var(--nw-border); border-radius: var(--nw-radius); padding: 48px 24px; color: var(--gray-text); }
.nw-state[hidden] { display: none; }
.nw-state i { font-size: 2rem; color: var(--accent-blue); margin-bottom: 12px; }
.nw-state h2 { color: var(--primary-blue); font-size: 1.3rem; margin: 0 0 8px; font-family: 'Montserrat', sans-serif; }
.nw-state p { margin: 0 0 18px; }

/* ==========================================================================
   Detalle de noticia
   ========================================================================== */

.nw-article-page { padding: 118px 0 16px; }
.nw-article-wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 20px; }
.nw-article[hidden], .nw-article-skel[hidden], .nw-related[hidden], .nw-gallery[hidden], .nw-figure[hidden], .nw-article__links[hidden] { display: none; }

.nw-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; font-size: 0.82rem; color: var(--nw-muted); }
.nw-crumbs a { color: var(--nw-muted); text-decoration: none; font-weight: 500; }
.nw-crumbs a:hover { color: var(--primary-blue); }
.nw-crumbs i { font-size: 0.6rem; opacity: 0.7; }
.nw-crumbs span { color: var(--primary-blue); font-weight: 600; max-width: 46ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nw-article__head { margin-bottom: 26px; }
.nw-article__meta { margin-bottom: 14px; }
.nw-article__title {
    margin: 0 0 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--primary-blue);
    text-wrap: balance;
}
.nw-article__summary { margin: 0; font-size: 1.12rem; line-height: 1.6; color: var(--gray-text); }
.nw-article__summary[hidden] { display: none; }

.nw-figure { margin: 0 0 30px; }
.nw-figure__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; overflow: hidden; }
.nw-figure__btn:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.nw-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: #eef2f7; }

/* Cuerpo: ancho de lectura cómodo, alineado a la izquierda */
.nw-article__body { max-width: 720px; margin: 0; font-size: 1.04rem; line-height: 1.8; text-align: left; }
.nw-article__body[hidden] { display: none; }
.nw-article__body p, .nw-article__body li { text-align: left; hyphens: manual; }
.nw-article__body .nd-align-center { text-align: center; }
.nw-article__body .nd-align-right { text-align: right; }
.nw-article__body .nd-align-justify { text-align: justify; }
.nw-article__body h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; }

.nw-article__links { max-width: 720px; margin-top: 30px; padding: 20px 22px; border-radius: 16px; background: #f4f8fc; }
.nw-article__links-title { margin: 0 0 10px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--primary-blue); }
.nw-article__links-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nw-article__links-list a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-blue); font-weight: 600; text-decoration: none; font-size: 0.94rem; }
.nw-article__links-list a i { font-size: 0.78rem; color: var(--nw-green-text); }
.nw-article__links-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Galería: miniaturas horizontales, la última con «+N» */
.nw-gallery { margin-top: 32px; }
.nw-gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nw-gallery__item { position: relative; padding: 0; border: 0; background: #eef2f7; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; cursor: zoom-in; }
.nw-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--nw-ease); }
.nw-gallery__item:hover img, .nw-gallery__item:focus-visible img { transform: scale(1.04); }
.nw-gallery__item:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.nw-gallery__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(7, 43, 87, 0.62); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.4rem; }

/* Compartir y volver */
.nw-article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--nw-border); }
.nw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nw-share__label { flex-basis: 100%; margin-bottom: 4px; font-size: 0.85rem; font-weight: 700; color: var(--primary-blue); }
.nw-share a, .nw-share button {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px; border: 1px solid var(--nw-border); background: #fff;
    color: var(--primary-blue); text-decoration: none; cursor: pointer; font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nw-share a:hover, .nw-share button:hover { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); transform: translateY(-2px); }
.nw-share button.is-done { background: var(--emerald); border-color: var(--emerald); color: #072B57; }
.nw-share button[hidden] { display: none; }
.nw-article__back { color: var(--primary-blue); border-color: rgba(0, 45, 90, 0.25); }
.nw-article__back i { order: -1; }

.nw-article-skel { padding-top: 6px; }

/* Relacionadas */
.nw-related { margin-top: 56px; }
.nw-section-title {
    position: relative;
    margin: 0 0 22px;
    padding-left: 44px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    letter-spacing: -0.01em;
    color: var(--primary-blue);
}
.nw-section-title::before { content: ''; position: absolute; left: 0; top: 50%; width: 30px; height: 2px; background: var(--emerald); }
.nw-cta { padding-top: 56px; }

/* Visor */
.nw-lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: transparent; }
.nw-lightbox::backdrop { background: rgba(3, 20, 42, 0.92); }
.nw-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.nw-lightbox__figure { margin: 0; max-width: min(1200px, 92vw); max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nw-lightbox__figure img { max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.nw-lightbox__count { color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; }
.nw-lightbox__close, .nw-lightbox__nav {
    position: fixed;
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.nw-lightbox__close:hover, .nw-lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.nw-lightbox__close { top: 20px; right: 20px; }
.nw-lightbox__nav { top: 50%; transform: translateY(-50%); }
.nw-lightbox__nav--prev { left: 20px; }
.nw-lightbox__nav--next { right: 20px; }
.nw-lightbox__nav[hidden] { display: none; }
body.nw-lightbox-open { overflow: hidden; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1100px) {
    .nw-row { grid-template-columns: 68px 168px minmax(0, 1fr) auto; gap: 16px; }
}
@media (max-width: 900px) {
    .nw-lead { grid-template-columns: 1fr; }
    .nw-lead__media { min-height: 0; aspect-ratio: 16 / 9; }
    .nw-lead__body { padding: 26px 24px 28px; }
    /* Tablet: fecha + imagen + contenido; el botón pasa bajo el contenido */
    .nw-row { grid-template-columns: 64px 150px minmax(0, 1fr); }
    .nw-row__actions { grid-column: 3; flex-direction: row; margin-top: 2px; }
    .nw-row__actions .btn-ld { padding: 0.55rem 1rem; font-size: 0.82rem; }
    .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .nw-hero { padding: 118px 0 52px; }
    .nw-article-page { padding-top: 104px; }
}
@media (max-width: 640px) {
    .nw-main { padding: 36px 0 12px; }
    .nw-toolbar { flex-direction: column; align-items: stretch; }
    .nw-toolbar__tools { margin-left: 0; }
    .nw-search { flex: 1 1 100%; }
    .nw-count { margin-bottom: 20px; }
    .nw-timeline { padding-left: 22px; }
    .nw-month__dot { left: -22px; width: 13px; height: 13px; }
    .nw-month__title { padding: 6px 12px; font-size: 0.78rem; }
    .nw-month__head { flex-wrap: wrap; }
    /* Móvil: imagen arriba, luego fecha + contenido, y el enlace al final */
    .nw-row { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding: 14px; }
    .nw-row__thumb { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 9; }
    .nw-row__date { grid-row: 2; align-self: start; min-height: 0; padding: 12px 6px; }
    .nw-row__body { grid-row: 2; }
    .nw-row__actions { grid-column: 1 / -1; grid-row: 3; }
    .nw-row__actions .btn-ld { width: 100%; }
    .nw-grid { grid-template-columns: 1fr; gap: 16px; }
    .nw-crumbs { margin-bottom: 20px; }
    .nw-crumbs span { max-width: 22ch; }
    .nw-figure img { border-radius: 14px; }
    .nw-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .nw-article__foot { flex-direction: column; align-items: flex-start; }
    .nw-article__back { width: 100%; justify-content: center; }
    .nw-related { margin-top: 44px; }
    .nw-lightbox__close, .nw-lightbox__nav { width: 40px; height: 40px; }
    .nw-lightbox__nav--prev { left: 10px; } .nw-lightbox__nav--next { right: 10px; } .nw-lightbox__close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .nw-lead, .nw-card, .nw-row, .nw-more::after, .nw-more i, .nw-share a, .nw-share button, .nw-gallery__item img, .nw-row__actions .btn-ld--outline i { transition: none; }
    .nw-lead:hover, .nw-card:hover, .nw-row:hover { transform: none; }
    .nw-skel { animation: none; }
}
