/* Artículos del blog con maquetación "article-*": tema claro del sitio.
   Sustituye a los estilos oscuros que cada artículo llevaba en línea. */
.article-container { max-width: 840px; margin: 32px auto 56px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 48px; box-shadow: 0 2px 6px #10283f08; }
.article-header { text-align: center; margin-bottom: 36px; }
.article-category { display: inline-block; background: #fff1e7; color: var(--accent); padding: 5px 14px; border-radius: 99px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.article-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: var(--text); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 18px; }
.article-meta { color: var(--text-muted); font-size: .92rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.article-hero-img { display: block; width: 100%; height: auto; border-radius: 14px; margin: 0 0 36px; border: 1px solid var(--border); }
.article-content { font-size: 1.08rem; line-height: 1.8; color: #374151; }
.article-content h2 { font-size: 1.65rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 2px solid #fde3d0; }
.article-content h3 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 30px 0 12px; }
.article-content h4 { font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.article-content p { margin: 0 0 20px; }
.article-content ul, .article-content ol { margin: 0 0 22px; padding-left: 22px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content a { color: var(--accent); }

/* Cajas de aviso e información */
.alert-box, .info-box, .quote-block { border-left: 4px solid; padding: 18px 24px; margin: 28px 0; border-radius: 0 12px 12px 0; }
.alert-box { background: #fef2f2; border-color: #ef4444; }
.alert-title { color: #b91c1c; font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.info-box { background: #fff7ed; border-color: var(--accent); }
.info-box-title { color: #c2410c; font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.quote-block { background: #f8fafc; border-color: var(--accent); font-style: italic; color: var(--text-secondary); }
.alert-box p:last-child, .info-box p:last-child, .quote-block p:last-child { margin-bottom: 0; }

/* Tarjetas de documentos */
.doc-card { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 28px 0; }
.doc-title { color: var(--text); font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.doc-badge { background: #fff1e7; color: #c2410c; padding: 3px 9px; border-radius: 6px; font-size: .78rem; font-weight: 700; }

/* Comparativas en dos columnas */
.concept-grid, .pro-con-box { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0; }
.concept-card { background: #f8fafc; border: 1px solid var(--border); padding: 24px; border-radius: 14px; }
.concept-title { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 14px; text-align: center; border-bottom: 2px solid #fde3d0; padding-bottom: 10px; }
.pro-box, .con-box { border-radius: 14px; padding: 24px; border: 1px solid; }
.pro-box { background: #ecfdf5; border-color: #a7f3d0; }
.con-box { background: #fef2f2; border-color: #fecaca; }
.pro-box h4 { color: #047857; }
.con-box h4 { color: #b91c1c; }
.pro-box ul, .con-box ul { margin-bottom: 0; }

/* Esquema de pasos */
.schema-box { background: #10283f; color: #e2eaf3; border-radius: 14px; padding: 28px; margin: 36px 0; text-align: center; }
.schema-title { font-size: 1.15rem; color: #ffc7a4; font-weight: 800; margin-bottom: 18px; }
.schema-steps { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.schema-step { flex: 1; min-width: 120px; background: #ffffff14; border: 1px solid #ffffff26; color: #fff; padding: 14px; border-radius: 10px; font-size: .92rem; font-weight: 700; }
.schema-arrow { color: #fb923c; font-size: 1.4rem; }

/* Tabla de tramos */
.tax-table { width: 100%; border-collapse: collapse; margin: 28px 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: .98rem; }
.tax-table th { background: #10283f; color: #fff; padding: 12px 14px; text-align: left; font-weight: 700; }
.tax-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); background: #fff; }
.tax-table tr:nth-child(even) td { background: #f8fafc; }
.tax-table tr:last-child td { border-bottom: 0; }

/* Placas de exportación */
.plates-comparison { display: flex; gap: 20px; margin: 36px 0; }
.plate-card { flex: 1; border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.plate-card.red-plate { background: #fef2f2; border-color: #fecaca; }
.plate-card.yellow-plate { background: #fefce8; border-color: #fde68a; }
.plate-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; text-align: center; }
.red-title { color: #b91c1c; }
.yellow-title { color: #a16207; }

@media (max-width: 768px) {
  .article-container { padding: 26px 18px; margin-top: 16px; border-radius: 12px; }
  .concept-grid, .pro-con-box { grid-template-columns: 1fr; }
  .plates-comparison { flex-direction: column; }
  .schema-steps { flex-direction: column; }
  .schema-arrow { transform: rotate(90deg); }
  .tax-table { display: block; overflow-x: auto; }
}

/* Páginas de datos */
.table-scroll { max-width: 100%; overflow-x: auto; margin: 24px 0; }
.table-scroll .tax-table { margin: 0; }
.formula { background: #10283f; color: #fff; font-weight: 700; padding: 16px 20px; border-radius: 10px; text-align: center; }
