/* Blog Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f8f9fa;
}

/* Header */
.blog-header {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.blog-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-header .logo img {
    height: 40px;
}

.blog-header .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.blog-header .nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.blog-header .nav-links a:hover {
    color: #2563eb;
}

.blog-header .menu-toggle {
    display: none;
    color: #2563eb;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.blog-header .menu-toggle:active {
    transform: scale(0.95);
}

.blog-header .menu-toggle i {
    transition: transform 0.3s ease;
}

.blog-header .menu-toggle.active i {
    transform: rotate(90deg);
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 4rem 5%;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Main Content */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 5%;
}

/* Article List */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.article-card.featured {
    border: 2px solid #2563eb;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.article-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.article-content {
    padding: 2rem;
}

/* Lead paragraph - Introducción destacada */
.article-body .lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-card h2 {
    color: #1e40af;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #2563eb;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-card:hover .read-more {
    gap: 1rem;
}

/* Article Page */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-title {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-full-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #666;
    margin-bottom: 2rem;
}

.article-body {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-body h2 {
    color: #1e40af;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body h3 {
    color: #2563eb;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

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

.article-body strong {
    color: #1e40af;
    font-weight: 600;
}

.article-body .highlight {
    background: #e0f2fe;
    padding: 1.5rem;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-body .info-box {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border: 2px solid #bfdbfe;
}

.cta-box { 
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
}

.cta-box h3 {
    margin-bottom: 1rem;
    color: #f0f9ff;
}
.cta-box strong {
    color: #bfdbfe; 
}

.cta-box .btn {
    display: inline-block;
    background: white;
    color: #2563eb;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s;
}

.cta-box .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Footer */
.blog-footer {
    background: #1e293b;
    color: white;
    padding: 2rem 5%;
    text-align: center;
    margin-top: 4rem;
}

.blog-footer a {
    color: #60a5fa;
    text-decoration: none;
}

.blog-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header .menu-toggle {
        display: block;
    }

    .blog-header .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 0 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .blog-header .nav-links.active {
        max-height: 80vh;
        opacity: 1;
        padding: 2rem;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .blog-header .nav-links li {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        text-align: center;
        padding: 0.5rem 0;
    }

    .blog-header .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .blog-header .nav-links.active li:nth-child(1) { transition-delay: 0.05s; }
    .blog-header .nav-links.active li:nth-child(2) { transition-delay: 0.1s; }
    .blog-header .nav-links.active li:nth-child(3) { transition-delay: 0.15s; }

    .blog-header nav {
        position: relative;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .article-full-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }
}

/* FAQ Specific Styles */
.faq-item {
    background: #f8f9fa;
    border-left: 4px solid #2563eb;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-question {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-question i {
    color: #2563eb;
}

.faq-answer {
    color: #333;
    line-height: 1.8;
}

.faq-answer ul, .faq-answer ol {
    margin: 1rem 0 1rem 2rem;
}

.faq-answer li {
    margin: 0.5rem 0;
}

/* Info boxes */
.highlight-box, .info-box, .warning-box, .success-box {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.highlight-box {
    background: #eff6ff;
    border-color: #2563eb;
}

.info-box {
    background: #f0f9ff;
    border-color: #0284c7;
}

.warning-box {
    background: #fef3c7;
    border-color: #f59e0b;
}

.success-box {
    background: #d1fae5;
    border-color: #10b981;
}

/* Checklist boxes */
.checklist-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.75rem 0;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.checklist-item:hover {
    background: #f3f4f6;
}

.checklist-item i {
    color: #10b981;
    margin-top: 0.2rem;
    font-size: 1.1rem;
}

/* Numbered lists */
.numbered-list {
    counter-reset: item-counter;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.numbered-item {
    counter-increment: item-counter;
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
}

.numbered-item::before {
    content: counter(item-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

/* Comparison tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table thead {
    background: #f3f4f6;
}

.comparison-table th {
    font-weight: 600;
    color: #1f2937;
}

.comparison-table tbody tr:hover {
    background: #f9fafb;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Benefits grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.benefit-item i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.9rem;
    color: #666;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: #2563eb;
}

.btn-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.related-articles h3 {
    color: #1e40af;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: #2563eb;
}

.related-card i {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.related-card h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.related-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Table of contents */
.table-of-contents {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.table-of-contents h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin: 0.8rem 0;
}

.table-of-contents a {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
}

.table-of-contents a:hover {
    color: #1e40af;
    padding-left: 0.5rem;
}

