/* BLOG FILTERS */
.blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    margin: 2rem 0;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    border: 2px solid #4a934a;
    color: #4a934a;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #4a934a;
    color: white;
    transform: translateY(-2px);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1.5rem 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #4a934a;
    box-shadow: 0 0 0 3px rgba(74, 147, 74, 0.1);
}

.search-box i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* BLOG GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

.blog-card:not(.show) {
    opacity: 0;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(74, 147, 74, 0.2);
}

.blog-card.featured-article {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .blog-card.featured-article {
        grid-column: span 2;
        grid-row: span 2;
    }

    .blog-card.featured-article .blog-image {
        height: 400px;
    }
}

/* BLOG IMAGE */
.blog-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #4a934a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #d4af37;
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* BLOG CONTENT */
.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    color: #4a934a;
}

.blog-card h3 {
    font-size: 1.4rem;
    color: #4a934a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    text-align: justify;
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #999;
}

.reading-time i {
    color: #4a934a;
}

.read-more {
    color: #4a934a;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #3a7a3a;
    transform: translateX(5px);
}

/* NEWSLETTER SECTION */
.newsletter-section {
    background: linear-gradient(135deg, #4a934a 0%, #3a7a3a 100%);
    color: white;
    padding: 4rem 0;
    margin: 4rem 0;
}

.newsletter-content {
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.newsletter-form button {
    padding: 1rem 2.5rem;
    background: transparent;
    color: #4a934a;
    border: 2px solid #4a934a;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #4a934a;
    color: white;
    transform: translateY(-2px);
}

/* HERO PAGE (Reutilizado) */
.hero-section-page {
    background: linear-gradient(135deg, #4a934a 0%, #3a7a3a 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-page-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-page-content p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .blog-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box {
        max-width: 100%;
    }

    .filter-buttons {
        width: 100%;
        justify-content: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card.featured-article {
        grid-column: span 1;
        grid-row: span 1;
    }

    .blog-card.featured-article .blog-image {
        height: 250px;
    }

    .blog-image {
        height: 200px;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-card h3 {
        font-size: 1.2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .hero-page-content h1 {
        font-size: 2rem;
    }
}