﻿/* ============================================
   NOTICIA PREVIEW - Asamblea Nacional
   ============================================ */

/* --- Banner Principal --- */
.banner-noticia-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 4px 4px;
    max-height: 400px;
}

.banner-noticia {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0px 6px 18px 0px black;
}

.banner-noticia-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 46, 93, 0.75) 0%, transparent 55%);
    pointer-events: none;
}

.banner-noticia-label {
    position: absolute;
    bottom: 1.5rem;
    left: 1.75rem;
    right: 1.75rem;
}

.banner-cat-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 0.6rem;
}

.banner-noticia-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    margin: 0;
}

/* --- Meta: categoría, fecha --- */
.noticia-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.noticia-meta-cat {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.noticia-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-color);
    display: inline-block;
    flex-shrink: 0;
}

.noticia-meta-fecha {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

/* --- Título y Subtítulo --- */
.noticia-titulo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.noticia-subtitulo {
    font-size: 1.1rem;
    color: #6b7280;
    font-style: italic;
    line-height: 1.55;
    margin-bottom: 1rem;
}

/* --- Autor --- */
.noticia-autor-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 13px;
    color: #6b7280;
    padding: 0.75rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.noticia-autor-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8edf5;
    color: var(--secondary-color);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Cuerpo del artículo --- */
.noticia-descripcion {
    font-size: 1rem;
    line-height: 1.85;
    color: #2d2d2d;
    text-align: justify;
    white-space: pre-line;
    margin-bottom: 2rem;
}

    /* Drop cap en el primer párrafo */
    .noticia-descripcion p:first-child::first-letter {
        font-size: 3.4rem;
        font-weight: 700;
        color: var(--secondary-color);
        float: left;
        line-height: 0.78;
        margin: 6px 10px 0 0;
    }

/* --- Galería (Swiper) --- */
.noticia-galeria-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.swiper {
    border-radius: 8px;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.swiper-button-prev,
.swiper-button-next {
    --swiper-navigation-color: #fff;
    background: rgba(0, 46, 93, 0.5);
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 14px !important;
    }

/* --- Tags --- */
.noticia-tags {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.noticia-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s;
}

    .noticia-tag:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
        background: #fdf8ef;
    }

/* --- Sidebar: Noticias Relacionadas --- */
#4relationsNotices {
    max-height: 31rem;
    overflow: auto;
}

.noticia-rel-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 0.5px solid #e5e7eb;
    text-decoration: none;
}

    .noticia-rel-item:last-child {
        border-bottom: none;
    }

.noticia-rel-img {
    width: 64px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.noticia-rel-img-placeholder {
    width: 64px;
    height: 48px;
    border-radius: 4px;
    background: #e8edf5;
    flex-shrink: 0;
}

.noticia-rel-cat {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.noticia-rel-titulo {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.4;
    margin: 0;
}

.noticia-rel-fecha {
    font-size: 10px;
    color: #6b7280;
    margin-top: 4px;
}

/* --- Botones de compartir --- */
.noticia-share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s;
}

    .btn-share:hover {
        opacity: 0.85;
    }

    .btn-share.fb {
        background: #1877f2;
        color: #fff;
    }

    .btn-share.tw {
        background: #000;
        color: #fff;
    }

    .btn-share.ig {
        background: radial-gradient(circle at 30% 110%, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        color: #fff;
        border: none;
        cursor: pointer;
    }
    .btn-share.wa {
        background: #25d366;
        color: #fff;
    }

/* --- Divisor dorado (gold-divisor ya existente) --- */
.gold-divisor {
    width: 50px;
    border: 2px solid var(--primary-color);
    opacity: 1;
    margin-top: 0.5rem;
}

/* --- Sidebar título (ya existente, reforzado) --- */
.noticia-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--secondary-color);
}


.noticia-volver-wrap {
    margin-bottom: 1.25rem;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--secondary-color);
    background: transparent;
    border: 1.5px solid var(--secondary-color);
    padding: 7px 16px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

    .btn-volver em {
        flex-shrink: 0;
        transition: transform 0.2s;
    }

    .btn-volver:hover {
        background: var(--secondary-color);
        color: #fff;
    }

        .btn-volver:hover svg {
            transform: translateX(-3px);
        }
 