/* Final hover behavior overrides for public widgets. */
.nm-widget-shell.nm-widget-variant-news .nm-tab-button.is-active,
.nm-widget-shell.nm-widget-variant-news .nm-tab-button.is-active:hover,
.nm-widget-shell.nm-widget-variant-news .nm-tab-button.is-active:focus-visible {
    box-shadow: none !important;
}

.nm-widget-shell .nm-news-card:hover,
.nm-widget-shell .nm-tab-button:hover,
.nm-widget-shell .nm-search-button:hover,
.nm-widget-shell .nm-page-link:hover,
.nm-documents-list-link:hover,
.nm-documents-list-section.is-grid-view .nm-documents-list-item:hover,
.nm-documents-visual-card:hover,
.nm-documents-cover-card:hover,
.mwyoutube-card:hover,
.mwyoutube-card.mwyoutube-featured-card:hover,
.mwyoutube-search-button:hover,
.mwyoutube-page-btn:hover {
    transform: none !important;
}

.mwng-shell .mwng-style-magazine .mwng-featured:hover .mwng-card-img,
.mwng-shell .mwng-style-magazine .mwng-secondary:hover .mwng-secondary-img,
.mwng-shell .mwng-style-hero .mwng-hero-card:hover .mwng-card-img,
.mwng-shell .mwng-style-hero .mwng-small-card:hover .mwng-card-img,
.mwng-shell .mwng-style-uniform .mwng-uniform-card:hover .mwng-card-img,
.mwng-shell .mwng-style-grid .mwng-grid-card:hover .mwng-card-img,
.mwng-shell .mwng-style-grid3 .mwng-grid-card:hover .mwng-card-img,
.mwng-shell .mwng-style-hero3 .mwng-hero-card:hover .mwng-card-img,
.mwng-shell .mwng-style-hero3 .mwng-small-card:hover .mwng-card-img,
.mwng-shell .mwng-dot:hover,
.mwyoutube-modal-close:hover {
    transform: none !important;
}

/* Mantiene el hover de las pestañas, pero sin la sombra marcada. */
.nm-widget-shell.nm-widget-variant-news .nm-tab-button:hover {
    box-shadow: 0 2px 6px rgba(15, 39, 78, 0.04) !important;
}

.nm-widget-shell.nm-widget-variant-news .nm-tab-button.is-active,
.nm-widget-shell.nm-widget-variant-news .nm-tab-button.is-active:hover,
.nm-widget-shell.nm-widget-variant-news .nm-tab-button.is-active:focus-visible {
    box-shadow: none !important;
}

.mwyoutube-thumb:hover .mwyoutube-play,
.mwyoutube-thumb:focus-within .mwyoutube-play {
    transform: translate(-50%, -50%) !important;
}

.nm-widget-shell .nm-news-more a::after {
    content: "\f061" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.65em !important;
    height: 1.65em !important;
    margin-left: 0.5em !important;
    border-radius: 999px !important;
    background: rgba(15, 39, 78, 0.08) !important;
    color: currentColor !important;
    font-family: FontAwesome !important;
    font-size: 0.78em !important;
    font-weight: normal !important;
    line-height: 1 !important;
    text-rendering: auto !important;
}
.nm-widget-shell.nm-has-image-zoom .nm-news-image:hover img,
.nm-documents-quick-link:hover,
.nm-documents-featured-link:hover,
.nm-documents-list-link:hover,
.nm-documents-visual-link:hover,
.nm-documents-clear-state:hover,
.nm-documents-view-toggle:hover,
.nm-documents-mobile-sort-trigger:hover,
.nm-documents-mobile-sort-option:hover,
.nm-documents-featured-card:hover .nm-documents-featured-media img,
.nm-documents-cover-card:hover .nm-documents-cover-media img,
.nm-documents-cover-card:hover .nm-documents-cover-media .nm-documents-cover-fallback {
    transform: none !important;
}
.nm-widget-shell.nm-widget-variant-news .nm-search-button:hover,
.nm-widget-shell.nm-widget-variant-documents .nm-search-button:hover,
.nm-widget-shell.nm-taxonomy-stacked-widget .nm-search-button:hover,
.nm-widget-shell.nm-widget-variant-news .nm-tab-button:hover,
.nm-widget-shell.nm-widget-variant-documents .nm-tab-button:hover,
.nm-widget-shell.nm-taxonomy-stacked-widget .nm-tab-button:hover,
.nm-widget-shell.nm-widget-variant-news .nm-page-link:hover,
.nm-widget-shell.nm-widget-variant-documents .nm-page-link:hover,
.nm-widget-shell.nm-taxonomy-stacked-widget .nm-page-link:hover,
.nm-widget-shell.nm-widget-variant-news .nm-layout-grid .nm-news-card:hover,
.nm-widget-shell.nm-widget-variant-news .nm-layout-cards .nm-news-card:hover,
.nm-widget-shell.nm-widget-variant-news .nm-layout-store .nm-news-card:hover,
.nm-widget-shell.nm-widget-variant-documents .nm-news-card:hover,
.nm-widget-shell.nm-taxonomy-stacked-widget .nm-news-card:hover,
.mwyoutube-shell .mwyoutube-search-button:hover,
.mwyoutube-shell .mwyoutube-card:hover,
.mwyoutube-shell .mwyoutube-card.mwyoutube-featured-card:hover,
.mwyoutube-shell .mwyoutube-page-btn:hover {
    transform: none !important;
}

/* Presentación opcional del enlace de noticias como texto plano. */
.nm-widget-shell.nm-widget-variant-news.nm-more-link-text .nm-news-more a {
    display: inline !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--nm-more-link-color, var(--nm-link)) !important;
    font-family: Montserrat, sans-serif !important;
    box-shadow: none !important;
    transform: none !important;
}

.nm-widget-shell.nm-widget-variant-news.nm-more-link-text .nm-news-more a::after {
    content: "\f178" !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin-left: 0.35em !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: currentColor !important;
    font-family: FontAwesome !important;
    font-size: 0.9em !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.nm-widget-shell.nm-widget-variant-news .nm-news-meta {
    font-family: 'Work Sans', sans-serif !important;
    transform: none !important;
}

/* Buscador de Noticias compacto y con radio uniforme. */
.nm-widget-shell.nm-widget-variant-news .nm-search-input {
    height: 52px !important;
    min-height: 52px !important;
    padding: 10px 60px 10px 16px !important;
    border-radius: 8px !important;
}

.nm-widget-shell.nm-widget-variant-news .nm-search-button {
    top: 6px !important;
    right: 8px !important;
}

/* Tipografías y tamaños independientes por elemento. */
.nm-widget-shell.nm-widget-variant-news.nm-title-font-worksans .nm-news-title,
.nm-widget-shell.nm-widget-variant-news.nm-excerpt-font-worksans .nm-news-excerpt,
.nm-widget-shell.nm-widget-variant-news.nm-more-font-worksans .nm-news-more a {
    font-family: 'Work Sans', sans-serif !important;
}

.nm-widget-shell.nm-widget-variant-news.nm-title-font-montserrat .nm-news-title,
.nm-widget-shell.nm-widget-variant-news.nm-excerpt-font-montserrat .nm-news-excerpt,
.nm-widget-shell.nm-widget-variant-news.nm-more-font-montserrat .nm-news-more a {
    font-family: Montserrat, sans-serif !important;
}

.nm-widget-shell.nm-widget-variant-news.nm-title-font-newsreader .nm-news-title,
.nm-widget-shell.nm-widget-variant-news.nm-excerpt-font-newsreader .nm-news-excerpt,
.nm-widget-shell.nm-widget-variant-news.nm-more-font-newsreader .nm-news-more a {
    font-family: Newsreader, Georgia, serif !important;
}

.nm-widget-shell.nm-widget-variant-news.nm-title-font-system .nm-news-title,
.nm-widget-shell.nm-widget-variant-news.nm-excerpt-font-system .nm-news-excerpt,
.nm-widget-shell.nm-widget-variant-news.nm-more-font-system .nm-news-more a {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}

.nm-widget-shell.nm-widget-variant-news .nm-news-title {
    font-size: var(--nm-title-size) !important;
}

.nm-widget-shell.nm-widget-variant-news .nm-news-excerpt {
    font-size: var(--nm-excerpt-size) !important;
}

.nm-widget-shell.nm-widget-variant-news .nm-news-more a,
.nm-widget-shell.nm-widget-variant-news.nm-more-link-text .nm-news-more a {
    font-size: var(--nm-more-size) !important;
}

.nm-widget-shell.nm-widget-variant-news .nm-news-more a::after,
.nm-widget-shell.nm-widget-variant-news .nm-layout-grid .nm-news-more a::after,
.nm-widget-shell.nm-widget-variant-news .nm-layout-cards .nm-news-more a::after,
.nm-widget-shell.nm-widget-variant-news .nm-layout-store .nm-news-more a::after,
.nm-widget-shell.nm-widget-variant-documents .nm-news-more a::after,
.nm-widget-shell.nm-taxonomy-stacked-widget .nm-news-more a::after {
    content: "\f061" !important;
    font-family: FontAwesome !important;
}

/* Flecha ligera del enlace "Ver más"; no modifica su texto. */
.nm-widget-shell.nm-widget-variant-news .nm-news-more a::after {
    content: "\f178" !important;
    font-family: FontAwesome !important;
    font-size: 0.9em !important;
    font-weight: 400 !important;
}

/* Paginador estable: la tipografía del contenido no cambia sus medidas. */
.nm-widget-shell.nm-widget-variant-news .nm-pagination,
.nm-widget-shell.nm-widget-variant-news .nm-pagination *,
.nm-widget-shell.nm-widget-variant-documents .nm-pagination,
.nm-widget-shell.nm-widget-variant-documents .nm-pagination * {
    font-family: 'Work Sans', sans-serif !important;
}

/* Flechas compactas y livianas, iguales en ambos paginadores. */
.nm-widget-shell.nm-widget-variant-news .nm-page-icon,
.nm-widget-shell.nm-widget-variant-documents .nm-page-icon {
    font-size: 16px !important;
    font-weight: 400 !important;
}

.nm-widget-shell.nm-widget-variant-news .nm-pagination {
    gap: 12px !important;
}

.nm-widget-shell.nm-widget-variant-news .nm-pagination-controls {
    gap: 8px !important;
}

.nm-widget-shell.nm-widget-variant-news .nm-pagination-pages {
    gap: 8px !important;
}

/* Buscador de Información y Documentos alineado con el de Noticias. */
.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-container {
    max-width: var(--nm-content-width) !important;
    margin: 0 auto 24px !important;
    display: block !important;
    padding-bottom: 0 !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-input {
    height: 52px !important;
    min-height: 52px !important;
    padding: 10px 60px 10px 16px !important;
    border-radius: 8px !important;
    border: 1px solid #d8e2ee !important;
    background: #ffffff !important;
    color: #78869a !important;
    box-shadow: 0 8px 22px rgba(15, 39, 78, 0.045) !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-button {
    top: 6px !important;
    right: 8px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #9aa7b9 !important;
    box-shadow: none !important;
    gap: 0 !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-button:hover {
    background: rgba(15, 39, 78, 0.05) !important;
    color: #486383 !important;
    transform: none !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-button-label {
    display: none !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-button-icon,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-button-icon svg {
    width: 20px !important;
    height: 20px !important;
}

/* Vista "Listado": compacta y orientada a mostrar más información. */
.nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-layout-documents_list.is-list-view .nm-documents-list-grid {
    row-gap: 0 !important;
    column-gap: 28px !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-layout-documents_list.is-list-view .nm-documents-list-item {
    gap: 8px !important;
    min-height: 0 !important;
    padding: 8px 0 9px !important;
    border-bottom: 0 !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-layout-documents_list.is-list-view .nm-documents-list-icon {
    width: 8px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    height: 8px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    margin-top: 5px !important;
    border-radius: 50% !important;
    background: #a4a4a4 !important;
    color: transparent !important;
    font-size: 0 !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-layout-documents_list.is-list-view .nm-documents-list-icon i {
    display: none !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-list-view .nm-documents-list-icon {
    box-sizing: border-box !important;
    display: block !important;
    flex: 0 0 8px !important;
    width: 8px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    height: 8px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    margin: 5px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #a4a4a4 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-list-view .nm-documents-list-icon::before,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-list-view .nm-documents-list-icon::after {
    display: none !important;
    content: none !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-list-view .nm-documents-list-icon i {
    display: none !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-layout-documents_list.is-list-view .nm-documents-list-body {
    gap: 2px !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-layout-documents_list.is-list-view .nm-documents-list-title {
    font-size: 15px !important;
    line-height: 1.16 !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-layout-documents_list.is-list-view .nm-documents-list-excerpt {
    font-size: 12px !important;
    line-height: 1.25 !important;
}

/* Overlay durante cambios de categoría y paginación. */
.nm-widget-shell.nm-widget-variant-documents .nm-documents-visual-copy,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-cover-copy {
    isolation: isolate !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-cover-copy {
    position: relative !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-visual-copy::before,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-cover-copy::before {
    content: '' !important;
    position: absolute !important;
    z-index: -1 !important;
    inset: -12px -14px -10px !important;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.24) 28%,
        rgba(0, 0, 0, 0.86) 100%
    ) !important;
    pointer-events: none !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-visual-title,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-cover-title {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.82), 0 6px 16px rgba(0, 0, 0, 0.58) !important;
}

.nm-widget-shell.nm-widget-variant-documents:not(.nm-uppercase-titles) .nm-documents-visual-title,
.nm-widget-shell.nm-widget-variant-documents:not(.nm-uppercase-titles) .nm-documents-cover-title,
.nm-widget-shell.nm-widget-variant-documents:not(.nm-uppercase-titles) .nm-documents-flipbook-fallback-title {
    text-transform: none !important;
}

.nm-widget-shell.nm-uppercase-titles.nm-widget-variant-news .nm-news-title,
.nm-widget-shell.nm-uppercase-titles.nm-widget-variant-news .nm-news-title a,
.nm-widget-shell.nm-uppercase-titles.nm-widget-variant-documents .nm-documents-list-title,
.nm-widget-shell.nm-uppercase-titles.nm-widget-variant-documents .nm-documents-list-title a,
.nm-widget-shell.nm-uppercase-titles.nm-widget-variant-documents .nm-documents-featured-title,
.nm-widget-shell.nm-uppercase-titles.nm-widget-variant-documents .nm-documents-featured-title a,
.nm-widget-shell.nm-uppercase-titles.nm-widget-variant-documents .nm-documents-visual-title,
.nm-widget-shell.nm-uppercase-titles.nm-widget-variant-documents .nm-documents-cover-title,
.nm-widget-shell.nm-uppercase-titles.nm-widget-variant-documents .nm-documents-flipbook-title,
.nm-widget-shell.nm-uppercase-titles.nm-widget-variant-documents .nm-documents-flipbook-fallback-title {
    text-transform: uppercase !important;
}

.nm-widget-shell .nm-widget-results.is-content-loading-overlay::before {
    content: '' !important;
    position: fixed !important;
    z-index: 99990 !important;
    inset: 0 !important;
    background: rgba(20, 26, 34, 0.72) !important;
    pointer-events: all !important;
}

.nm-widget-shell .nm-widget-results.is-content-loading-overlay::after {
    content: '' !important;
    position: fixed !important;
    z-index: 99991 !important;
    top: 50% !important;
    left: 50% !important;
    width: 3rem !important;
    height: 3rem !important;
    margin: -1.5rem 0 0 -1.5rem !important;
    border: 0.25em solid rgba(255, 255, 255, 0.42) !important;
    border-right-color: transparent !important;
    border-radius: 50% !important;
    animation: mw-pagination-spinner 0.75s linear infinite !important;
    pointer-events: none !important;
}

/* Spinner compatible con el estilo Bootstrap, sin cargar Bootstrap completo. */
@keyframes mw-pagination-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Barra lateral de Documentos con apariencia de navegaciÃ³n compacta. */
@media (min-width: 1025px) {
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-layout.has-sidebar {
        grid-template-columns: minmax(220px, 248px) minmax(0, 1fr) !important;
        gap: 28px !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block {
        gap: 0 !important;
        padding: 14px 10px 16px !important;
        border: 1px solid #e4e8eb !important;
        border-radius: 6px !important;
        background: #f8fafb !important;
        box-shadow: 0 8px 22px rgba(24, 34, 44, 0.05) !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-category-shortcuts {
        gap: 0 !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-label-shortcuts,
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-date-filters > .nm-documents-filters-label {
        display: flex !important;
        align-items: center !important;
        min-height: 30px !important;
        padding: 4px 10px 6px !important;
        color: #8b929a !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.06em !important;
        text-transform: uppercase !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-widget-tabs,
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-widget-tabs-track {
        margin: 0 !important;
        padding: 0 !important;
        gap: 2px !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 38px !important;
        height: auto !important;
        padding: 8px 10px !important;
        border: 0 !important;
        border-radius: 7px !important;
        background: transparent !important;
        color: #303842 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        line-height: 1.2 !important;
        box-shadow: none !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button:hover,
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button:focus-visible {
        background: #eef1f4 !important;
        color: #1d252d !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button.is-active {
        background: #eceff2 !important;
        color: #11171d !important;
        box-shadow: none !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button-label {
        display: grid !important;
        grid-template-columns: 20px minmax(0, 1fr) !important;
        width: 100% !important;
        gap: 10px !important;
        min-width: 0 !important;
        align-items: center !important;
        justify-content: initial !important;
        text-align: left !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button-label-text {
        min-width: 0 !important;
        text-align: left !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button-icon {
        width: 20px !important;
        color: #4b5661 !important;
        font-size: 15px !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button-count {
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        padding: 0 2px !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #6f7881 !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button-child {
        padding-left: 10px !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-date-filters {
        gap: 8px !important;
        margin-top: 14px !important;
        padding: 14px 0 0 !important;
        border-top: 1px solid #e1e5e8 !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-date-fields {
        gap: 8px !important;
        padding: 0 10px !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-date-field {
        gap: 4px !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-date-field span {
        color: #303842 !important;
        font-size: 11px !important;
        font-weight: 600 !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-date-filter-input {
        min-height: 36px !important;
        padding: 7px 9px !important;
        border-color: #dfe4e8 !important;
        border-radius: 6px !important;
        color: #303842 !important;
        font-size: 12px !important;
        font-weight: 500 !important;
    }
}

/* Mantiene en el panel móvil la misma navegación neutra del sidebar web. */
@media (max-width: 1024px) {
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block {
        border-radius: 4px !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-documents-filters-label-shortcuts,
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-documents-date-filters > .nm-documents-filters-label {
        color: #8b929a !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.06em !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button {
        min-height: 44px !important;
        padding: 10px 12px !important;
        border: 0 !important;
        border-radius: 4px !important;
        background: transparent !important;
        color: #303842 !important;
        font-family: inherit !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        line-height: 1.2 !important;
        box-shadow: none !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button:hover,
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button:focus-visible {
        border: 0 !important;
        background: #eef1f4 !important;
        color: #1d252d !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button.is-active,
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button.is-active:hover {
        border: 0 !important;
        background: #eceff2 !important;
        color: #11171d !important;
        box-shadow: none !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button-label {
        display: grid !important;
        grid-template-columns: 20px minmax(0, 1fr) !important;
        align-items: center !important;
        justify-content: initial !important;
        gap: 10px !important;
        text-align: left !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button-label-text {
        text-align: left !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button-icon {
        width: 20px !important;
        color: #4b5661 !important;
        font-size: 15px !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button-count {
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        padding: 0 2px !important;
        border-radius: 4px !important;
        background: transparent !important;
        color: #6f7881 !important;
        font-size: 12px !important;
        font-weight: 500 !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-filters-block .nm-tab-button.is-active .nm-tab-button-count {
        background: transparent !important;
        color: #6f7881 !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-sidebar .nm-documents-mobile-filters-dismiss,
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-sidebar .nm-date-filter-input {
        border-radius: 4px !important;
    }
}

/* En teléfonos, la lista de documentos ocupa el ancho del widget y una columna. */
@media (max-width: 760px) {
    .nm-widget-shell.nm-widget-variant-documents,
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-layout,
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-main,
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-controls,
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-results,
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-layout.has-sidebar {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-layout-documents_list .nm-documents-list-grid {
        width: 100% !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-layout-documents_list .nm-documents-list-item,
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-list-section.is-layout-documents_list .nm-documents-list-body {
        min-width: 0 !important;
    }

    /* Evita que el color hover de escritorio quede pegado tras tocar un enlace. */
    .nm-widget-shell.nm-widget-variant-documents .nm-documents-list-title a:hover {
        color: #1b2d21 !important;
    }
}

/* Controles de documentos compactos: menos alto y pildoras mas cercanas. */
.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls {
    gap: 4px !important;
    margin-bottom: 12px !important;
    padding: 18px 16px 8px !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-container {
    gap: 0 !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-loading {
    bottom: -9px !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-quick-links {
    gap: 4px !important;
    margin-top: -4px !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-quick-link {
    min-height: 28px !important;
    padding: 0 12px !important;
}

/* Buscador de documentos sin encabezado y con etiqueta flotante. */
.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls-heading {
    display: none !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-container {
    position: relative !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-floating-label {
    position: absolute !important;
    top: 0 !important;
    left: 16px !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    height: 52px !important;
    max-width: calc(100% - 76px) !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #78869a !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    pointer-events: none !important;
    transform: none !important;
    transition: top 160ms ease, transform 160ms ease, font-size 160ms ease, color 160ms ease, background-color 160ms ease, padding 160ms ease !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-input:focus + .nm-search-floating-label,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-controls .nm-search-input:not(:placeholder-shown) + .nm-search-floating-label {
    top: -18px !important;
    display: block !important;
    height: auto !important;
    padding: 0 !important;
    color: #55657c !important;
    font-size: 14px !important;
    background: transparent !important;
    transform: none !important;
}

/* Acerca la X nativa a la lupa en los buscadores principales. */
@supports selector(input.nm-search-input::-webkit-search-cancel-button) {
    .nm-widget-shell.nm-widget-variant-news .nm-search-input,
    .nm-widget-shell.nm-widget-variant-documents .nm-search-input {
        padding-right: 52px !important;
    }

    .nm-widget-shell.nm-widget-variant-news .nm-search-clear,
    .nm-widget-shell.nm-widget-variant-documents .nm-search-clear {
        display: none !important;
    }

    .nm-widget-shell.nm-widget-variant-news .nm-search-input::-webkit-search-cancel-button,
    .nm-widget-shell.nm-widget-variant-documents .nm-search-input::-webkit-search-cancel-button {
        -webkit-appearance: none !important;
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
        opacity: 1 !important;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%230d6efd' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
        cursor: pointer !important;
    }

    .nm-widget-shell.nm-widget-variant-news .nm-search-input:placeholder-shown::-webkit-search-cancel-button,
    .nm-widget-shell.nm-widget-variant-documents .nm-search-input:placeholder-shown::-webkit-search-cancel-button {
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Cierre del panel móvil: solo deja visible la X, sin borde ni fondo. */
.nm-widget-shell.nm-widget-variant-documents .nm-documents-sidebar .nm-documents-mobile-filters-dismiss,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-sidebar .nm-documents-mobile-filters-dismiss:hover,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-sidebar .nm-documents-mobile-filters-dismiss:focus,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-sidebar .nm-documents-mobile-filters-dismiss:focus-visible,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-sidebar .nm-documents-mobile-filters-dismiss:active {
    border: 0 !important;
    background: transparent !important;
    color: #556858 !important;
    box-shadow: none !important;
    outline: none !important;
}

.nm-widget-shell .nm-search-container {
    position: relative !important;
}

.nm-widget-shell .nm-search-loading.is-search-notice {
    color: #dc3545 !important;
    opacity: 1 !important;
    transition: opacity 220ms ease !important;
}

/* Submenú de ordenamiento: esquinas compactas y selección igual al estado activo de categorías. */
.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-sort-menu {
    border-radius: 4px !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-sort-option,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-sort-option:hover,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-sort-option:focus-visible,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-sort-option.is-active {
    border-radius: 4px !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-sort-option.is-active {
    background: #eceff2 !important;
    color: #11171d !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-sort-option:hover,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-sort-option:focus-visible {
    background: #eef1f4 !important;
    color: #1d252d !important;
}

/* Panel lateral de documentos en formato acordeón, manteniendo sus textos y controles. */
.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-section {
    display: block !important;
    gap: 0 !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 36px !important;
    padding: 8px 10px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: #8b929a !important;
    text-align: left !important;
    box-shadow: none !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-trigger:hover,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-trigger:focus-visible {
    background: #eef1f4 !important;
    color: #303842 !important;
    outline: none !important;
    box-shadow: none !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-trigger .nm-documents-filters-label {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-icon {
    width: 8px !important;
    height: 8px !important;
    margin: -4px 2px 0 12px !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    transform: rotate(45deg) !important;
    transition: transform 160ms ease !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-section.is-open > .nm-documents-accordion-trigger .nm-documents-accordion-icon {
    margin-top: 4px !important;
    transform: rotate(225deg) !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-content {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    padding-top: 0 !important;
    transition: max-height 260ms ease, opacity 180ms ease, padding-top 260ms ease, visibility 0s linear 260ms !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-section.is-open > .nm-documents-accordion-content {
    max-height: 3000px !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding-top: 4px !important;
    transition: max-height 320ms ease, opacity 180ms ease, padding-top 320ms ease, visibility 0s linear !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-category-shortcuts .nm-documents-accordion-content {
    padding-top: 0 !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-date-filters .nm-documents-accordion-content {
    padding-top: 0 !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-documents-category-shortcuts.is-open > .nm-documents-accordion-content,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-date-filters.is-open > .nm-documents-accordion-content {
    padding-top: 4px !important;
}

/* El encabezado del acordeón no representa una categoría seleccionada. */
.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-trigger:hover,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-trigger:focus,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-trigger:focus-visible {
    background: transparent !important;
    color: #8b929a !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Destacados usa el mismo tono neutro del panel lateral. */
.nm-widget-shell.nm-widget-variant-documents .nm-documents-inline-featured-label {
    color: #55657c !important;
}

/* La fecha vacia usa el marcador visual dd/mm/aaaa sobre el selector nativo. */
.nm-widget-shell.nm-widget-variant-documents .nm-date-filter-control:not(.has-value) .nm-date-filter-input {
    color: transparent !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-date-filter-control:not(.has-value) .nm-date-filter-input::-webkit-datetime-edit {
    color: transparent !important;
}

.nm-widget-shell.nm-widget-variant-documents .nm-date-filter-control .nm-date-filter-placeholder {
    left: 14px !important;
    color: #314538 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Evita el contorno negro del navegador al activar botones del widget. */
.nm-widget-shell.nm-widget-variant-documents .nm-tab-button:focus,
.nm-widget-shell.nm-widget-variant-documents .nm-tab-button:focus-visible,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-trigger:focus,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-accordion-trigger:focus-visible,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-filters-dismiss:focus,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-filters-dismiss:focus-visible,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-sort-trigger:focus,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-sort-trigger:focus-visible,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-sort-option:focus,
.nm-widget-shell.nm-widget-variant-documents .nm-documents-mobile-sort-option:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 1024px) {
    .nm-widget-shell.nm-widget-variant-documents .nm-date-filter-control .nm-date-filter-placeholder {
        left: 9px !important;
        font-size: 12px !important;
    }
}
/* Formato general de las etiquetas de categorías y controles del carrusel. */
.nm-widget-shell.nm-category-label-case-uppercase .nm-widget-tabs .nm-tab-button-label-text {
    text-transform: uppercase !important;
}

.nm-widget-shell.nm-category-label-case-lowercase .nm-widget-tabs .nm-tab-button-label-text {
    text-transform: lowercase !important;
}

.nm-widget-shell.nm-featured-nav-hide .nm-documents-featured-navs,
.nm-widget-shell.nm-featured-nav-hide .nm-documents-sidebar-featured-controls {
    display: none !important;
}

/* Mantiene la etiqueta del buscador por encima del borde también al escribir. */
