/* =========================================
   NOTICIAS — Estilos página pública
   ========================================= */

.noticias-section {
    padding: 3rem 0 4rem;
    background: #f8fafc;
    min-height: 60vh;
}

.noticias-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Filtro de categorías ── */
.noticias-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.noticias-filter-btn {
    padding: 0.45rem 1.1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.noticias-filter-btn:hover,
.noticias-filter-btn.active {
    background: #008ea9;
    border-color: #008ea9;
    color: #fff;
}

/* ── Grid de artículos ── */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

@media (max-width: 1024px) { .noticias-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .noticias-grid { grid-template-columns: 1fr; } }

/* ── Tarjeta ── */
.noticia-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.noticia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.noticia-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.noticia-card-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e0f4f8 0%, #c8eaf0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008ea9;
}

.noticia-card-image-placeholder svg {
    width: 3rem;
    height: 3rem;
    opacity: 0.5;
}

.noticia-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.noticia-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.noticia-card-category {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 142, 169, 0.12);
    color: #007a8f;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.noticia-card-date {
    font-size: 0.78rem;
    color: #94a3b8;
}

.noticia-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a2332;
    line-height: 1.35;
    margin: 0 0 0.6rem;
}

.noticia-card-excerpt {
    font-size: 0.88rem;
    color: #5f6b7a;
    line-height: 1.6;
    flex: 1;
    margin: 0 0 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #008ea9;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
}

.noticia-card-btn:hover { color: #006a80; }
.noticia-card-btn svg { width: 16px; height: 16px; }

/* ── Vista de artículo individual ── */
.noticia-article {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem 3rem;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.07);
    border: 1px solid #e5e7eb;
}

@media (max-width: 640px) {
    .noticia-article { padding: 1.5rem 1.25rem; }
}

.noticia-article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #008ea9;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.noticia-article-back:hover { color: #006a80; }

.noticia-article-category {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 142, 169, 0.12);
    color: #007a8f;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.noticia-article-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1a2332;
    line-height: 1.25;
    margin: 0 0 0.5rem;
}

.noticia-article-date {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    display: block;
}

.noticia-article-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    display: block;
}

.noticia-article-content {
    font-size: 1rem;
    color: #374151;
    line-height: 1.8;
}

.noticia-article-content h2,
.noticia-article-content h3 {
    color: #1a2332;
    font-weight: 800;
    margin: 1.75rem 0 0.6rem;
}

.noticia-article-content p  { margin: 0 0 1rem; }
.noticia-article-content ul,
.noticia-article-content ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.noticia-article-content li { margin-bottom: 0.4rem; }
.noticia-article-content strong { color: #1a2332; }
.noticia-article-content a { color: #008ea9; }

/* ── Sin resultados ── */
.noticias-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #94a3b8;
    font-size: 1rem;
}
