/* ============================================================
   SECCIÓN: ÚLTIMAS NOTICIAS - EPS MARAÑÓN
   ============================================================ */

.epsm-noticias-wrapper {
    width: 100%;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   1. GRID LAYOUT DE NOTICIAS (Destacada + Lista lateral)
   ------------------------------------------------------------ */
.news-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
}

/* ------------------------------------------------------------
   2. NOTICIA DESTACADA (Principal izquierda)
   ------------------------------------------------------------ */
.news-featured {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.news-featured:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.news-featured-img {
    display: block;
    height: 280px;
    position: relative;
    overflow: hidden;
    background: var(--bg-soft);
}

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

.news-featured:hover .news-featured-img img {
    transform: scale(1.05);
}

.news-featured-body {
    padding: 28px;
}

.news-featured-body time {
    font-size: 0.82rem;
    color: var(--muted, #64748b);
    font-weight: 500;
    display: block;
}

.epsm-noticias-wrapper .news-featured-body h3 {
    margin-bottom: 12px !important;
}

.epsm-noticias-wrapper .news-featured-body h3 a {
    font-size: 1.35rem;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 10px 0 12px;
    color: var(--text);
    transition: color 0.2s ease;
    word-break: break-word;
    text-decoration: none !important;
}

/*
.epsm-noticias-wrapper .news-featured:hover .news-featured-body h3,
.epsm-noticias-wrapper .news-featured:hover .news-featured-body h3 a,
.epsm-noticias-wrapper .news-featured-body h3 a:hover {
    color: var(--blue, #0066b3) !important;
}*/

.epsm-noticias-wrapper .news-featured-body p {
    font-size: 0.95rem !important;
    color: var(--muted) !important;
    line-height: 1.65 !important;
    margin-bottom: 20px;
    word-break: break-word;
}

.epsm-noticias-wrapper .news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue) !important;
    text-decoration: none !important;
    transition: color var(--transition, 0.25s ease);
}

.epsm-noticias-wrapper .news-readmore i {
    transition: transform var(--transition, 0.25s ease);
}

.epsm-noticias-wrapper .news-featured:hover .news-readmore i {
    transform: translateX(4px);
}

.news-featured-tag-wrap {
    margin-bottom: 16px;
}

/* ------------------------------------------------------------
   3. COLUMNA DERECHA: NOTICIAS SECUNDARIAS
   ------------------------------------------------------------ */
.epsm-noticias-wrapper .news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.epsm-noticias-wrapper .news-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    transition: all var(--transition);
    position: relative;
}

.epsm-noticias-wrapper .news-item:hover {
    border-color: var(--blue-light);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.epsm-noticias-wrapper .news-item time {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
}

.epsm-noticias-wrapper .news-item h3 {
    line-height: 1;
}

.epsm-noticias-wrapper .news-item h3 a {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 6px 0 10px;
    color: var(--text);
    transition: color 0.2s ease;
    word-break: break-word;
}


.epsm-noticias-wrapper .news-item:hover h3,
.epsm-noticias-wrapper .news-item:hover h3 a,
.epsm-noticias-wrapper .news-item h3 a:hover {
    color: var(--blue) !important;
}

/* ------------------------------------------------------------
   4. ETIQUETAS DE CATEGORÍA Y COLORES TEMÁTICOS (RF-10)
   ------------------------------------------------------------ */
.news-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 100px;
    color: var(--white, #ffffff);
    z-index: 2;
}

.news-tag-inline {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 100px;
    color: var(--white, #ffffff);
}

/* Clases de colores temáticos */
.tag-red {
    background: rgba(239, 68, 68, 0.95);
}

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

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

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

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

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

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

/* ------------------------------------------------------------
   5. ESTADOS VACÍOS
   ------------------------------------------------------------ */
.epsm-noticias-wrapper .epsm-empty-notice {
    padding: 48px 24px;
    text-align: center;
    background: var(--white, #ffffff);
    border-radius: var(--radius-md, 16px);
    border: 1px dashed var(--border, #e2e8f0);
    color: var(--text-soft, #334155);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* ------------------------------------------------------------
   6. RESPONSIVE DESIGN (Fiel a @media (max-width: 768px) del prototipo)
   ------------------------------------------------------------ */
@media (max-width: 960px) {
    .news-layout {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-featured-img {
        height: 220px;
    }

    .news-featured-body {
        padding: 20px;
    }

    .news-item {
        padding: 16px 18px;
    }
}