/* Blog Styles */

/* Blog Hero Section - Paleta Azul Unificada */
.blog-hero {
    background: linear-gradient(135deg, #3730A3 0%, #1E293B 50%, #0F172A 100%);
    padding: 120px 0 60px;
    margin-top: 80px;
    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 width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.blog-hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: backwards;
}

/* Blog Categories */
.blog-categories {
    padding: 40px 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.categories-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #3730A3 #f3f4f6;
}

.categories-wrapper::-webkit-scrollbar {
    height: 6px;
}

.categories-wrapper::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.categories-wrapper::-webkit-scrollbar-thumb {
    background: #3730A3;
    border-radius: 3px;
}

.category-btn {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.category-btn:hover {
    border-color: #3730A3;
    color: #3730A3;
}

.category-btn.active {
    background: linear-gradient(135deg, #3730A3 0%, #1D4ED8 100%);
    color: white;
    border-color: #3730A3;
    box-shadow: 0 4px 15px rgba(55, 48, 163, 0.3);
}

/* Blog Posts Grid */
.blog-posts {
    padding: 60px 0;
    background: #ffffff;
}

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

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

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

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

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

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3730A3 0%, #1E293B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image .material-icons {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #3730A3 0%, #1D4ED8 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(55, 48, 163, 0.3);
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.blog-date,
.blog-read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card.featured .blog-title {
    font-size: 2rem;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #3730A3;
}

.blog-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-link {
    color: #3730A3;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.blog-link:hover {
    gap: 1rem;
}

.blog-link.coming-soon {
    color: #9ca3af;
    cursor: not-allowed;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 60px 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
}

.newsletter-input-group {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.newsletter-input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: #3730A3;
}

/* Blog Post Template Styles */
.blog-post-hero {
    background: linear-gradient(135deg, #3730A3 0%, #1E293B 50%, #0F172A 100%);
    padding: 120px 0 60px;
    margin-top: 80px;
    text-align: center;
    color: white;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1rem;
    opacity: 0.9;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 3rem 0 1.5rem;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1rem;
}

.blog-post-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-post-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.blog-post-content blockquote {
    border-left: 4px solid #10b981;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-post-content .highlight-box {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.blog-post-content .highlight-box h4 {
    color: #065f46;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Share buttons */
.share-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.share-section h3 {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1a91da;
    transform: translateY(-2px);
}

.share-btn.linkedin {
    background: #0077B5;
    color: white;
}

.share-btn.linkedin:hover {
    background: #006097;
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

/* Author box */
.author-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3730A3 0%, #1E293B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(55, 48, 163, 0.3);
}

.author-info h4 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.author-info p {
    color: #6b7280;
    line-height: 1.6;
}

/* Related posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e5e7eb;
}

.related-posts h3 {
    font-size: 1.75rem;
    color: #111827;
    margin-bottom: 2rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured .blog-card-image {
        height: 200px;
    }
    
    .blog-card.featured .blog-title {
        font-size: 1.5rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .blog-post-title {
        font-size: 1.75rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}