/* ============================================================
   Netzerd — Noticias (listado + detalle)
   Paleta: #002660 · #003a8c · #536069 · #faf8ff
   ============================================================ */

body.page-noticias,
body.page-detalle_noticia {
    background: #faf8ff;
    font-family: 'Inter', sans-serif;
    color: #1a1b21;
    padding-top: 5rem !important;
}

@media (max-width: 767.98px) {
    body.page-noticias,
    body.page-detalle_noticia {
        padding-top: 4.5rem !important;
    }
}

body.page-noticias .material-symbols-outlined,
body.page-detalle_noticia .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* ── Layout shell ─────────────────────────────────────────── */
.nz-noticias-main {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 0 48px;
}

@media (min-width: 768px) {
    .nz-noticias-main {
        padding: 20px 0 64px;
    }
}

/* Anular padding-top duplicado (body ya reserva espacio para cabecera fija) */
@media (max-width: 767.98px) {
    body.page-noticias .nz-noticias-main,
    body.page-detalle_noticia .nz-noticias-main {
        padding-top: 0.75rem !important;
    }
}

/* ── Carrusel hero destacadas ───────────────────────────────── */
.nz-news-carousel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 36px;
}

@media (max-width: 767.98px) {
    .nz-news-carousel {
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: 28px;
    }
}

.nz-news-carousel__viewport,
.nz-news-carousel__arrow,
.nz-news-carousel__dots {
    grid-row: 1;
    grid-column: 1;
}

.nz-news-carousel__viewport {
    position: relative;
    width: 100%;
    min-width: 0;
    height: clamp(220px, 52vw, 420px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px -12px rgba(0, 38, 102, 0.18);
    background: linear-gradient(135deg, #0a2a5e 0%, #123f7a 50%, #0d3470 100%);
}

@media (min-width: 768px) {
    .nz-news-carousel__viewport {
        height: 420px;
    }
}

@media (max-width: 767.98px) {
    .nz-news-carousel__viewport {
        border-radius: 0;
    }
}

.nz-news-carousel__track {
    position: absolute;
    inset: 0;
}

.nz-news-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    z-index: 1;
}

.nz-news-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.nz-news-carousel__slide .nz-news-hero,
.nz-news-carousel__slide .nz-news-hero__media {
    height: 100%;
}

.nz-news-carousel__slide .nz-news-hero {
    margin-bottom: 0;
    box-shadow: none;
    border-radius: 0;
}

@media (max-width: 767.98px) {
    .nz-news-carousel__slide .nz-news-hero {
        margin-left: 0;
        margin-right: 0;
    }
}

.nz-news-carousel__arrow {
    position: relative;
    z-index: 10;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #002660;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 38, 102, 0.15);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    pointer-events: auto;
}

.nz-news-carousel__arrow:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 38, 102, 0.2);
}

.nz-news-carousel__arrow--prev {
    justify-self: start;
    align-self: center;
    margin-left: 12px;
}

.nz-news-carousel__arrow--next {
    justify-self: end;
    align-self: center;
    margin-right: 12px;
}

@media (max-width: 767.98px) {
    .nz-news-carousel__arrow {
        width: 36px;
        height: 36px;
    }

    .nz-news-carousel__arrow--prev {
        margin-left: 8px;
    }

    .nz-news-carousel__arrow--next {
        margin-right: 8px;
    }
}

.nz-news-carousel__dots {
    position: relative;
    justify-self: center;
    align-self: end;
    margin-bottom: 14px;
    z-index: 10;
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 38, 102, 0.35);
    backdrop-filter: blur(6px);
    pointer-events: auto;
}

.nz-news-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, width 0.2s;
}

.nz-news-carousel__dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: #fff;
}

/* ── Hero slide ───────────────────────────────────────────── */
.nz-news-hero {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

@media (max-width: 767.98px) {
    .nz-news-hero {
        border-radius: 0;
    }
}

.nz-news-hero__media {
    position: relative;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, #002660 0%, #003a8c 55%, #1e5bb8 100%);
}

@media (min-width: 768px) {
    .nz-news-hero__media {
        min-height: 300px;
    }
}

.nz-news-carousel__slide .nz-news-hero__media {
    height: 100%;
    background: linear-gradient(135deg, #0a2a5e 0%, #123f7a 45%, #0d3470 100%);
}

.nz-news-carousel .nz-news-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: none !important;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.nz-news-carousel .nz-news-hero:hover .nz-news-hero__media:not(.nz-news-hero__media--logo) img {
    transform: scale(1.03) !important;
}

.nz-news-carousel .nz-news-hero__media--logo {
    display: grid;
    place-items: center;
}

.nz-news-carousel .nz-news-hero__media--logo img {
    width: auto;
    height: auto;
    max-width: min(240px, 42%);
    max-height: 88px;
    object-fit: contain;
    opacity: 0.14;
    filter: saturate(0.85);
}

.nz-news-carousel .nz-news-hero__media--logo .nz-news-hero__overlay {
    background: linear-gradient(
        to top,
        rgba(0, 38, 102, 0.88) 0%,
        rgba(0, 38, 102, 0.52) 38%,
        rgba(0, 38, 102, 0.18) 100%
    );
}

@media (min-width: 768px) {
    .nz-news-carousel .nz-news-hero__media--logo .nz-news-hero__overlay {
        background: linear-gradient(
            to right,
            rgba(0, 38, 102, 0.82) 0%,
            rgba(0, 38, 102, 0.48) 45%,
            rgba(0, 38, 102, 0.12) 100%
        );
    }
}

.nz-news-carousel .nz-news-hero:hover .nz-news-hero__media img {
    transform: none !important;
}

.nz-news-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.nz-news-hero:hover .nz-news-hero__media img {
    transform: scale(1.03);
}

.nz-news-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 38, 102, 0.78) 0%,
        rgba(0, 38, 102, 0.42) 45%,
        rgba(0, 58, 140, 0.12) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 48px 20px 28px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .nz-news-hero__overlay {
        align-items: center;
        padding: 40px 56px 52px;
        background: linear-gradient(
            to right,
            rgba(0, 38, 102, 0.72) 0%,
            rgba(0, 38, 102, 0.38) 42%,
            rgba(0, 58, 140, 0.08) 72%,
            transparent 100%
        );
    }
}

.nz-news-hero__content {
    max-width: 640px;
    width: 100%;
    pointer-events: auto;
}

.nz-news-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.nz-news-badge--hero {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.nz-news-badge--featured {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
}

.nz-news-badge--category {
    background: #e8f0ff;
    color: #003a8c;
}

.nz-news-hero__title {
    font-size: clamp(1.35rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    text-shadow: 0 2px 12px rgba(0, 20, 60, 0.45);
}

.nz-news-hero__subtitle {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 8px rgba(0, 20, 60, 0.35);
}

.nz-news-hero__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.nz-news-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    color: #002660;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nz-news-hero:hover .nz-news-hero__cta {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nz-news-hero__date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ── Toolbar (título + búsqueda + filtros) ────────────────── */
.nz-news-toolbar {
    margin-bottom: 32px;
}

.nz-news-toolbar__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .nz-news-toolbar__head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.nz-news-toolbar__title {
    font-size: clamp(1.25rem, 3vw, 1.625rem);
    font-weight: 700;
    color: #003a8c;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.nz-news-toolbar__desc {
    font-size: 0.9375rem;
    color: #536069;
    margin: 0;
    line-height: 1.5;
}

.nz-news-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 38, 102, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nz-news-search:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(0, 58, 140, 0.1), 0 4px 14px rgba(0, 38, 102, 0.08);
}

@media (min-width: 640px) {
    .nz-news-search {
        width: min(100%, 360px);
        flex-shrink: 0;
    }
}

.nz-news-search__field {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 8px;
    padding: 0 4px 0 16px;
    margin: 0;
    cursor: text;
}

.nz-news-search__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #94a3b8;
    pointer-events: none;
}

body.page-noticias .nz-news-search__input,
body.page-noticias .nz-news-search input[type="search"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 11px 8px 11px 0;
    font-size: 0.875rem;
    font-family: inherit;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #1a1b21 !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
}

body.page-noticias .nz-news-search__input::placeholder {
    color: #94a3b8;
}

body.page-noticias .nz-news-search__input:focus {
    border: none !important;
    box-shadow: none !important;
}

.nz-news-search__submit {
    flex-shrink: 0;
    margin: 4px;
    padding: 0 18px;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: #002660;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.nz-news-search__submit:hover {
    background: #003a8c;
}

@media (max-width: 479.98px) {
    .nz-news-search__submit {
        padding: 0 14px;
        font-size: 0;
        width: 42px;
        position: relative;
    }

    .nz-news-search__submit::after {
        content: 'search';
        font-family: 'Material Symbols Outlined';
        font-size: 1.25rem;
        font-weight: 400;
        line-height: 1;
    }
}

.nz-news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nz-news-filter {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #536069;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nz-news-filter:hover {
    border-color: #93c5fd;
    color: #003a8c;
}

.nz-news-filter.is-active {
    background: #002660;
    border-color: #002660;
    color: #fff;
}

/* ── Grid de tarjetas ─────────────────────────────────────── */
.nz-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .nz-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .nz-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nz-news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8edf4;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 38, 102, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nz-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 38, 102, 0.1);
    border-color: #cbd5e1;
}

.nz-news-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f0ff, #dbeafe);
    text-decoration: none;
}

.nz-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.nz-news-card:hover .nz-news-card__media img {
    transform: scale(1.05);
}

.nz-news-card__tags {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    pointer-events: none;
}

.nz-news-card__tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nz-news-card__tag--cat {
    background: #003a8c;
    color: #fff;
}

.nz-news-card__tag--featured {
    background: #fbbf24;
    color: #78350f;
}

.nz-news-card__play {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #003a8c;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, background 0.2s;
}

.nz-news-card__play:hover {
    transform: scale(1.08);
    background: #fff;
}

.nz-news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
}

.nz-news-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #002660;
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nz-news-card__title a {
    color: inherit;
    text-decoration: none;
}

.nz-news-card__title a:hover {
    color: #003a8c;
}

.nz-news-card__excerpt {
    font-size: 0.875rem;
    color: #536069;
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nz-news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.nz-news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.nz-news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    background: #002660;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.nz-news-card__link:hover {
    background: #003a8c;
}

/* ── Estado vacío ─────────────────────────────────────────── */
.nz-news-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
}

.nz-news-empty__icon {
    font-size: 2.5rem;
    color: #003a8c;
    margin-bottom: 12px;
}

.nz-news-empty__text {
    font-size: 1rem;
    font-weight: 600;
    color: #002660;
    margin: 0;
}

/* ── Sección vídeos ───────────────────────────────────────── */
.nz-news-videos {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #e8edf4;
}

.nz-news-videos__title {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #003a8c;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.nz-news-videos__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .nz-news-videos__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.nz-news-video {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 8px 24px rgba(0, 38, 102, 0.1);
}

.nz-news-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nz-news-video__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nz-news-video__play {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.nz-news-video:hover .nz-news-video__play {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.nz-news-video__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    text-decoration: none;
    color: inherit;
}

.nz-news-video__caption h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nz-news-video__caption p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Detalle de noticia ───────────────────────────────────── */
.nz-article {
    max-width: 780px;
    margin: 0 auto;
}

.nz-article__header {
    margin-bottom: 28px;
}

.nz-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.nz-article__title {
    font-size: clamp(1.5rem, 4.5vw, 2.25rem);
    font-weight: 700;
    color: #002660;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0 0 12px;
}

.nz-article__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: #536069;
    line-height: 1.55;
    margin: 0 0 20px;
}

.nz-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 14px 0;
    border-top: 1px solid #e8edf4;
    border-bottom: 1px solid #e8edf4;
}

.nz-article__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: #64748b;
}

.nz-article__meta-item--author {
    gap: 8px;
    font-weight: 600;
    color: #334155;
}

.nz-news-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.nz-news-author-avatar--sm {
    width: 22px;
    height: 22px;
    border-width: 1px;
}

.nz-news-author-initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #003a8c, #2563eb);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.nz-news-author-initial--sm {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.nz-news-card__author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.nz-news-author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    border-radius: 999px;
    padding: 2px 8px 2px 2px;
    margin: -2px -8px -2px -2px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nz-news-author-link:hover {
    background: #eff6ff;
    color: #003a8c;
}

.nz-news-card__author .nz-news-author-link {
    margin: 0;
    padding: 0;
}

.nz-news-card__author .nz-news-author-link:hover {
    background: transparent;
    text-decoration: underline;
}

.nz-article__meta-item .material-symbols-outlined {
    font-size: 1.125rem;
    color: #94a3b8;
}

.nz-article__cover {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid #e8edf4;
    box-shadow: 0 8px 30px rgba(0, 38, 102, 0.08);
}

.nz-article__cover img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.nz-article__video-section {
    margin-bottom: 32px;
    scroll-margin-top: 100px;
}

.nz-article__video-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #003a8c;
    margin: 0 0 14px;
}

.nz-article__video-wrap {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid #e8edf4;
    box-shadow: 0 4px 20px rgba(0, 38, 102, 0.08);
}

.nz-article__video-wrap iframe,
.nz-article__video-wrap video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.nz-article__video-note {
    font-size: 0.75rem;
    color: #64748b;
    margin: 8px 0 0;
}

.nz-article__video-fallback {
    width: 100%;
    margin-top: 16px;
    border-radius: 10px;
    max-height: 320px;
}

.nz-article__body {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8edf4;
    padding: 24px 20px;
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0, 38, 102, 0.04);
}

@media (min-width: 768px) {
    .nz-article__body {
        padding: 32px 36px;
        font-size: 1.0625rem;
    }
}

.nz-article__body p {
    margin: 0 0 1em;
}

.nz-article__body p:last-child {
    margin-bottom: 0;
}

.nz-article__footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e8edf4;
}

.nz-article__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: #002660;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.nz-article__back:hover {
    background: #003a8c;
}

.nz-article__back:active {
    transform: scale(0.98);
}

/* ── Modal vídeo ──────────────────────────────────────────── */
.nz-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
}

.nz-video-modal.is-open {
    display: flex;
}

.nz-video-modal__box {
    position: relative;
    width: min(960px, 100%);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.nz-video-modal__box iframe,
.nz-video-modal__box video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.nz-video-modal__close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s;
}

.nz-video-modal__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ── Página de error ──────────────────────────────────────── */
.nz-news-error {
    text-align: center;
    padding: 48px 24px;
}

.nz-news-error h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #002660;
    margin: 0 0 8px;
}

.nz-news-error p {
    color: #536069;
    margin: 0;
}
