/* ===================================
   ESTILOS PARA SECCIONES DE BLOG
   =================================== */

/* Variables CSS (si no están definidas en tu archivo principal) */
:root {
    --primary: #3f0cfe;
    --primary-dark: #2a08b8;
    --primary-light: #6366f1;
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --gradient-primary: linear-gradient(135deg, #3f0cfe 0%, #6366f1 50%, #8b5cf6 100%);
    --gradient-mesh: radial-gradient(ellipse 1200px 800px at 50% -20%, rgba(63, 12, 254, 0.12) 0%, transparent 50%);
    
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Container (si no está definido en tu archivo principal) */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Blog Hero Section */
.blog-hero {
    padding: 180px 0 80px;
    background: var(--gradient-mesh);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, var(--white) 100%);
    pointer-events: none;
}

.blog-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.blog-hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s var(--ease-out-expo);
    cursor: none;
    border: 1px solid var(--gray-100);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(63, 12, 254, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image i {
    font-size: 4rem;
    color: var(--white);
    opacity: 0.3;
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-card-link:hover {
    gap: 0.8rem;
    color: var(--primary-dark);
}

/* Article Hero Section */
.article-hero {
    padding: 180px 0 60px;
    background: var(--gradient-mesh);
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, var(--white) 100%);
    pointer-events: none;
}

.article-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.article-hero .lead {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 800px;
}

/* Article Content */
.article-content {
    padding: 80px 0;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 24px;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(63, 12, 254, 0.2);
}

.article-featured-image i {
    font-size: 8rem;
    color: var(--white);
    opacity: 0.3;
}

.article-body h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 3rem 0 1.5rem;
    line-height: 1.3;
}

.article-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.article-body p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 0.8rem;
}

.article-body strong {
    color: var(--gray-900);
    font-weight: 600;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(63, 12, 254, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.highlight-box p {
    margin: 0;
    font-size: 1.125rem;
    color: var(--gray-800);
}

.cta-box {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    margin: 4rem 0;
}

.cta-box p {
    color: var(--white);
    font-size: 1.25rem;
    margin: 0 0 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Share Section */
.share-section {
    padding: 3rem 0;
    border-top: 2px solid var(--gray-100);
    border-bottom: 2px solid var(--gray-100);
    margin: 4rem 0;
}

.share-section h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.linkedin {
    background: #0a66c2;
}

.share-button.whatsapp {
    background: #25d366;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Back to Blog */
.back-to-blog {
    margin-top: 4rem;
    text-align: center;
}

.back-to-blog a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-to-blog a:hover {
    gap: 0.8rem;
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s var(--ease-out-expo);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-hero h1 {
        font-size: 2.25rem;
    }

    .article-hero .lead {
        font-size: 1.05rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-featured-image {
        height: 300px;
    }

    .article-body h2 {
        font-size: 1.75rem;
    }

    .article-body h3 {
        font-size: 1.35rem;
    }

    .article-body p, .article-body li {
        font-size: 1rem;
    }

    .share-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .blog-hero {
        padding: 140px 0 60px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-section {
        padding: 60px 0;
    }

    .article-hero {
        padding: 140px 0 40px;
    }

    .article-hero h1 {
        font-size: 1.85rem;
    }

    .article-content {
        padding: 60px 0;
    }

    .article-featured-image {
        height: 250px;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }
}