/* Listado del blog: /blog y /categoria/{slug} */

.search-row { display: flex; gap: 10px; margin-bottom: 20px; }
.search-row .field { flex: 1; min-width: 0; }

.categories { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }

.category-btn {
    display: inline-block; padding: 10px 20px; border-radius: 20px;
    background: var(--surface); color: var(--text-primary); border: 1px solid var(--border);
    transition: background-color 0.3s;
}
.category-btn:hover { background: var(--bg-secondary); }
.category-btn.active { background: var(--btn-bg); color: #fff; border-color: transparent; }

.articles {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px; margin-bottom: 60px;
}

.article-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    overflow: hidden; transition: transform 0.3s;
}
.article-card:hover { transform: translateY(-5px); }

.article-card .card-img { width: 100%; height: 200px; object-fit: cover; display: block; }

.article-content { padding: 20px; }
.article-content h3 { font-size: 18px; margin-bottom: 10px; }
.article-content p { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.article-content .meta { margin-top: 15px; font-size: 12px; color: var(--muted); }
.article-content .read-more { display: inline-block; margin-top: 15px; }

.empty { color: var(--text-secondary); }
