/* ══════════════════════════════════════════════
   BLOG ARTICLE STYLES - MindBlock
   Sistema de diseño para artículos del blog
   ══════════════════════════════════════════════ */

/* ── Hero ── */
.article-hero {
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 40%, #007aff 100%);
    color: white;
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}

.article-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236,72,153,0.12) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    border-radius: 50%;
}

.article-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-category {
    background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(236,72,153,0.3));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.article-hero h1 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.15;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ── Breadcrumb ── */
.blog-breadcrumb-bar {
    background: #f1f5f9;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.blog-breadcrumb {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
}

.blog-breadcrumb a {
    color: #007aff;
    text-decoration: none;
}

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

/* ── Content Layout ── */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 24px 80px;
    display: block;
}

.article-content .article-body {
    max-width: 100%;
}

/* ── Typography ── */
.article-body .lead {
    font-size: 1.2rem;
    line-height: 1.85;
    color: #475569;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-body h2 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.9rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #1e293b;
    line-height: 1.25;
    scroll-margin-top: 80px;
}

.article-body h3 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #334155;
    line-height: 1.3;
}

.article-body h4 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    color: #334155;
}

.article-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.4rem;
    color: #475569;
}

.article-body a {
    color: #007aff;
    text-decoration: none;
    font-weight: 600;
}

.article-body a:hover {
    text-decoration: underline;
    color: #007aff;
}

.article-body strong {
    color: #1e293b;
}

.article-body ul,
.article-body ol {
    margin: 1.2rem 0 1.6rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.7rem;
    line-height: 1.75;
    color: #475569;
    font-size: 1.02rem;
}

.article-body li strong {
    color: #1e293b;
}

/* ── Images ── */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── Blockquote ── */
.article-body blockquote {
    border-left: 4px solid #ff6d00;
    background: #f5f3ff;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4c1d95;
}

/* ── Tables ── */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.article-body thead tr {
    background: linear-gradient(135deg, #007aff, #ff6d00);
    color: white;
}

.article-body th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
}

.article-body td {
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.article-body tbody tr:nth-child(even) {
    background: #f8fafc;
}

.article-body tbody tr:hover {
    background: #f0f9ff;
}

/* ── Code ── */
.article-body code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    color: #ff6d00;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ── Details/FAQ ── */
.article-body details {
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.article-body details:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.article-body details summary {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 1.02rem;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.article-body details summary:hover {
    background: #f1f5f9;
}

.article-body details summary::-webkit-details-marker {
    display: none;
}

.article-body details summary::after {
    content: "+";
    font-size: 1.4rem;
    color: #007aff;
    font-weight: 700;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}

.article-body details[open] summary::after {
    transform: rotate(45deg);
}

.article-body details p {
    padding: 0 24px 18px;
    margin-bottom: 0;
    font-size: 0.98rem;
}

/* ── Article CTA ── */
.article-cta {
    background: linear-gradient(135deg, #007aff 0%, #ff6d00 50%, #fbbd15 100%);
    color: white;
    padding: 44px;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    top: -100px;
    right: -50px;
    border-radius: 50%;
}

.article-cta h3 {
    color: white !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    font-size: 1.5rem;
    position: relative;
}

.article-cta p {
    color: rgba(255,255,255,0.85) !important;
    margin-bottom: 24px !important;
    position: relative;
}

.article-cta a {
    display: inline-block;
    background: white;
    color: #007aff !important;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.article-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    text-decoration: none !important;
}

/* ── Related Articles Grid ── */
.article-related {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.article-related a {
    display: block;
    background: white;
    padding: 22px;
    border-radius: 14px;
    text-decoration: none !important;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-related a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    text-decoration: none !important;
}

.article-related strong {
    color: #1e293b;
    display: block;
    margin-bottom: 6px;
    font-size: 1.02rem;
}

.article-related span {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 400;
}

/* ── Table of Contents ── */
.article-toc {
    background: #f0f9ff;
    padding: 24px 28px;
    border-radius: 14px;
    margin-bottom: 36px;
    border: 1px solid #bfdbfe;
}

.article-toc strong {
    display: block;
    margin-bottom: 12px;
    color: #1e40af;
    font-size: 0.95rem;
}

.article-toc ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.article-toc li {
    margin: 0 !important;
    padding: 0 !important;
}

.article-toc a {
    color: #2563eb !important;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    transition: color 0.2s;
}

.article-toc a:hover {
    color: #007aff !important;
}

.article-toc a::before {
    content: '→';
    color: #93c5fd;
    font-size: 0.85rem;
}

/* ── Info/Highlight Boxes ── */
.article-info-box {
    padding: 28px;
    border-radius: 16px;
    margin: 32px 0;
}

.article-info-box.success {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #86efac;
}

.article-info-box.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a33);
    border: 1px solid #f59e0b;
}

.article-info-box.info {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border: 1px solid #c7d2fe;
}

.article-info-box h3 {
    margin-top: 0 !important;
    margin-bottom: 12px;
}

.article-info-box p {
    margin-bottom: 0 !important;
    font-size: 1.02rem;
    line-height: 1.7;
}

/* ── Comparison Grid ── */
.article-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0 32px;
}

.article-comparison > div {
    padding: 24px;
    border-radius: 14px;
}

/* ── Feature Cards Grid ── */
.article-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin: 24px 0 32px;
}

.article-cards > div {
    padding: 24px;
    border-radius: 14px;
}

/* ── Steps / Timeline ── */
.article-steps {
    position: relative;
    padding-left: 36px;
    margin: 28px 0;
}

.article-steps::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #ff6d00, #fbbd15, #007aff, #ff6d00, #10b981);
    border-radius: 2px;
}

.article-step {
    position: relative;
    margin-bottom: 28px;
}

.article-step-dot {
    position: absolute;
    left: -30px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid white;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .article-hero {
        padding: 90px 0 50px;
    }

    .article-hero h1 {
        font-size: 1.9rem;
    }

    .article-content {
        padding: 36px 20px 60px;
    }

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

    .article-body h3 {
        font-size: 1.2rem;
    }

    .article-cta {
        padding: 30px 24px;
    }

    .article-comparison {
        grid-template-columns: 1fr;
    }

    .article-cards {
        grid-template-columns: 1fr;
    }

    .article-related {
        grid-template-columns: 1fr;
    }

    .article-body table {
        font-size: 0.85rem;
    }

    .article-body th,
    .article-body td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .article-hero h1 {
        font-size: 1.6rem;
    }

    .article-body .lead {
        font-size: 1.05rem;
    }
}
