

/* ═══════════════════════════════════════════
   SECCIÓN DE NOTICIAS - ESTILOS NUEVOS
   ═══════════════════════════════════════════ */

.news-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary-green);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 15px 0 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Layout principal: destacada + sidebar */
.news-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 35px;
    align-items: start;
}

/* ═══ NOTICIA DESTACADA ═══ */
.fb-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.fb-wrapper {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 30px auto 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    overflow: hidden;
}

.fb-wrapper iframe {
    width: 100%;
    max-width: 500px;
}

.news-featured {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.news-featured-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-featured-image {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-featured:hover .news-featured-image img {
    transform: scale(1.05);
}

.news-badge-destacada {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--magenta);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(216, 27, 125, 0.3);
}

.news-featured-content {
    padding: 30px 35px 35px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-meta time {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.news-category {
    background: rgba(27, 138, 70, 0.1);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-featured-content h3 {
    font-size: 1.7rem;
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 15px;
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.news-featured:hover .news-read-more {
    gap: 14px;
}

.arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* ═══ SIDEBAR / NOTICIAS SECUNDARIAS ═══ */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 18px;
    padding: 18px;
}

.news-card-image {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.news-card-content time {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.news-card-content h4 {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════════════════════════════════════════
   PÁGINA INDIVIDUAL DE NOTICIA
   ═══════════════════════════════════════════ */

.article-header {
    background: linear-gradient(135deg, rgba(27,138,70,0.08) 0%, rgba(123,44,191,0.08) 100%);
    padding: 50px 0 40px;
    text-align: center;
}

.article-header .badge {
    margin-bottom: 15px;
    display: inline-block;
}

.article-header h1 {
    color: var(--text-dark);
    font-size: 2.4rem;
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.2;
}

.article-meta-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.article-meta-bar .author {
    font-weight: 600;
    color: var(--primary-green);
}

.article-hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0 0 16px 16px;
    margin-bottom: 40px;
}

.article-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.article-body h2 {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 35px 0 15px;
}

.article-body h3 {
    color: var(--purple);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 25px 0 12px;
}

.article-body ul, .article-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-body blockquote {
    border-left: 4px solid var(--magenta);
    padding: 15px 25px;
    margin: 25px 0;
    background: rgba(216, 27, 125, 0.04);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-muted);
}

.article-body img {
    width: 100%;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 780px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.article-nav a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.article-nav a:hover {
    gap: 14px;
}

.article-nav .btn-back {
    background: var(--primary-green);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
}

.article-nav .btn-back:hover {
    background: var(--primary-dark);
    gap: 8px;
}

/* Mensaje de error si no se encuentra la noticia */
.article-error {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.article-error h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.article-error p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE: NOTICIAS
   ═══════════════════════════════════════════ */

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-featured-image {
        height: 300px;
    }

    .news-featured-content h3 {
        font-size: 1.4rem;
    }

    .news-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .news-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 280px;
    }

    .news-card a {
        flex-direction: column;
        padding: 0;
    }

    .news-card-image {
        width: 100%;
        height: 180px;
        border-radius: 12px 12px 0 0;
    }

    .news-card-content {
        padding: 18px;
    }

    .article-header h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .news-featured-image {
        height: 220px;
    }

    .news-featured-content {
        padding: 22px 20px 25px;
    }

    .news-featured-content h3 {
        font-size: 1.25rem;
    }

    .news-excerpt {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
    }

    .news-sidebar {
        flex-direction: column;
    }

    .news-card {
        flex: 1 1 100%;
        min-width: auto;
    }

    .news-card a {
        flex-direction: row;
        padding: 15px;
    }

    .news-card-image {
        width: 90px;
        height: 90px;
        border-radius: 10px;
    }

    .news-card-content h4 {
        font-size: 0.95rem;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .article-body {
        padding-bottom: 40px;
    }

    .article-body p {
        font-size: 1rem;
    }

    .article-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .news-featured-image {
        height: 180px;
    }

    .news-card a {
        flex-direction: column;
    }

    .news-card-image {
        width: 100%;
        height: 160px;
        border-radius: 10px 10px 0 0;
    }

    .news-card-content {
        padding: 15px;
    }

    .article-header {
        padding: 35px 0 25px;
    }

    .article-header h1 {
        font-size: 1.35rem;
    }
}