/* ==========================================================================
   noticias.css - Tarjetas de noticias (html/paginas/noticias.html)
   ========================================================================== */

#news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.noticia {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s var(--ease), border-color 0.2s;
}
.noticia:hover { transform: translateY(-3px); border-color: var(--brand); }

.noticia img { width: 100%; height: 170px; object-fit: cover; display: block; background: var(--bg-elev); }

.noticia h3 { margin: 0; padding: 18px 18px 6px; font-size: 1.05rem; line-height: 1.35; }
.noticia p { margin: 0; padding: 0 18px 14px; color: var(--text-dim); font-size: 0.9rem; }
.noticia .noticia-fuente { font-size: 0.76rem; color: var(--text-faint); padding-bottom: 8px; }

.noticia a {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: 13px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--brand-strong);
    border-top: 1px solid var(--line);
    transition: background 0.2s, color 0.2s;
}
.noticia a:hover { background: var(--brand); color: #fff; }

.news-mensaje { grid-column: 1 / -1; text-align: center; color: var(--text-dim); padding: 48px 0; }
.news-aviso { margin: 24px 0 0; font-size: 0.78rem; color: var(--text-faint); text-align: center; }
