/* Estilos para Sección Blog en Home */

.home-blog-section {
    background: rgba(79, 92, 89, 0.1);
    padding: 4rem 0;
    width: 100%;
}

.home-blog-header {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.home-blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #63514f;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-view-all {
    padding: 0.75rem 2rem;
    border: 2px solid #3b6e40;
    color: #3b6e40;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-view-all:hover {
    background: #3b6e40;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 110, 64, 0.3);
}

.home-blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Entrada destacada */
.featured-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
    cursor: pointer;
}

.featured-post-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-post:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-block;
    background: #3b6e40;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.featured-post-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.featured-post-excerpt {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #999;
    font-size: 0.9rem;
}

.featured-post-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #3b6e40;
    border: 2px solid #3b6e40;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.featured-post-btn:hover {
    background: #3b6e40;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 110, 64, 0.3);
}

/* Grid de cards pequeñas */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.home-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.home-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.home-blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.home-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-blog-card:hover .home-blog-card-image img {
    transform: scale(1.1);
}

.home-blog-card-content {
    padding: 1.5rem;
}

.home-blog-card-category {
    color: #3b6e40;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.home-blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.home-blog-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.home-blog-card-meta {
    color: #999;
    font-size: 0.85rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-post-image {
        min-height: 300px;
    }
    
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-blog-section {
        padding: 3rem 0;
    }
    
    .home-blog-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .home-blog-title {
        font-size: 2rem;
    }
    
    .featured-post-content {
        padding: 2rem;
    }
    
    .featured-post-title {
        font-size: 1.5rem;
    }
    
    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
