/* ═══════════════════════════════════════════════════════════════════════════
   QOSTUM · Artículos (2026-11-13)
   Mismo esqueleto que el manual (css del manual + guias.css + doc-tipografia.css)
   con dos columnas: navegación a la izquierda y el artículo. Sin columna derecha.
   Fondo claro #FAFAF9 (SISTEMA §5.20). Naranja solo como acento.
   ═══════════════════════════════════════════════════════════════════════════ */

.layout.art-layout { grid-template-columns: 250px minmax(0, 760px) !important; }
@media (max-width: 1024px) { .layout.art-layout { grid-template-columns: 1fr !important; } }

.breadcrumb a { color: #C86D45; font-weight: 600; text-decoration: none; }
.breadcrumb .sep { color: #9CA3AF; margin: 0 6px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.art-tema { background: none; border: 0; padding: 6px; cursor: pointer; color: #6B7280; display: inline-flex; border-radius: 8px; }
.art-tema:hover { background: #F5F5F4; color: #374151; }
.art-tema .qtt-sun { display: none; }
html[data-theme="dark"] .art-tema .qtt-sun { display: inline; }
html[data-theme="dark"] .art-tema .qtt-moon { display: none; }

/* Aviso de idioma: el cuerpo de los artículos está en español */
.art-solo-es { display: none; font-size: 12.5px; color: #6B7280; margin: 0 0 14px; }
html[lang="en"] .art-solo-es, html[lang="pt"] .art-solo-es { display: block; }

/* Tablas */
.content table td.r, .content table th.r { text-align: right; font-variant-numeric: tabular-nums; }
.content table tr.tot td { font-weight: 700; color: #1F2937; background: #FAFAF9; }
.content table tr.hl td { font-weight: 700; color: #C86D45; background: #FEF3EC; }

/* Columna izquierda */
.art-otros { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.art-otros a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #374151; text-decoration: none; line-height: 1.35; }
.art-otros a span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #9CA3AF; margin-bottom: 1px; }
.art-otros a:hover { background: #F5F5F4; }
.art-cta-lateral { margin-top: 22px; background: #fff; border: 1px solid #E7E5E4; border-radius: 12px; padding: 16px; }
.art-cta-lateral h4 { font-size: 14px; font-weight: 700; color: #1F2937; margin: 0; line-height: 1.35; }
.art-cta-lateral p { font-size: 12.5px; color: #6B7280; margin: 6px 0 12px; line-height: 1.45; }
.art-cta-lateral .btn { width: 100%; justify-content: center; box-sizing: border-box; }
.art-cta-lateral > span { display: block; text-align: center; font-size: 11.5px; color: #9CA3AF; margin-top: 7px; }

/* Calculadora */
.art-calc { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid #E7E5E4; border-radius: 12px; overflow: hidden; margin-top: 14px; }
.art-calc-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 16px; border-right: 1px solid #E7E5E4; align-content: start; }
.art-calc-campos label { font-size: 12px; font-weight: 600; color: #374151; display: flex; flex-direction: column; gap: 4px; }
.art-calc-campos label.ancho { grid-column: 1 / -1; }
.art-calc-campos input { height: 34px; border: 1px solid #E5E7EB; border-radius: 8px; padding: 0 10px; font: 600 13.5px Inter, sans-serif; color: #1F2937; text-align: right; background: #fff; }
.art-calc-campos input:focus { outline: none; border-color: #D97D55; box-shadow: 0 0 0 3px rgba(217,125,85,.12); }
/* Casillas editables: se distinguen del resultado (borde y texto en acento + lápiz) */
.art-calc-campos input { border: 1.5px solid #E8A98A; color: #C86D45; padding-left: 30px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D97D55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E") no-repeat 10px center / 13px 13px; }
.art-calc-campos input:hover { border-color: #D97D55; }
.content .art-calc-tip { grid-column: 1 / -1; margin: 0 0 2px !important; font-size: 12px !important; color: #6B7280 !important; line-height: 1.4 !important; }
.art-calc-res { padding: 16px 18px; background: #FAFAF9; display: flex; flex-direction: column; justify-content: center; }
.art-calc-res .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6B7280; }
.art-calc-res .v { font-size: 30px; font-weight: 800; color: #C86D45; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.art-calc-res .d { font-size: 13px; color: #4B5563; margin-top: 6px; line-height: 1.5; }
.art-calc-res .btn { margin-top: 12px; align-self: flex-start; }

/* Figuras */
.art-fig { margin: 14px 0 0; }
.art-fig img { display: block; width: 100%; height: auto; border: 1px solid #E7E5E4; border-radius: 10px; background: #fff; }
.art-fig figcaption { font-size: 12px; color: #9CA3AF; margin-top: 6px; }
.art-dos { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 18px; align-items: start; margin-top: 6px; }
.art-dos .step-row p { margin: 2px 0 0; font-size: 13.5px; }
.art-link { color: #C86D45; font-weight: 600; text-decoration: none; }
.art-link:hover { text-decoration: underline; }

/* Llamada final */
.art-cierre { margin-top: 36px; background: #fff; border: 1px solid #E7E5E4; border-radius: 14px; padding: 22px 24px; }
.art-cierre h3 { margin: 4px 0 6px !important; }
.art-cierre p { margin: 0; }
.art-cierre-acc { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.art-cierre-acc > span { font-size: 12.5px; color: #9CA3AF; }

/* Índice de artículos */
.art-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.art-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E7E5E4; border-radius: 14px; padding: 20px 20px 18px; text-decoration: none; color: inherit; transition: box-shadow .18s, border-color .18s; }
.art-card:hover { border-color: #D6D3D1; box-shadow: 0 10px 24px -16px rgba(17,24,39,.3); }
.art-card .cat { align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #C86D45; background: #FEF3EC; padding: 3px 9px; border-radius: 999px; }
.art-card h3 { font-size: 17px !important; font-weight: 700; color: #1F2937; line-height: 1.35; margin: 12px 0 6px !important; }
.art-card p { font-size: 14px; color: #4B5563; line-height: 1.55; margin: 0; }
.art-card .meta { margin-top: auto; padding-top: 14px; font-size: 12.5px; color: #9CA3AF; display: flex; justify-content: space-between; }
.art-card .meta b { color: #C86D45; font-weight: 600; }

@media (max-width: 1024px) {
  .art-calc, .art-dos, .art-lista { grid-template-columns: 1fr; }
  .art-calc-campos { border-right: 0; border-bottom: 1px solid #E7E5E4; }
  .art-cta-lateral { display: none; }
  .art-otros, .art-otros-lbl { display: none; }
}
@media (max-width: 960px) { .doc-inicio { display: none !important; } }
@media (max-width: 600px) {
  .art-calc-campos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .art-calc-campos input { min-width: 0; width: 100%; box-sizing: border-box; }
  .content .art-calc-tip { white-space: normal; }
  .content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13px; }
  .content table th, .content table td { padding: 8px 10px; }
  .brand-divider, .breadcrumb { display: none !important; }
  .hero-eyebrow .art-fecha { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .btn-primary { padding: 7px 12px; font-size: 13px; }
}

/* ── Modo oscuro ── */
html[data-theme="dark"] .breadcrumb a, html[data-theme="dark"] .art-link, html[data-theme="dark"] .art-card .meta b { color: #E8A98A; }
html[data-theme="dark"] .art-tema { color: var(--qd-text-muted, #9aa4b2); }
html[data-theme="dark"] .art-tema:hover { background: var(--qd-surface-2, #232c38); }
html[data-theme="dark"] .art-otros a { color: var(--qd-text, #e6e9ee); }
html[data-theme="dark"] .art-otros a:hover { background: var(--qd-surface-2, #232c38); }
html[data-theme="dark"] .art-cta-lateral, html[data-theme="dark"] .art-calc, html[data-theme="dark"] .art-cierre, html[data-theme="dark"] .art-card {
  background: var(--qd-surface, #1b212b); border-color: var(--qd-border, #323b48); }
html[data-theme="dark"] .art-cta-lateral h4, html[data-theme="dark"] .art-card h3 { color: var(--qd-text, #e6e9ee); }
html[data-theme="dark"] .art-cta-lateral p, html[data-theme="dark"] .art-card p, html[data-theme="dark"] .art-calc-res .d,
html[data-theme="dark"] .art-calc-campos label, html[data-theme="dark"] .art-solo-es { color: var(--qd-text-muted, #9aa4b2); }
html[data-theme="dark"] .art-calc-campos { border-color: var(--qd-border, #323b48); }
html[data-theme="dark"] .art-calc-campos input { background-color: var(--qd-surface-2, #232c38) !important; border-color: rgba(232,169,138,.55) !important; color: #E8A98A !important; }
html[data-theme="dark"] .content .art-calc-tip { color: var(--qd-text-muted, #9aa4b2) !important; }
html[data-theme="dark"] .art-calc-res { background: var(--qd-surface-2, #232c38); }
html[data-theme="dark"] .art-calc-res .v { color: #E8A98A; }
html[data-theme="dark"] .art-card .cat { background: rgba(217,125,85,.16); color: #E8A98A; }
html[data-theme="dark"] .art-fig img { border-color: var(--qd-border, #323b48); }
html[data-theme="dark"] .content table tr.tot td { background: var(--qd-surface-2, #232c38); color: var(--qd-text, #e6e9ee); }
html[data-theme="dark"] .content table tr.hl td { background: rgba(217,125,85,.14); color: #E8A98A; }
