/* Blog Specific Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.blog-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.blog-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.blog-breadcrumb a:hover {
    opacity: 1;
}

.blog-breadcrumb i {
    font-size: 0.75rem;
}

/* Blog Categories */
.blog-categories {
    padding: 3rem 0;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.categories-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-btn {
    background: white;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Featured Article */
.featured-article {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    margin: 2rem 0;
}

.featured-article-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.featured-article-image {
    position: relative;
    text-align: center;
}

.featured-article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-article-card:hover .featured-article-image img {
    transform: scale(1.05);
}

.featured-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.featured-article-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.featured-article-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-article-content h2 a:hover {
    color: var(--primary-color);
}

.featured-article-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.article-category {
    background: var(--light-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Blog Articles Grid */
.blog-articles {
    padding: 4rem 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--heading-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.article-content {
    padding: 2rem;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.article-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: var(--primary-color);
}

.article-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-content .article-meta {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

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

.read-more:hover {
    color: var(--primary-hover);
    transform: translateX(5px);
}

/* Blog CTA */
.blog-cta {
    padding: 4rem 0;
    background: var(--bg-white);
    text-align: center;
}

.blog-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.blog-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Article Page Styles */
.article-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    /* Restaurado: suficiente aire arriba sin depender de variables externas */
    padding: 120px 0 80px;
    color: white;
    text-align: center;
}

.article-header h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-header .article-meta {
    justify-content: center;
    margin-top: 2rem;
}

/* En el header del artículo, la categoría debe ser transparente sobre el degradado */
.article-header .article-category {
    background: transparent !important;
    color: #ffffff;
    border: none;
    padding: 0; /* sin pastilla */
}

.article-content-wrapper {
    padding: 4rem 0;
    background: white;
}

.article-content-inner {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Article content images: criterio uniforme */
/* Raster: no forzar upscale para evitar pixelado */
.article-content-inner img {
    display: block;
    width: min(100%, 720px);
    height: auto;
    margin: 1.5rem auto 2.25rem; /* más aire después de la imagen */
}

/* Vector: ocupar el ancho del contenido sin perder calidad */
.article-content-inner img[src$='.svg'],
.article-content-inner svg {
    width: min(100%, 720px);
    height: auto;
}

.article-content-inner h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 3rem 0 1.5rem;
    line-height: 1.3;
}

.article-content-inner h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 2.5rem 0 1rem;
    line-height: 1.4;
}

.article-content-inner p {
    margin-bottom: 1.5rem;
}

.article-content-inner ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content-inner li {
    margin-bottom: 0.5rem;
}

.article-content-inner li::marker {
    color: var(--primary-color);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* FAQ Section */
.faq-section {
    background: var(--light-bg);
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 20px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--heading-color);
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Navigation active state for blog */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .featured-article-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }
    
    .featured-article-content h2 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }

    /* Más aire en móvil para evitar solape con el header fijo */
    .article-header {
        padding: 140px 0 60px;
    }
    
    .article-content-inner {
        padding: 0 1rem;
    }
    
    .blog-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .featured-article-card {
        padding: 1.5rem;
    }
    
    .featured-article-content h2 {
        font-size: 1.75rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .faq-container {
        padding: 0 1rem;
    }
} 
