/**
 * Estilos: MinCiencia Noticias Destacadas
 * Maquetación de Noticia Destacada a la izquierda y 5 noticias a la derecha.
 */

:root {
    --mc-nd-primary: #3053F9;
    --mc-nd-primary-hover: #112EB8;
    --mc-nd-accent-teal: #C4EEC6;
    --mc-nd-accent-teal-btn: #C4EEC6;
    --mc-nd-accent-teal-hover: #7FD982;




    --mc-nd-dark: #374151;
    --mc-nd-text: #374151;


    --mc-nd-muted: #64748b;
    --mc-nd-border: #D1D5DB;
    --mc-nd-border-hover: #D1D5DB;
    --mc-nd-card-bg: #ffffff;
    --mc-nd-tag-cat-bg: #E0F7FF;
    --mc-nd-tag-cat-text: #374151;
    --mc-nd-tag-reg-bg: #F3E8FF;
    --mc-nd-tag-reg-text: #374151;
    --mc-nd-radius-lg: 12px;
    --mc-nd-radius-md: 10px;
    --mc-nd-radius-sm: 8px;
    --mc-nd-font-family: inherit;
}

.mc-noticias-section {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--mc-nd-font-family);
    box-sizing: border-box;
}

.mc-noticias-section *,
.mc-noticias-section *::before,
.mc-noticias-section *::after {
    box-sizing: border-box;
}

.mc-noticias-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mc-noticias-grid {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    gap: 28px;
    align-items: start;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* ══════════════════════════════════════════════
   ENCABEZADO DE SECCIÓN
═══════════════════════════════════════════════ */
.mc-noticias-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 20px;
}

.mc-noticias-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Barra multicolor superior */
.mc-noticias-flag-bar {
    display: inline-flex;
    height: 4px;
    width: 54px;
    border-radius: 3px;
    overflow: hidden;
}

.mc-noticias-flag-bar .mc-bar-seg {
    height: 100%;
    flex: 1;
}

.mc-noticias-flag-bar .mc-bar-blue {
    background-color: #2563eb;
}

.mc-noticias-flag-bar .mc-bar-cyan {
    background-color: #93c5fd;
}

.mc-noticias-flag-bar .mc-bar-pink {
    background-color: #fca5a5;
}

.mc-noticias-flag-bar .mc-bar-red {
    background-color: #ef4444;
}

.mc-noticias-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--mc-nd-dark);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Botón "Ver todas las noticias" */
.mc-noticias-btn-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--mc-nd-primary);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 22px;
    border-radius: var(--mc-nd-radius-sm);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(80, 70, 229, 0.2);
    white-space: nowrap;
}

.mc-noticias-btn-all:hover,
.mc-noticias-btn-all:focus-visible {
    background-color: var(--mc-nd-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(80, 70, 229, 0.3);
}

.mc-noticias-btn-all svg {
    transition: transform 0.2s ease;
}

.mc-noticias-btn-all:hover svg {
    transform: translateX(3px);
}


/* ══════════════════════════════════════════════
   COLUMNA IZQUIERDA: NOTICIA DESTACADA
═══════════════════════════════════════════════ */
.mc-col-featured {
    width: 100%;
}

.mc-featured-card {
    display: flex;
    flex-direction: column;
}

.mc-featured-media {
    position: relative;
    width: 100%;
    height: 302px !important;
    border-radius: var(--mc-nd-radius-lg);
    overflow: hidden;
    background-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mc-featured-media a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.mc-featured-card:hover .mc-featured-media img {
    transform: scale(1.025);
}

.mc-featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: rgba(255, 255, 255, 0.4);
}

/* Badge "Destacada" */
.mc-badge-destacada {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: rgba(30, 41, 59, 0.92);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    pointer-events: none;
    letter-spacing: 0.02em;
    z-index: 2;
}

.mc-featured-content {
    padding-top: 16px;
}

/* Tags de categoría y región */
.mc-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.mc-tag {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    line-height: 1.3;
    display: inline-block;
}

.mc-tag-cat {
    background-color: var(--mc-nd-tag-cat-bg);
    color: var(--mc-nd-tag-cat-text);
}

.mc-tag-region {
    background-color: var(--mc-nd-tag-reg-bg);
    color: var(--mc-nd-tag-reg-text);
}

/* Fecha con icono */
.mc-news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mc-nd-muted);
    margin-bottom: 10px;
}

.mc-icon-cal {
    color: var(--mc-nd-muted);
    flex-shrink: 0;
}

.mc-featured-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--mc-nd-dark);
    margin: 0 0 10px 0;
}

.mc-featured-title a {
    color: var(--mc-nd-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mc-featured-title a:hover {
    color: var(--mc-nd-primary);
}

.mc-featured-excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--mc-nd-text);
    margin: 0 0 18px 0;
}

/* Botón "Leer noticia" */
.mc-featured-action {
    display: flex;
    width: 100%;
}

.mc-btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 55px;
    gap: 30px;
    background-color: var(--mc-nd-primary);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 18px;
    padding: 0 24px;
    border-radius: var(--mc-nd-radius-sm);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(80, 70, 229, 0.15);
    box-sizing: border-box;
}

.mc-btn-primary:hover,
.mc-btn-primary:focus-visible {
    background-color: var(--mc-nd-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(80, 70, 229, 0.25);
}

.mc-btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.mc-btn-primary:hover svg {
    transform: translateX(4px);
}

/* ══════════════════════════════════════════════
   COLUMNA DERECHA: ÚLTIMAS 5 NOTICIAS
═══════════════════════════════════════════════ */
.mc-col-list {
    width: 100%;
}

.mc-news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mc-list-item {
    background-color: var(--mc-nd-card-bg);
    border: 1px solid var(--mc-nd-border);
    border-radius: var(--mc-nd-radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.mc-list-item:hover {
    border-color: var(--mc-nd-border-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.mc-item-thumb {
    width: 108px;
    height: 72px;
    min-width: 108px;
    border-radius: var(--mc-nd-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f1f5f9;
}

.mc-item-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.mc-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mc-list-item:hover .mc-item-thumb img {
    transform: scale(1.04);
}

.mc-item-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e2e8f0;
    color: #94a3b8;
}

.mc-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mc-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--mc-nd-dark);
    margin: 0 0 6px 0;
}

.mc-item-title a {
    color: var(--mc-nd-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.mc-item-title a:hover {
    color: var(--mc-nd-accent-teal-hover);
}

.mc-item-info .mc-news-date {
    font-size: 12px;
    margin-bottom: 0;
}

/* Botón "Leer >" verde / teal */
.mc-item-action {
    flex-shrink: 0;
}

.mc-btn-item-leer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--mc-nd-accent-teal-btn);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: var(--mc-nd-radius-sm);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.mc-btn-item-leer:hover,
.mc-btn-item-leer:focus-visible {
    background-color: var(--mc-nd-accent-teal-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(38, 198, 149, 0.3);
}

.mc-btn-item-leer svg {
    transition: transform 0.2s ease;
}

.mc-btn-item-leer:hover svg {
    transform: translateX(2px);
}

.mc-no-news {
    color: var(--mc-nd-muted);
    font-size: 14px;
    font-style: italic;
    padding: 20px 0;
}

/* ══════════════════════════════════════════════
   RESPONSIVE / MEDIA QUERIES
═══════════════════════════════════════════════ */
@media (max-width: 992px) {
    .mc-noticias-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .mc-featured-media {
        aspect-ratio: 16 / 9;
        max-height: 380px;
    }
}

@media (max-width: 640px) {
    .mc-noticias-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .mc-noticias-btn-all {
        width: 100%;
        justify-content: center;
    }

    .mc-noticias-title {
        font-size: 26px;
    }

    .mc-featured-title {
        font-size: 17px;
    }

    .mc-list-item {
        padding: 10px 12px;
        gap: 12px;
    }

    .mc-item-thumb {
        width: 86px;
        height: 60px;
        min-width: 86px;
    }

    .mc-item-title {
        font-size: 13px;
    }

    .mc-btn-item-leer {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ══════════════════════════════════════════════
   DETALLE DE NOTICIA: FORMATO EDITORIAL 2 COLUMNAS
   (SHORTCODE [minciencia_detalle_noticia])
═══════════════════════════════════════════════ */
.mc-news-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
    margin: 24px 0 48px 0;
    box-sizing: border-box;
    font-family: var(--mc-nd-font-family);
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
}

.mc-news-detail-container *,
.mc-news-detail-container *::before,
.mc-news-detail-container *::after {
    box-sizing: border-box;
}

/* COLUMNA IZQUIERDA */
.mc-news-detail-left {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mc-news-detail-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f1f5f9;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.mc-news-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Pastillas / Tags */
.mc-news-detail-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    margin-bottom: 12px;
}

.mc-news-detail-tags .mc-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    padding: 5px 14px;
    border-radius: 4px;
}

.mc-tag-mint {
    background-color: #c4eec6 !important;
    color: #1e3a29 !important;
}

.mc-tag-sky {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}

/* Fecha con Icono */
.mc-news-detail-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 18px;
}

.mc-news-detail-date .mc-icon-calendar {
    color: #475569;
    flex-shrink: 0;
}

/* Bajada / Lead de Columna Izquierda */
.mc-news-detail-lead {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

.mc-news-detail-lead p {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin: 0 0 18px 0;
}

.mc-news-detail-lead p:last-child {
    margin-bottom: 0;
}

/* COLUMNA DERECHA: Contenido */
.mc-news-detail-right {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mc-news-detail-content {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

.mc-news-detail-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin: 0 0 18px 0;
}

.mc-news-detail-content p:last-child {
    margin-bottom: 0;
}

.mc-news-detail-content h2,
.mc-news-detail-content h3,
.mc-news-detail-content h4 {
    color: #1e293b;
    margin: 24px 0 12px 0;
    line-height: 1.35;
}

.mc-news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}

/* Responsive para el Detalle */
@media (max-width: 860px) {
    .mc-news-detail-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ══════════════════════════════════════════════
   PASTILLAS / TAGS DE COLORES INDEPENDIENTES
   (SHORTCODE [minciencia_noticia_tags])
═══════════════════════════════════════════════ */
.mc-standalone-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 10px 0;
    box-sizing: border-box;
    width: 100%;
}

.mc-tags-align-left {
    justify-content: flex-start;
}

.mc-tags-align-center {
    justify-content: center;
}

.mc-tags-align-right {
    justify-content: flex-end;
}

/* Pastillas base */
.mc-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    padding: 5px 14px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    cursor: default;
    border: none;
    box-sizing: border-box;
}

a.mc-tag {
    cursor: pointer;
}

a.mc-tag:hover {
    transform: translateY(-1px);
    opacity: 0.88;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Paleta de Colores Institucionales */
.mc-tag-mint {
    background-color: #c4eec6 !important;
    color: #1e3a29 !important;
}

.mc-tag-sky {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}

.mc-tag-purple {
    background-color: #f3e8ff !important;
    color: #6b21a8 !important;
}

.mc-tag-amber {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

.mc-tag-rose {
    background-color: #ffe4e6 !important;
    color: #9f1239 !important;
}

.mc-tag-indigo {
    background-color: #e0e7ff !important;
    color: #3730a3 !important;
}

/* ══════════════════════════════════════════════
   FILTRO DE BOTONES DE CATEGORÍAS DE NOTICIAS
   (SHORTCODE [minciencia_filtro_categorias])
═══════════════════════════════════════════════ */
.mc-cat-filter-nav {
    width: 100%;
    margin: 20px 0 28px 0;
    box-sizing: border-box;
}

.mc-cat-filter-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.mc-filter-align-left .mc-cat-filter-list {
    justify-content: flex-start;
}

.mc-filter-align-center .mc-cat-filter-list {
    justify-content: center;
}

.mc-filter-align-right .mc-cat-filter-list {
    justify-content: flex-end;
}

/* Botón de filtro (Verde Menta institucional exacto a la imagen) */
.mc-cat-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #c4eec6;
    color: #1e293b !important;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.25;
    padding: 9px 18px;
    border-radius: 4px;
    text-decoration: none !important;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    box-sizing: border-box;
}

.mc-cat-filter-btn:hover {
    background-color: #b1e8b4;
    color: #0f172a !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Botón activo */
.mc-cat-filter-btn.is-active {
    background-color: #9fe0a3;
    color: #0f172a !important;
    font-weight: 600;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
    border-color: rgba(30, 58, 41, 0.15);
}

@media (max-width: 640px) {
    .mc-cat-filter-list {
        gap: 8px;
    }

    .mc-cat-filter-btn {
        font-size: 13.5px;
        padding: 7px 14px;
    }
}

/* ══════════════════════════════════════════════
   BANNER INDEPENDIENTE / SOLO NOTICIA DESTACADA
   (SHORTCODE [minciencia_solo_destacada])
═══════════════════════════════════════════════ */
.mc-featured-banner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    margin: 28px 0;
    box-sizing: border-box;
    font-family: var(--mc-nd-font-family, inherit);
}

.mc-featured-banner-thumb-col {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-featured-banner-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mc-featured-banner-thumb-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.mc-featured-banner-thumb-link img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.mc-featured-banner-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
    box-sizing: border-box;
}

.mc-featured-banner-label {
    font-size: 26px;
    font-weight: 700;
    color: #273746;
    margin: 0 0 16px 0;
    line-height: 1.25;
}

.mc-featured-banner-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 14px;
}

.mc-featured-banner-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    margin-bottom: 14px;
}

.mc-featured-banner-date svg {
    color: #64748b;
    flex-shrink: 0;
}

.mc-featured-banner-divider {
    border: 0;
    border-top: 1px solid #d8e2ea;
    margin: 0 0 18px 0;
    width: 100%;
}

.mc-featured-banner-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 14px 0;
}

.mc-featured-banner-title a {
    color: #1e293b;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.mc-featured-banner-title a:hover {
    color: var(--mc-nd-primary, #3053F9);
}

.mc-featured-banner-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 22px 0;
}

.mc-featured-banner-action {
    display: flex;
    align-items: center;
}

.mc-featured-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--mc-nd-primary, #3053F9) !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(48, 83, 249, 0.25);
    border: none;
    cursor: pointer;
}

.mc-featured-banner-btn:hover {
    background-color: #2040d6 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(48, 83, 249, 0.35);
}

.mc-featured-banner-btn svg {
    transition: transform 0.2s ease;
}

.mc-featured-banner-btn:hover svg {
    transform: translateX(3px);
}

/* Responsivo */
@media (max-width: 860px) {
    .mc-featured-banner-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mc-featured-banner-thumb-link img {
        min-height: 240px;
        max-height: 380px;
    }

    .mc-featured-banner-label {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .mc-featured-banner-title {
        font-size: 19px;
    }
}