/* ========================================
   NOTICIAS
   ======================================== */

/* ---- Sección principal ---- */
.noticias-section {
    background: #f8f9fa;
    padding: 40px 0 80px;
    min-height: 60vh;
}

/* ---- Filtros de categoría ---- */
.noticias-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.noticias-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 50px;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.noticias-filter-btn:hover {
    border-color: #c9a227;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.noticias-filter-btn.active {
    background: #3a5253;
    color: #fff;
    border-color: #3a5253;
}

/* ---- Grid de noticias ---- */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ---- Card individual ---- */
.noticia-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}
.noticia-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,.13);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.noticia-card:nth-child(1) { animation-delay: .05s; }
.noticia-card:nth-child(2) { animation-delay: .10s; }
.noticia-card:nth-child(3) { animation-delay: .15s; }
.noticia-card:nth-child(4) { animation-delay: .20s; }
.noticia-card:nth-child(5) { animation-delay: .25s; }
.noticia-card:nth-child(6) { animation-delay: .30s; }

.noticia-card-image {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #eee;
}
.noticia-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.noticia-card:hover .noticia-card-image img { transform: scale(1.06); }

.noticia-card-category {
    position: absolute;
    top: 14px; left: 14px;
    background: #c9a227;
    color: #1a2f23;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.noticia-card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticia-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 0.82rem;
    margin-bottom: 10px;
}
.noticia-card-meta svg { opacity: 0.6; }

.noticia-card-title {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-card-excerpt {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3a5253;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s;
    align-self: flex-start;
}
.noticia-card-btn:hover {
    color: #c9a227;
    gap: 10px;
    text-decoration: none;
}
.noticia-card-btn svg { transition: transform 0.3s; }
.noticia-card-btn:hover svg { transform: translateX(3px); }

/* ---- Estado vacío ---- */
.noticias-empty {
    text-align: center;
    padding: 80px 20px;
    color: #aaa;
}
.noticias-empty .fa { font-size: 3rem; margin-bottom: 16px; display: block; }

/* ---- Newsletter ---- */
.noticias-newsletter {
    margin-top: 60px;
}
.newsletter-content {
    background: linear-gradient(135deg, #3a5253 0%, #2a3d3e 100%);
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.newsletter-content::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 360px; height: 360px;
    background: rgba(201,162,39,.1);
    border-radius: 50%;
}
.newsletter-content::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 260px; height: 260px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.newsletter-icon { font-size: 2.5rem; margin-bottom: 16px; position: relative; z-index: 1; }
.newsletter-content h3 {
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 10px;
    position: relative; z-index: 1;
}
.newsletter-content p {
    color: rgba(255,255,255,.8);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.6;
    position: relative; z-index: 1;
}
.newsletter-badge {
    display: inline-block;
    background: rgba(201,162,39,.2);
    color: #e6c453;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(201,162,39,.4);
    position: relative; z-index: 1;
}

/* ---- Responsive listado ---- */
@media (max-width: 992px) {
    .noticias-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
    .noticias-grid { grid-template-columns: 1fr; }
    .newsletter-content { padding: 36px 20px; }
    .newsletter-content h3 { font-size: 1.3rem; }
}

/* ========================================
   NOTICIA — detalle
   ======================================== */

/* Hero con imagen de portada */
.noticia-hero-img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 28px;
    display: block;
}

/* Meta: fecha + tags */
.noticia-ver-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    font-size: 0.88rem;
    color: #888;
}
.noticia-ver-meta .fa { margin-right: 5px; color: #3a5253; }
.noticia-ver-tag {
    background: #c9a227;
    color: #1a2f23;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Título y subtítulo */
.noticia-ver-title {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin: 0 0 12px;
}
.noticia-ver-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 24px;
    font-weight: 300;
}

/* Cuerpo del artículo */
.noticia-ver-body {
    font-size: 1rem;
    line-height: 1.85;
    color: #444;
    text-align: justify;
}
.noticia-ver-body p { margin-bottom: 18px; }

/* Archivos adjuntos (audio / PDF) */
.noticia-file-box {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 28px;
}
.noticia-file-box h5 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #3a5253;
}
.noticia-file-box audio { width: 100%; }
.noticia-file-box embed {
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Etiquetas */
.noticia-tags-section {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.noticia-tags-section h5 { font-size: 14px; margin-bottom: 10px; }

/* Compartir */
.noticia-share {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.noticia-share h5 { font-size: 14px; margin-bottom: 10px; }
.noticia-share .btn { margin: 0 6px 8px 0; }

/* Sidebar */
.noticia-sidebar-box {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
}
.noticia-sidebar-box h5 {
    font-size: 14px;
    font-weight: 700;
    color: #3a5253;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00B7EB;
}
.noticia-sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.noticia-sidebar-box ul li {
    margin-bottom: 10px;
    font-size: 13px;
    color: #555;
}
.noticia-sidebar-box ul li strong { display: block; color: #333; margin-bottom: 2px; }

/* Responsive detalle */
@media (max-width: 768px) {
    .noticia-hero-img { height: 220px; }
    .noticia-ver-title { font-size: 1.5rem; }
    .noticia-ver-subtitle { font-size: 1rem; }
    .noticia-share .btn { display: block; width: 100%; margin-right: 0; }
}
