.site-container.content-container:has(.noticias-page-wrapper) {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
}

.noticias-page-wrapper {
    width: 100%;
    padding: 15px 10px;
}

.noticias-page-wrapper .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.noticias-page-wrapper .container-body {
    background-color: var(--white);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* ------------------------------------------------------------
   2. CABECERA DE SECCIÓN
   ------------------------------------------------------------ */

.noticias-page-wrapper .section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue);
    margin-bottom: 12px;
}


.noticias-page-wrapper .page-desc {
    max-width: 600px;
    margin: 16px auto 0;
}

/* ------------------------------------------------------------
   3. LAYOUT DE DOS COLUMNAS (Blog Layout)
   ------------------------------------------------------------ */
.noticias-page-wrapper .blog-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.noticias-page-wrapper .news-main {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.noticias-page-wrapper .news-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ------------------------------------------------------------
   4. LOOP EN GRID (2 COLUMNAS)
   ------------------------------------------------------------ */
.noticias-page-wrapper .news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Tarjeta individual de noticia */
.noticias-page-wrapper .news-card {
    background: var(--white, #ffffff);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border, #e2e8f0);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.noticias-page-wrapper .news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* Contenedor de imagen */
.noticias-page-wrapper .news-card-img {
    position: relative;
    width: 100%;
    height: 200px;
    display: block;
    overflow: hidden;
    background: var(--bg-soft, #f1f5f9);
}

.noticias-page-wrapper .news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.noticias-page-wrapper .news-card:hover .news-card-img img {
    transform: scale(1.05);
}

/* Botón flotante de reproducción para videos (.play-overlay) */
.noticias-page-wrapper .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-deep, #003366);
    font-size: 1.25rem;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.noticias-page-wrapper .news-card:hover .play-overlay {
    background: var(--blue, #0066b3);
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Badge de categoría superpuesto en la imagen (Fiel al prototipo: bottom: 16px, left: 16px) */
.noticias-page-wrapper .news-category {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--blue, #0066b3);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


/* Cuerpo de la tarjeta */
.noticias-page-wrapper .news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.noticias-page-wrapper .news-category-inline-wrap {
    margin-bottom: 12px;
}

.noticias-page-wrapper .news-category-inline {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 100px;
    color: #ffffff;
}

/* Metadatos (Fecha y Autor) */
.noticias-page-wrapper .news-meta {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.noticias-page-wrapper .news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.noticias-page-wrapper .news-meta i {
    color: var(--blue);
}

/* Título de la noticia */
.noticias-page-wrapper .news-title a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 12px;
    line-height: 1.4;
}

.noticias-page-wrapper .news-title a:hover,
.noticias-page-wrapper .news-card:hover .news-title a {
    color: var(--blue);
}

/* Extracto */
.noticias-page-wrapper .news-excerpt {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
    word-break: break-word;
}

/* Botón Leer Más */
.noticias-page-wrapper .news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    align-self: flex-start;
    margin-top: auto;
    transition: gap 0.3s ease, color 0.2s ease;
}

.noticias-page-wrapper .news-read-more:hover {
    gap: 12px;
    color: var(--blue-dark);
}

/* ------------------------------------------------------------
   5. CLASES DE COLORES TEMÁTICOS PARA TAGS (RF-6)
   ------------------------------------------------------------ */
.tag-red {
    background: rgba(239, 68, 68, 0.95) !important;
}

.tag-blue {
    background: rgba(0, 102, 179, 0.95) !important;
}

.tag-green {
    background: rgba(16, 185, 129, 0.95) !important;
}

.tag-cyan {
    background: rgba(14, 192, 200, 0.95) !important;
}

.tag-amber {
    background: rgba(245, 158, 11, 0.95) !important;
}

.tag-purple {
    background: rgba(124, 58, 237, 0.95) !important;
}

.tag-gray {
    background: rgba(100, 116, 139, 0.95) !important;
}

/* ------------------------------------------------------------
   6. BARRA LATERAL (Sidebar Widgets)
   ------------------------------------------------------------ */
.noticias-page-wrapper .sidebar-widget {
    background: var(--white, #ffffff);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border, #e2e8f0);
}

.noticias-page-wrapper .widget-title {
    color: var(--blue-deep, #003366) !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    margin: 0 0 20px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue-light, #e8f4fd);
    position: relative;
}

.noticias-page-wrapper .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--blue, #0066b3);
}

/* Buscador lateral */
.noticias-page-wrapper .widget_search .search-form {
    display: flex;
    width: 100%;
}

.noticias-page-wrapper .widget_search .search-field {

    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px 0 0 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.noticias-page-wrapper .widget_search .search-field:focus {
    background: var(--white);
    box-shadow: 0 0 0 2px rgba(0, 119, 200, 0.12);
}

.noticias-page-wrapper .widget_search .search-submit {
    background: var(--blue) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 0 16px !important;
    border-radius: 0 8px 8px 0 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.noticias-page-wrapper .widget_search .search-submit:hover {
    background: var(--blue-deep, #003366) !important;
}

/* Categorías */
.noticias-page-wrapper .widget_categories ul,
.noticias-page-wrapper .widget_recent_entries ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.noticias-page-wrapper .widget_categories li,
.noticias-page-wrapper .widget_recent_entries li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.noticias-page-wrapper .widget_categories li:last-child,
.noticias-page-wrapper .widget_recent_entries li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.noticias-page-wrapper .widget_categories a {
    color: var(--text);
    text-decoration: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.noticias-page-wrapper .widget_categories a:hover {
    color: var(--blue);
    transform: translateX(3px);
}

.noticias-page-wrapper .widget_categories span {
    color: var(--muted);
}

/* Entradas Recientes */
.noticias-page-wrapper .widget_recent_entries a {
    color: var(--blue-deep) !important;
    text-decoration: none !important;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.noticias-page-wrapper .widget_recent_entries a:hover {
    color: var(--blue) !important;
}

.noticias-page-wrapper .widget_recent_entries .post-date {
    color: var(--muted);
}

/* ------------------------------------------------------------
   7. PAGINACIÓN NUMERADA (Fiel al prototipo)
   ------------------------------------------------------------ */
.noticias-page-wrapper .news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.noticias-page-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--blue-deep);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.noticias-page-wrapper a.page-numbers:not(.dots):not(.current):not(.disabled):hover {
    background: var(--blue-light);
    color: var(--blue-deep);
}

.noticias-page-wrapper .page-numbers.current {
    background: var(--blue) !important;
    color: var(--white) !important;
    border-color: var(--blue) !important;
}

.noticias-page-wrapper .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}

.noticias-page-wrapper .page-numbers.disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* ------------------------------------------------------------
   8. ESTADOS VACÍOS
   ------------------------------------------------------------ */
.epsm-empty-notice {
    padding: 48px 24px;
    text-align: center;
    background: var(--white);
    border-radius: 16px;
    border: 1px dashed var(--border);
    color: var(--text-soft);
    margin: 0 0 30px;
}

.epsm-empty-notice p {
    font-size: 1rem;
    margin: 0 0 12px;
    font-weight: 500;
}

.epsm-empty-notice a.btn-return {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue, #0066b3);
    text-decoration: underline;
}

/* ------------------------------------------------------------
   9. RESPONSIVE DESIGN (Fiel al prototipo)
   ------------------------------------------------------------ */
@media (max-width: 992px) {
    .noticias-page-wrapper .blog-layout {
        flex-direction: column;
        gap: 40px;
    }

    .noticias-page-wrapper .news-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .noticias-page-wrapper .container-body {
        padding: 24px 18px;
    }

    .noticias-page-wrapper .section-head h2 {
        font-size: 1.85rem !important;
    }

    .noticias-page-wrapper .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .noticias-page-wrapper .news-card-img {
        height: 200px;
    }

    .noticias-page-wrapper .news-card-body {
        padding: 20px;
    }
}

/* ------------------------------------------------------------
   10. DETALLE DE NOTICIA INDIVIDUAL (Single Post - Fiel al prototipo)
   ------------------------------------------------------------ */
.noticias-page-wrapper .news-main.single-post {
    background: var(--white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    box-sizing: border-box;
}

.noticias-page-wrapper .post-header {
    margin-bottom: 32px;
}

.noticias-page-wrapper .post-header .news-category-badge {
    display: inline-block;
    background: var(--blue, #0066b3);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 18px;
    text-decoration: none !important;
    transition: background var(--transition, 0.25s ease);
}

.noticias-page-wrapper .post-header .news-category-badge:hover {
    color: #ffffff;
    opacity: 0.9;
}

.noticias-page-wrapper .post-title {
    font-size: 2.35rem;
    color: var(--blue-dark, #004b87);
    margin: 0 0 20px;
    line-height: 1.25;
    font-weight: 800;
    word-break: break-word;
}

.noticias-page-wrapper .post-header .news-meta {
    font-size: 0.95rem;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    display: flex;
    gap: 20px;
    color: var(--muted);
    align-items: center;
    flex-wrap: wrap;
}

.noticias-page-wrapper .post-header .news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.noticias-page-wrapper .post-header .news-meta i {
    color: var(--blue);
}

.noticias-page-wrapper .post-featured-image {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin: 32px 0 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.noticias-page-wrapper .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.noticias-page-wrapper .post-content {
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.8;
}

.noticias-page-wrapper .post-content p {
    margin-bottom: 24px;
}

.noticias-page-wrapper .post-content h2 {
    color: var(--blue-deep);
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 18px;
    line-height: 1.3;
}

.noticias-page-wrapper .post-content h3 {
    color: var(--blue-deep);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.35;
}

.noticias-page-wrapper .post-content blockquote {
    background: var(--blue-soft, #f0f7fc);
    border-left: 4px solid var(--blue);
    padding: 24px 32px;
    margin: 36px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--blue-deep);
    font-size: 1.15rem;
    line-height: 1.6;
}

.noticias-page-wrapper .post-content blockquote strong {
    display: block;
    margin-top: 12px;
    font-size: 0.95rem;
    font-style: normal;
    color: var(--text-soft);
}

.noticias-page-wrapper .post-share {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.noticias-page-wrapper .post-share span {
    font-weight: 700;
    color: var(--blue-deep);
    font-size: 0.95rem;
}

.noticias-page-wrapper .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
}

.noticias-page-wrapper .share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.noticias-page-wrapper .share-btn.fb {
    background: #1877F2;
}

.noticias-page-wrapper .share-btn.tw {
    background: #000000;
}

.noticias-page-wrapper .share-btn.wa {
    background: #25D366;
}

@media (max-width: 768px) {
    .noticias-page-wrapper .news-main.single-post {
        padding: 24px 18px;
    }

    .noticias-page-wrapper .post-title {
        font-size: 1.75rem;
    }

    .noticias-page-wrapper .post-content {
        font-size: 1rem;
        line-height: 1.7;
    }
}