/* Estilos para la sección de Blog */
#blog {
    background-color: var(--primary-color-light);
    padding: 80px 0;
}

.blog-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.blog-main {
    flex: 2;
}

.blog-sidebar {
    flex: 1;
}

/* Artículo Principal */
.blog-featured {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-featured .blog-image {
    height: 400px;
}

.blog-featured .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-featured .blog-content {
    padding: 25px;
}

/* Artículos en Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Tarjeta de Blog */
.blog-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card .blog-image {
    height: 200px;
}

.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card .blog-content {
    padding: 20px;
}

/* Meta información */
.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.blog-category {
    color: var(--primary-color);
    font-weight: 600;
}

.blog-title {
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
}

.blog-featured .blog-title {
    font-size: 28px;
}

.blog-excerpt {
    margin-bottom: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.blog-read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    color: var(--primary-color-dark);
}

.blog-read-more:hover i {
    transform: translateX(3px);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color-light);
}

/* Categorías */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list span {
    color: var(--text-muted);
    font-size: 14px;
}

/* Posts Populares */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post {
    display: flex;
    gap: 15px;
}

.popular-post .post-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post .post-info {
    display: flex;
    flex-direction: column;
}

.popular-post h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.popular-post h4 a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.popular-post h4 a:hover {
    color: var(--primary-color);
}

.popular-post .post-date {
    font-size: 13px;
    color: var(--text-muted);
}

/* Newsletter */
.newsletter-widget {
    background-color: var(--primary-color-light);
}

.newsletter-widget .widget-title {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: #fff;
}

.btn-subscribe {
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-subscribe:hover {
    background-color: var(--primary-color-dark);
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* CTA */
.blog-cta {
    margin-top: 60px;
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.cta-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.blog-cta .btn {
    background-color: #fff;
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-cta .btn:hover {
    background-color: var(--primary-color-dark);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .blog-container {
        flex-direction: column;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}