/* ================================================
   BLOG ARTICLE STYLES - MULTIFIRMAS
   Modern Dark Design for Article Pages
   ================================================ */

/* Article Hero */
.article-hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0a0f1e 0%, #111827 50%, #0a0f1e 100%);
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
}

.article-hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
}

.article-category {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.article-hero h1 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 24px;
    max-width: 752px;
    letter-spacing: -0.02em;
    text-align: left;
}

.article-excerpt {
    font-size: 18px;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 752px;
    text-align: left;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    color: #64748b;
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Article Layout */
.article-content {
    padding: 60px 0 100px;
    background: #0f172a;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Article Body */
.article-body {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 24px;
    padding: 48px;
    margin: 0 auto;
    max-width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

/* Lead Paragraph */
.article-lead {
    font-size: 20px;
    color: #e2e8f0;
    line-height: 1.8;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    font-weight: 400;
}

/* Headings */
.article-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 48px 0 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    letter-spacing: -0.01em;
}

.article-body h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 36px 0 16px;
}

.article-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #cbd5e1;
    margin: 24px 0 12px;
}

/* Paragraphs */
.article-body p {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Highlight Box - Dato Interesante */
.dato-interesante {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-left: 4px solid #3b82f6;
    border-radius: 16px;
    padding: 28px 32px;
    margin: 36px 0;
    position: relative;
    overflow: hidden;
}

.dato-interesante::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.dato-interesante h4 {
    color: #60a5fa;
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dato-interesante h4::before {
    content: '';
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E") no-repeat center;
}

.dato-interesante p {
    font-size: 15px;
    margin-bottom: 12px;
}

.dato-interesante ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.dato-interesante li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dato-interesante li:last-child {
    border-bottom: none;
}

/* Norma Badge */
.norma-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 6px;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.multa-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

/* Lists */
.article-body ul,
.article-body ol {
    margin: 20px 0 28px;
    padding: 0;
    list-style: none;
}

.article-body ul li,
.article-body ol li {
    position: relative;
    padding: 14px 20px 14px 52px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.25);
    border-radius: 12px;
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.article-body ul li:hover,
.article-body ol li:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(8px);
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
}

.article-body ul li strong,
.article-body ol li strong {
    color: #e2e8f0;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.stat-card {
    background: linear-gradient(165deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #60a5fa;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
}

/* Comparison Box */
.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.comparison-column {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 16px;
    padding: 28px;
}

.comparison-column.positive {
    border-color: rgba(52, 211, 153, 0.3);
    background: linear-gradient(165deg, rgba(52, 211, 153, 0.05), rgba(30, 41, 59, 0.5));
}

.comparison-column.negative {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(165deg, rgba(239, 68, 68, 0.05), rgba(30, 41, 59, 0.5));
}

.comparison-column h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.comparison-column.positive h4 {
    color: #34d399;
}

.comparison-column.negative h4 {
    color: #f87171;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 48px 0;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-box h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 12px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.cta-box .btn {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: #2563eb;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
}

.sidebar-widget h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    margin-bottom: 12px;
}

.sidebar-widget a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.2);
    border-radius: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-widget a:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #fff;
}

.sidebar-widget a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
}

/* Related Articles Grid */
.related-grid {
    display: grid;
    gap: 16px;
}

.related-item {
    position: relative;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.related-item h5 {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.related-item p {
    color: #64748b;
    font-size: 12px;
    margin: 0;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 120px 0 60px;
    }
    .article-hero h1 {
        max-width: 100%;
        padding: 0 16px;
        font-size: clamp(22px, 5vw, 32px);
    }
    .article-excerpt {
        max-width: 100%;
        padding: 0 16px;
        font-size: 16px;
    }
    .article-body {
        padding: 32px 20px;
    }
    
    .article-hero h1 {
        font-size: 26px;
    }
    
    .article-excerpt {
        font-size: 16px;
    }
    
    .article-body {
        padding: 28px 24px;
    }
    
    .article-body h2 {
        font-size: 22px;
    }
    
    .article-body h3 {
        font-size: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-box {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 28px 20px;
    }
}

/* Keyframes for entrance */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-body > * {
    animation: slideIn 0.5s ease-out both;
}

.article-body > *:nth-child(1) { animation-delay: 0.05s; }
.article-body > *:nth-child(2) { animation-delay: 0.1s; }
.article-body > *:nth-child(3) { animation-delay: 0.15s; }
.article-body > *:nth-child(4) { animation-delay: 0.2s; }
.article-body > *:nth-child(5) { animation-delay: 0.25s; }
/* ==========================================================================
   SEO/GEO BLOCKS (autogenerated by enhance_blog.cjs)
   ========================================================================== */

/* Breadcrumbs - ultra minimalist with subtle pill */
.seo-breadcrumbs {
    margin: 0 0 32px 0;
    font-size: 0.75rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
}
.seo-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}
.seo-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    font-weight: 400;
}
.seo-breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: #cbd5e1;
    font-weight: 300;
    margin: 0 6px;
    font-size: 0.85rem;
}
.seo-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
}
.seo-breadcrumbs a:hover {
    color: var(--primary, #0066CC);
    border-bottom-color: rgba(0, 102, 204, 0.4);
}
.seo-breadcrumbs li[aria-current="page"] {
    color: #475569;
    font-weight: 500;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Article hero image - NO stretching, keep natural aspect */
.seo-article-image {
    margin: 0 0 32px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    text-align: center;
}
.seo-article-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    /* Keep natural 16:9 aspect ratio, optimized for retina */
    aspect-ratio: 16 / 9;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.seo-article-image figcaption {
    padding: 14px 20px;
    font-size: 0.875rem;
    color: #374151;
    background: rgba(0, 102, 204, 0.04);
    border-top: 1px solid #f3f4f6;
    line-height: 1.5;
    text-align: left;
}

/* SEO Blocks - common */
.seo-block {
    margin: 32px 0;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04);
}
.seo-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin: 0 0 16px 0;
    line-height: 1.3;
}
.seo-block h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    margin: 0 0 16px 0;
    line-height: 1.3;
}
.seo-block p {
    color: var(--gray-700, #374151);
    line-height: 1.65;
    margin: 0 0 16px 0;
}

/* Legal norms table */
.seo-norms-table .legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}
.seo-norms-table .legal-table thead {
    background: linear-gradient(135deg, #0066CC 0%, #0052a3 100%);
    color: #ffffff;
}
.seo-norms-table .legal-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.seo-norms-table .legal-table td {
    padding: 14px 16px;
    border-top: 1px solid var(--gray-200, #e5e7eb);
    color: var(--gray-800, #1f2937);
    vertical-align: top;
}
.seo-norms-table .legal-table tbody tr:hover {
    background: rgba(0, 102, 204, 0.04);
}
.seo-norms-table .legal-table code {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.875rem;
    font-weight: 600;
}
.seo-source {
    font-size: 0.8rem;
    color: var(--gray-500, #6b7280);
    font-style: italic;
    margin-top: 12px;
}

/* Como cumplir block */
.seo-como-cumplir {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border-left: 4px solid var(--primary, #0066CC);
}
.seo-steps {
    margin: 16px 0;
    padding-left: 24px;
    counter-reset: step;
    list-style: none;
}
.seo-steps {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
    margin: 16px 0 0 0;
}
.seo-block ol.seo-steps > li,
.seo-block ul.seo-steps > li {
    position: relative;
    padding: 20px 20px 20px 60px;
    margin-bottom: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    border: 1px solid #1e40af;
    border-radius: 10px;
    line-height: 1.6;
    counter-increment: step;
    box-shadow: 0 4px 12px -4px rgba(30, 64, 175, 0.4);
    font-size: 0.95rem;
}
.seo-block ol.seo-steps > li::before,
.seo-block ul.seo-steps > li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #ffffff !important;
    color: #1e3a8a !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
}
.seo-block ol.seo-steps > li strong,
.seo-block ul.seo-steps > li strong {
    color: #fbbf24 !important;
    font-weight: 700;
    font-size: 1rem;
}
.seo-tip {
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid #10b981;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #065f46;
}

/* FAQ section */
.seo-faq-section {
    background: #ffffff;
}
.seo-faq-item {
    margin: 0 0 12px 0;
    padding: 16px 20px;
    background: var(--gray-50, #f9fafb);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 8px;
    transition: all 0.2s ease;
}
.seo-faq-item[open] {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.06) 0%, rgba(124, 58, 237, 0.04) 100%);
    border-color: rgba(0, 102, 204, 0.5);
    box-shadow: 0 4px 12px -4px rgba(0, 102, 204, 0.2);
}
.seo-faq-item[open] p {
    color: #1e293b;
    font-weight: 400;
}
.seo-faq-item[open] summary {
    color: #0f172a;
}
.seo-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-900, #111827);
    list-style: none;
    padding-right: 32px;
    position: relative;
    line-height: 1.4;
}
.seo-faq-item summary::-webkit-details-marker {
    display: none;
}
.seo-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary, #0066CC);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}
.seo-faq-item[open] summary::after {
    content: '−';
    background: #7c3aed;
}
.seo-faq-item p {
    margin: 12px 0 0 0;
    color: var(--gray-700, #374151);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .seo-block {
        padding: 20px 16px;
    }
    .seo-norms-table .legal-table {
        font-size: 0.85rem;
    }
    .seo-norms-table .legal-table th,
    .seo-norms-table .legal-table td {
        padding: 10px 8px;
    }
    .seo-article-image {
        margin: 0 -16px 24px -16px;
        border-radius: 0;
    }
    .seo-breadcrumbs li[aria-current="page"] {
        max-width: 160px;
    }
}