/*
 * plan.css — PDF "plan de acción" (single-card payoff), compartido por las
 * calculadoras de salir-de-deuda. Acompaña a plan.js (que inyecta el bloque).
 * Autosuficiente para impresión: incluye el scaffolding (@page, ocultar el cromo
 * del sitio) porque no todas las páginas cargan print.css. La página trae su
 * propio #btn-print → print.js se autoexcluye y no duplica el informe genérico.
 */
.print-plan { display: none; }

@media print {
  @page { margin: 0; }  /* saca el cromo del navegador (fecha+hora, URL, nº de página) */

  /* Ocultar cromo del sitio y todo el resultado normal del tool */
  .site-header, .site-footer, .rt-hero, .rt-panel, .rt-related, .rt-crosslink,
  .rt-verdict, .rt-nota, .rt-next, .rt-share, .disclaimer, .rt-ai, .rt-chart,
  .bar-chart, .rt-gauge, .rt-detail, details, .alert, .rt-info { display: none !important; }

  html, body { background: #fff !important; }
  body { margin: 0 !important; padding: 1cm 1.4cm !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .container { max-width: none; padding: 0; margin: 0; }
  .rt-layout { display: block !important; }
  a { color: #000 !important; text-decoration: none; }

  /* El plan */
  .print-plan { display: block !important; color: #1B2D4F; font-family: Georgia, "Times New Roman", serif; }
  .pp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid #1B2D4F; padding-bottom: 8px; margin-bottom: 10px; }
  .pp-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: #1B2D4F; }
  .pp-brand svg { width: 26px; height: 26px; flex-shrink: 0; }
  .pp-fecha { font-size: .74rem; color: #555; }
  .pp-h1 { font-size: 1.5rem; margin: 0 0 14px; letter-spacing: -.01em; }
  .pp-kicker { font-family: Arial, Helvetica, sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }
  .pp-kicker--ok { color: #1A6B3A; }
  .pp-kicker--warn { color: #E05C3A; }
  .pp-goal { border: 1.5px solid #1A6B3A; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; page-break-inside: avoid; }
  .pp-goal-main { font-size: 1.5rem; margin: 0 0 6px; }
  .pp-goal-main b { color: #1A6B3A; }
  .pp-goal-sub { font-size: .86rem; margin: 0 0 10px; color: #333; }
  .pp-goal-kpis { display: flex; gap: 28px; margin-bottom: 14px; }
  .pp-goal-kpis b { display: block; font-size: 1.25rem; color: #1A6B3A; }
  .pp-goal-kpis span { font-size: .74rem; color: #555; }
  .pp-track-label { font-size: .82rem; margin: 0 0 8px; font-weight: 700; }
  .pp-track { display: flex; flex-wrap: wrap; gap: 7px; }
  .pp-box { width: 30px; height: 30px; border: 1.5px solid #1B2D4F; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .62rem; color: #8a93a0; font-family: Arial, sans-serif; }
  .pp-trap { margin-bottom: 16px; page-break-inside: avoid; }
  .pp-h2 { font-size: 1.05rem; margin: 0 0 8px; }
  .pp-trap p { font-size: .86rem; line-height: 1.5; margin: 0 0 6px; }
  .pp-trap-list { margin: 4px 0 0; padding-left: 18px; }
  .pp-trap-list li { font-size: .86rem; line-height: 1.6; }
  .pp-accel { margin-bottom: 16px; page-break-inside: avoid; }
  .pp-accel-intro { font-size: .86rem; margin: 0 0 8px; }
  .pp-accel-row { border: 1px solid #c8ccd2; border-radius: 8px; padding: 9px 13px; margin-bottom: 8px; font-size: .86rem; line-height: 1.45; }
  .pp-accel-row b { color: #1A6B3A; }
  .pp-foot { border-top: 1px solid #bbb; padding-top: 8px; margin-top: 4px; }
  .pp-foot-title { font-weight: 700; font-size: .72rem; margin: 0 0 4px; }
  .pp-foot ul { margin: 0; padding-left: 16px; }
  .pp-foot li { font-size: .68rem; color: #555; line-height: 1.5; }
}
