.article-main {
    padding: 40px 0;
    background-color: var(--bg-light);
    min-height: calc(100vh - 400px);
}

.article-page {
    max-width: 960px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.article-header {
    padding: 40px 40px 20px;
}

.article-category-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.article-page-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 40px;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-featured-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 400px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8e8 100%);
    color: var(--text-gray);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}
.article-featured-placeholder-visible {
    display: flex;
}

.article-body {
    padding: 0 40px 40px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-intro {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.article-body h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Tablas, listas, gráficos y callouts (artículos y páginas tipo multas) */
.article-body .article-table-wrap,
.page-content .article-table-wrap {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.article-body table.article-table,
.page-content table.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    background: var(--bg-white);
}
.article-body table.article-table th,
.article-body table.article-table td,
.page-content table.article-table th,
.page-content table.article-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}
.article-body table.article-table th,
.page-content table.article-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}
.article-body table.article-table tr:hover td,
.page-content table.article-table tr:hover td {
    background: rgba(0,0,0,0.02);
}
.article-body table.article-table caption,
.page-content table.article-table caption {
    padding: 10px 16px;
    font-weight: 600;
    text-align: left;
    caption-side: top;
    color: var(--text-dark);
}

/* Listas destacadas en artículos */
.article-body .article-list-box,
.page-content .article-list-box {
    margin: 28px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    border-radius: 8px;
}
.article-body .article-list-box h3,
.page-content .article-list-box h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.1rem;
}
.article-body .article-list-box ul,
.article-body .article-list-box ol,
.page-content .article-list-box ul,
.page-content .article-list-box ol {
    margin: 0;
    padding-left: 1.4em;
}
.article-body .article-list-box li,
.page-content .article-list-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Gráfico de barras simple (CSS) */
.article-body .article-chart,
.page-content .article-chart {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--bg-light);
    border-radius: 8px;
}
.article-body .article-chart h3,
.page-content .article-chart h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.05rem;
}
.article-body .article-chart .article-chart-bar,
.page-content .article-chart .article-chart-bar {
    margin-bottom: 14px;
}
.article-body .article-chart .article-chart-label,
.page-content .article-chart .article-chart-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.article-body .article-chart .article-chart-track,
.page-content .article-chart .article-chart-track {
    height: 24px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.article-body .article-chart .article-chart-fill,
.page-content .article-chart .article-chart-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
    min-width: 4px;
}

/* Caja de puntos clave / callout */
.article-body .article-callout,
.page-content .article-callout {
    margin: 28px 0;
    padding: 22px 26px;
    background: #f0f7ff;
    border-radius: 8px;
}
.article-body .article-callout.article-callout--tip,
.page-content .article-callout.article-callout--tip {
    background: #f0fff4;
}
.article-body .article-callout.article-callout--warning,
.page-content .article-callout.article-callout--warning {
    background: #fff8e6;
}
.article-body .article-callout h3,
.page-content .article-callout h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.05rem;
}
.article-body .article-callout ul,
.page-content .article-callout ul {
    margin: 0;
    padding-left: 1.3em;
}
.article-body .article-callout li,
.page-content .article-callout li {
    margin-bottom: 6px;
}

.article-navigation {
    padding: 30px 40px;
    border-top: 1px solid #e0e0e0;
}

.nav-back {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-back:hover {
    color: var(--text-gray);
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .article-page {
        margin: 20px;
        border-radius: 0;
    }

    .article-header,
    .article-body,
    .article-navigation {
        padding-left: 20px;
        padding-right: 20px;
    }

    .article-page-title {
        font-size: 28px;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 24px;
    }

    .article-body h3 {
        font-size: 20px;
    }

    .article-featured-image {
        height: 250px;
    }

    .article-intro {
        font-size: 18px;
    }
}

