/* ============================================================
   Páginas v5 — archivo (categoría y etiqueta), búsqueda y contacto
   dentro del sistema editorial de /noticias.

   Extiende noticias-v4.css: reutiliza sus variables (--nv-*) y sus
   componentes (.nv-page, .nv-head, .nv-topics, .nv-band, .nv-grid,
   .nv-card, .nv-side, .nv-rail, .nv-box, .nv-loadmore).
   Se carga SOLO en las páginas que lo declaran en $pageStyles.
   ============================================================ */

/* ---------- Cabeceras internas ---------- */

.nv-page--archive .nv-head__title,
.nv-page--search .nv-head__title,
.nv-page--contact .nv-head__title {
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    line-height: .96;
    overflow-wrap: anywhere;
}

.nv-head__count {
    color: var(--nv-ink);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Título del bloque de archivo: misma jerarquía que "Más noticias". */
.nv-page--archive .nv-feed .nv-band {
    padding-top: 4px;
}

/* ---------- Chips: estado activo y variante compacta ---------- */

.nv-chip.is-active,
.nv-chip.is-active:hover {
    border-color: var(--nv-ink);
    background: var(--nv-ink);
    color: var(--nv-surface);
}

.nv-chip--sm {
    padding: 5px 10px;
    font-size: .72rem;
}

.nv-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

/* ---------- Estadísticas de archivo ---------- */

.nv-box__text--meta {
    margin-top: 12px;
}

.nv-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--nv-line);
    border-radius: var(--nv-radius);
}

.nv-stat {
    display: grid;
    gap: 3px;
    padding: 13px 11px;
    background: var(--nv-surface);
}

.nv-stat + .nv-stat {
    border-left: 1px solid var(--nv-line);
}

.nv-stat strong {
    color: var(--nv-ink);
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.045em;
    font-variant-numeric: tabular-nums;
}

.nv-stat span {
    color: var(--nv-muted);
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

/* ---------- Buscador ---------- */

.nv-searchbar {
    display: flex;
    gap: 10px;
    margin: 24px 0 0;
}

.nv-searchbar__field {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
}

.nv-searchbar__icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--nv-muted);
    pointer-events: none;
}

.nv-searchbar input {
    width: 100%;
    padding: 15px 18px 15px 46px;
    border: 1px solid var(--nv-line);
    border-radius: 6px;
    background: var(--nv-surface);
    color: var(--nv-ink);
    font: inherit;
    font-size: 1rem;
}

.nv-searchbar input::placeholder {
    color: var(--nv-muted);
}

.nv-searchbar input:focus {
    outline: none;
    border-color: var(--nv-red);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nv-red) 18%, transparent);
}

.nv-searchbar button {
    flex: 0 0 auto;
    padding: 0 28px;
    border: 0;
    border-radius: 6px;
    background: var(--nv-ink);
    color: var(--nv-surface);
    font: inherit;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.nv-searchbar button:hover {
    background: var(--nv-red);
    color: #fff;
}

.nv-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--nv-muted);
    font-size: .72rem;
    font-weight: 750;
}

.nv-examples > span {
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nv-examples .nv-chip b,
.nv-tagcloud .nv-chip b {
    margin-left: 5px;
    color: var(--nv-muted);
    font-size: .68rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.nv-topics--after-search {
    margin-top: 22px;
}

.nv-empty-state--after-search {
    margin-top: 26px;
}

/* ---------- Filtros por tipo ---------- */

.nv-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 22px 0 0;
}

.nv-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--nv-line);
    border-radius: 999px;
    color: var(--nv-ink);
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.nv-filter b {
    color: var(--nv-muted);
    font-size: .68rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.nv-filter:hover {
    border-color: var(--nv-red);
    color: var(--nv-red);
}

.nv-filter.is-active {
    border-color: var(--nv-ink);
    background: var(--nv-ink);
    color: var(--nv-surface);
}

.nv-filter.is-active b {
    color: color-mix(in srgb, var(--nv-surface) 68%, transparent);
}

/* ---------- Paneles de datos de la búsqueda ---------- */

.nv-seg {
    display: flex;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--nv-soft);
}

.nv-seg__part {
    display: block;
    height: 100%;
    background: var(--k, var(--nv-muted));
}

/* Colores por tipo de contenido (legibles en claro y oscuro). */
.nv-kind--noticia { --k: #c8102e; }
.nv-kind--entrevista { --k: #5b5bd6; }
.nv-kind--informe { --k: #b45309; }
.nv-kind--envivo { --k: #0e7490; }

[data-theme="dark"] .nv-kind--noticia { --k: #ff5a6e; }
[data-theme="dark"] .nv-kind--entrevista { --k: #a5a5ff; }
[data-theme="dark"] .nv-kind--informe { --k: #f0a94b; }
[data-theme="dark"] .nv-kind--envivo { --k: #4fc3d9; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nv-kind--noticia { --k: #ff5a6e; }
    :root:not([data-theme="light"]) .nv-kind--entrevista { --k: #a5a5ff; }
    :root:not([data-theme="light"]) .nv-kind--informe { --k: #f0a94b; }
    :root:not([data-theme="light"]) .nv-kind--envivo { --k: #4fc3d9; }
}

.nv-legend {
    display: grid;
    gap: 9px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.nv-legend li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--nv-muted);
    font-size: .8rem;
}

.nv-legend i {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--k, var(--nv-muted));
}

.nv-legend span {
    flex: 1 1 auto;
    color: var(--nv-ink);
    font-weight: 650;
}

.nv-legend strong {
    color: var(--nv-ink);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.nv-months {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 92px;
    margin-top: 4px;
}

.nv-month {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    height: 100%;
    min-width: 0;
}

.nv-month__bar {
    width: 100%;
    max-width: 32px;
    min-height: 3px;
    border-radius: 2px 2px 0 0;
    background: color-mix(in srgb, var(--nv-ink) 16%, transparent);
}

.nv-month.is-peak .nv-month__bar {
    background: var(--nv-red);
}

.nv-month__n {
    color: var(--nv-muted);
    font-size: .6rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.nv-month__m {
    color: var(--nv-muted);
    font-size: .59rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ---------- Tarjetas de resultado (búsqueda) ---------- */

/* La etiqueta de tipo va como texto plano, igual que en /noticias. */
.nv-page .mixed-story-badge {
    display: inline-block;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--k, var(--nv-red));
}

/* public.css fuerza padding + object-fit:contain en toda imagen de tarjeta;
   las páginas nv usan la foto a sangre, como la portada de /noticias. */
.nv-page .mixed-story-media img {
    padding: 0 !important;
    object-fit: cover !important;
    background: transparent;
}

/* Archivos con pocas tarjetas: dos columnas para no dejar huecos. */
@media (min-width: 1081px) {
    .nv-grid--sparse {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nv-page .mixed-story-card p.nv-searchcard__meta {
    display: block;
    margin-top: 7px;
    color: var(--nv-muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .01em;
    -webkit-line-clamp: 1;
}

/* Tarjeta tipográfica para resultados sin imagen. */
.nv-textcard {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 214px;
    padding: 15px 0 0;
    border-top: 3px solid var(--nv-ink);
}

.nv-textcard__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nv-textcard__kind {
    color: var(--k, var(--nv-red));
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
}

.nv-textcard__kind:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nv-textcard time {
    flex: 0 0 auto;
    color: var(--nv-muted);
    font-size: .67rem;
    font-weight: 700;
    white-space: nowrap;
}

.nv-textcard h3 {
    margin: 0;
    color: var(--nv-ink);
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -.02em;
}

.nv-textcard h3 a {
    color: inherit;
    text-decoration: none;
}

.nv-textcard h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nv-textcard p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--nv-muted);
    font-size: .84rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.nv-textcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
    color: var(--nv-muted);
    font-size: .72rem;
    font-weight: 700;
}

.nv-textcard__foot a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--nv-red);
    font-weight: 850;
    text-decoration: none;
}

.nv-textcard__foot a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Estado vacío ---------- */

.nv-empty-state {
    display: grid;
    gap: 10px;
    justify-items: center;
    margin: 32px 0 0;
    padding: 60px 24px;
    border: 1px dashed var(--nv-line);
    border-radius: 12px;
    text-align: center;
}

.nv-empty-state svg {
    width: 30px;
    height: 30px;
    color: var(--nv-red);
}

.nv-empty-state h2 {
    margin: 0;
    color: var(--nv-ink);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 900;
    letter-spacing: -.025em;
}

.nv-empty-state p {
    max-width: 54ch;
    margin: 0;
    color: var(--nv-muted);
    font-size: .92rem;
    line-height: 1.55;
}

.nv-empty-state .nv-chip {
    margin-top: 6px;
}

/* ---------- Contacto ---------- */

.nv-page--contact .nv-body {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.nv-form {
    display: grid;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--nv-line);
    border-radius: 12px;
    background: var(--nv-surface);
}

.nv-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.nv-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.nv-field > label {
    color: var(--nv-muted);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nv-field input,
.nv-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--nv-line);
    border-radius: 6px;
    background: var(--nv-surface);
    color: var(--nv-ink);
    font: inherit;
    font-size: .95rem;
}

.nv-field textarea {
    min-height: 170px;
    resize: vertical;
    line-height: 1.55;
}

.nv-field input::placeholder,
.nv-field textarea::placeholder {
    color: var(--nv-muted);
    opacity: .85;
}

.nv-field input:focus,
.nv-field textarea:focus {
    outline: none;
    border-color: var(--nv-red);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nv-red) 16%, transparent);
}

.nv-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 2px;
}

.nv-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border: 2px solid var(--nv-ink);
    border-radius: 3px;
    background: var(--nv-ink);
    color: var(--nv-surface);
    font: inherit;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.nv-btn:hover {
    background: transparent;
    color: var(--nv-ink);
}

.nv-form__note {
    max-width: 48ch;
    margin: 0;
    color: var(--nv-muted);
    font-size: .78rem;
    line-height: 1.5;
}

.nv-form__note a {
    color: var(--nv-ink);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nv-form__note a:hover {
    color: var(--nv-red);
}

.nv-alert {
    padding: 13px 16px;
    border-left: 3px solid var(--nv-red);
    border-radius: 0 6px 6px 0;
    background: color-mix(in srgb, var(--nv-red) 8%, transparent);
    color: var(--nv-ink);
    font-size: .9rem;
    line-height: 1.5;
}

.nv-alert--ok {
    border-color: #0b7a46;
    background: color-mix(in srgb, #0b7a46 10%, transparent);
}

.nv-box__mail {
    display: inline-block;
    margin-top: 12px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--nv-red);
    color: var(--nv-ink);
    font-size: .9rem;
    font-weight: 850;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.nv-box__mail:hover {
    color: var(--nv-red);
}

.nv-box--live .nv-box__mail {
    color: var(--fx-bg);
}

.nv-box--live .nv-box__mail:hover {
    color: var(--nv-red);
}

.nv-checklist {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.nv-checklist li {
    position: relative;
    padding-left: 18px;
    color: var(--nv-muted);
    font-size: .84rem;
    line-height: 1.5;
}

.nv-checklist li::before {
    content: "";
    position: absolute;
    top: .5em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--nv-red);
}

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

@media (max-width: 1080px) {
    .nv-page--contact .nv-body {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Cuatro tarjetas: 2x2 en tablet en lugar de 3+1. */
    .nv-page--contact .nv-rail,
    .nv-page--search .nv-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .nv-form {
        padding: 20px;
    }

    .nv-form__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .nv-searchbar {
        flex-direction: column;
    }

    .nv-searchbar button {
        padding: 14px 20px;
    }
}

@media (max-width: 640px) {
    .nv-page--contact .nv-rail,
    .nv-page--search .nv-rail {
        grid-template-columns: minmax(0, 1fr);
    }

    .nv-page--search .nv-head__title {
        font-size: clamp(1.75rem, 8vw, 2.4rem);
    }

    .nv-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .nv-btn {
        justify-content: center;
    }

    .nv-textcard {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nv-searchbar button,
    .nv-filter,
    .nv-btn {
        transition: none !important;
    }
}

/* ============================================================
   Perfil de autor y equipo
   ============================================================ */

.nv-page--author .fx-profile,
.nv-page--team .fx-profile {
    padding-bottom: 0;
}

.nv-page--author .fx-profile__panel {
    padding-top: 0;
}

/* --- Ficha de autor --- */

.nv-author {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: clamp(20px, 3vw, 32px);
    padding: 28px 0;
    border-bottom: 1px solid var(--nv-line);
}

.nv-author__avatar-wrap {
    flex: 0 0 auto;
}

.nv-author__avatar {
    display: block;
    width: 148px;
    height: 148px;
    overflow: hidden;
    border: 1px solid var(--nv-line);
    border-radius: 50%;
    background: var(--nv-soft);
    object-fit: cover;
}

.nv-author__avatar--initial {
    display: grid;
    place-items: center;
    color: var(--nv-red);
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -.04em;
}

.nv-author__body {
    min-width: 0;
}

.nv-author__role {
    margin: 0 0 8px;
    color: var(--nv-red);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nv-author__bio {
    max-width: 74ch;
    margin: 0;
    color: var(--nv-ink);
    font-size: 1.02rem;
    line-height: 1.6;
}

.nv-author__credentials {
    margin: 10px 0 0;
    color: var(--nv-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.nv-author__stats {
    max-width: 620px;
    margin-top: 18px;
}

/* --- Pestañas --- */

.nv-author__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0 14px;
    border-bottom: 1px solid var(--nv-line);
}

/* Los estilos heredados del perfil anterior pintan la pestaña activa con
   el color del texto; se fuerza el contraste del sistema nv. */
.nv-page .nv-author__tabs .nv-filter.is-active,
.nv-page .nv-author__tabs .nv-filter.is-active:hover {
    color: var(--nv-surface);
}

.nv-page .nv-author__tabs .fx-profile__tab::after {
    display: none;
}

button.nv-filter {
    font: inherit;
    background: transparent;
    cursor: pointer;
}

button.nv-filter:focus-visible,
a.nv-filter:focus-visible {
    outline: 2px solid var(--nv-red);
    outline-offset: 2px;
}

/* --- Datos de ficha --- */

.nv-facts {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-facts li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--nv-line);
    font-size: .82rem;
}

.nv-facts li:first-child {
    padding-top: 0;
    border-top: 0;
}

.nv-facts span {
    color: var(--nv-muted);
}

.nv-facts strong,
.nv-facts a {
    color: var(--nv-ink);
    font-weight: 750;
    text-align: right;
}

.nv-facts a {
    text-decoration: none;
    border-bottom: 1px solid var(--nv-red);
}

.nv-facts a:hover {
    color: var(--nv-red);
}

/* --- Panel de estadísticas del autor --- */

.nv-author-stats {
    padding-top: 26px;
}

.nv-author-stats__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    padding-bottom: 20px;
}

.nv-author-stats__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.nv-author-stats__label {
    margin-right: 2px;
    color: var(--nv-muted);
    font-size: .61rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nv-author-stats__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.nv-stats--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nv-catbars {
    display: grid;
    gap: 12px;
}

.nv-catbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 4px 10px;
}

.nv-catbar__name {
    overflow: hidden;
    color: var(--nv-ink);
    font-size: .82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv-catbar__n {
    color: var(--nv-muted);
    font-size: .78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.nv-catbar__track {
    grid-column: 1 / -1;
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nv-ink) 12%, transparent);
}

.nv-catbar__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--nv-red);
}

/* --- Equipo --- */

.nv-team {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
    padding: 32px 0 8px;
}

@media (min-width: 1081px) {
    .nv-team--sparse {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nv-team__card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding-top: 18px;
    border-top: 3px solid var(--nv-ink);
}

.nv-team__avatar {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--nv-soft);
}

.nv-team__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nv-team__initial {
    color: var(--nv-red);
    font-size: 1.6rem;
    font-weight: 900;
}

.nv-team__name {
    margin: 0;
    color: var(--nv-ink);
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: -.02em;
}

.nv-team__name a {
    color: inherit;
    text-decoration: none;
}

.nv-team__name a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nv-team__role {
    margin: 4px 0 0;
    color: var(--nv-red);
    font-size: .63rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nv-team__bio {
    margin: 0;
    color: var(--nv-muted);
    font-size: .88rem;
    line-height: 1.55;
}

.nv-team__link {
    color: var(--nv-red);
    font-size: .8rem;
    font-weight: 850;
    text-decoration: none;
}

.nv-team__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   Citas destacadas
   ============================================================ */

.nv-citas__filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 22px;
}

.nv-select {
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--nv-line);
    border-radius: 6px;
    background: var(--nv-surface);
    color: var(--nv-ink);
    font: inherit;
    font-size: .9rem;
}

.nv-select:focus {
    outline: none;
    border-color: var(--nv-red);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nv-red) 16%, transparent);
}

.nv-quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
    padding: 28px 0 8px;
}

.nv-quote {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 3px solid var(--nv-ink);
    cursor: pointer;
}

.nv-quote__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nv-quote__avatar {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--nv-soft);
    color: var(--nv-red);
    font-size: .8rem;
    font-weight: 850;
}

.nv-quote__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nv-quote__who {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.nv-quote__who strong {
    overflow: hidden;
    color: var(--nv-ink);
    font-size: .82rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv-quote__who span {
    overflow: hidden;
    color: var(--nv-muted);
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv-quote__text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--nv-ink);
    font-size: 1.04rem;
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: -.01em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.nv-quote__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.nv-quote__source {
    overflow: hidden;
    color: var(--nv-muted);
    font-size: .7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv-quote__open {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--nv-red);
    font: inherit;
    font-size: .78rem;
    font-weight: 850;
    cursor: pointer;
}

.nv-quote__open:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   Informes y documentos
   ============================================================ */

.nv-doc-search {
    display: grid;
    gap: 14px;
    padding-top: 22px;
}

.nv-doc-search .nv-searchbar {
    margin: 0;
}

.nv-doc-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.nv-doc-filters .nv-select {
    min-width: 220px;
}

.nv-page--docs .nv-feed {
    padding-top: 20px;
}

.nv-docs {
    display: grid;
    padding-top: 6px;
}

.nv-doc {
    display: grid;
    gap: 8px;
    padding: 20px 0;
    border-bottom: 1px solid var(--nv-line);
}

.nv-doc:first-child {
    padding-top: 4px;
}

.nv-doc__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.nv-doc__cat {
    color: var(--nv-red);
    font-size: .61rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
}

.nv-doc__cat:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nv-doc__org {
    color: var(--nv-muted);
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.nv-doc time {
    margin-left: auto;
    color: var(--nv-muted);
    font-size: .7rem;
    font-weight: 700;
}

.nv-doc__title {
    margin: 0;
    color: var(--nv-ink);
    font-size: 1.2rem;
    font-weight: 850;
    line-height: 1.22;
    letter-spacing: -.02em;
}

.nv-doc__title a {
    color: inherit;
    text-decoration: none;
}

.nv-doc__title a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nv-doc__summary {
    max-width: 82ch;
    margin: 0;
    color: var(--nv-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.nv-doc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 2px;
    font-size: .76rem;
    font-weight: 800;
}

.nv-doc__actions a {
    color: var(--nv-ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.nv-doc__actions a:hover {
    color: var(--nv-red);
    border-color: var(--nv-red);
}

.nv-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 26px;
}

.nv-pager a,
.nv-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--nv-line);
    border-radius: 999px;
    color: var(--nv-ink);
    font-size: .8rem;
    font-weight: 750;
    text-decoration: none;
}

.nv-pager a:hover {
    border-color: var(--nv-red);
    color: var(--nv-red);
}

.nv-pager .is-current {
    border-color: var(--nv-ink);
    background: var(--nv-ink);
    color: var(--nv-surface);
}

.nv-pager .is-gap {
    border-color: transparent;
    color: var(--nv-muted);
}

/* ============================================================
   Hub de videos
   ============================================================ */

.nv-hero__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.nv-hero__play span {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 50%;
    background: rgba(10, 14, 19, .58);
    color: #fff;
}

.nv-hero__play svg {
    width: 30px;
    height: 30px;
}

.nv-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 14px;
    color: var(--nv-muted);
    font-size: .74rem;
}

.nv-video-meta span {
    color: var(--nv-ink);
    font-weight: 700;
}

/* ============================================================
   Estados y responsive de las páginas nuevas
   ============================================================ */

.nv-empty-state--inline {
    margin-top: 24px;
    padding: 44px 20px;
}

@media (max-width: 1080px) {
    .nv-team {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nv-quotes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nv-author-stats__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .nv-author {
        grid-template-columns: minmax(0, 1fr);
    }

    .nv-author__avatar {
        width: 108px;
        height: 108px;
    }

    .nv-stats--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nv-stats--four .nv-stat:nth-child(odd) {
        border-left: 0;
    }

    .nv-doc time {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .nv-team,
    .nv-quotes {
        grid-template-columns: minmax(0, 1fr);
    }

    .nv-doc__title {
        font-size: 1.08rem;
    }

    .nv-pager a,
    .nv-pager span {
        min-width: 32px;
        height: 32px;
    }
}

/* ============================================================
   Hub de videos — destacado y grilla
   ============================================================ */

.nv-video-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 36px);
    padding: 28px 0;
    border-bottom: 1px solid var(--nv-line);
}

.nv-video-feature__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--nv-radius);
    background: var(--nv-soft);
}

.nv-video-feature__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.nv-video-feature:hover .nv-video-feature__media img {
    transform: scale(1.03);
}

.nv-video-feature__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.nv-video-feature__body h2 {
    margin: 0;
    color: var(--nv-ink);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.nv-video-feature__body h2 a {
    color: inherit;
    text-decoration: none;
}

.nv-video-feature__body h2 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.nv-kicker__label {
    color: var(--nv-red);
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nv-video-feature__body p {
    margin: 0;
    color: var(--nv-muted);
    font-size: .98rem;
    line-height: 1.6;
}

.nv-video-feature__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--nv-red);
    color: var(--nv-ink);
    font-size: .8rem;
    font-weight: 850;
    text-decoration: none;
}

.nv-video-feature__cta:hover {
    color: var(--nv-red);
}

@media (max-width: 900px) {
    .nv-video-feature {
        grid-template-columns: minmax(0, 1fr);
    }
}
