/* =========================================================
   DIAGNÓSTICO — impresión / "Guardar como PDF"
   Convierte el informe en un documento limpio, siempre en claro.
========================================================= */
@media print{
  @page{size:A4; margin:16mm 14mm;}

  :root, :root[data-theme="dark"], :root[data-theme="light"]{
    --color-bg:#fff; --color-bg-alt:#f6f8fb; --color-surface:#fff;
    --color-border:rgba(15,23,42,.14); --color-border-strong:rgba(15,23,42,.28);
    --color-text:#0e1420; --color-text-muted:#3b4658; --color-text-faint:#5c6679;
    --color-primary:#2f6fed; --color-primary-light:#1b5fcc;
    --shadow-md:none; --shadow-sm:none; --shadow-lg:none;
    color-scheme:light;
  }
  html, body{background:#fff !important; color:#0e1420 !important; -webkit-print-color-adjust:exact; print-color-adjust:exact;}
  body{background-image:none !important;}

  .skip-link, .header, .mobile-nav, .footer, .wa-float, .back-to-top,
  .dx-next, .dx-tools, .dx-meter__scale, .eyebrow .signal{display:none !important;}

  .dx-result{padding:0 !important;}
  .container{max-width:none !important; padding:0 !important;}
  .dx-report{max-width:none;}

  .dx-print-head{display:flex !important; align-items:center; justify-content:space-between; gap:16px; padding-bottom:14px; margin-bottom:22px; border-bottom:2px solid #2f6fed;}
  .dx-print-head__brand{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:14pt;}
  .dx-print-head__brand img{width:28px; height:28px;}
  .dx-print-head__title{font-family:var(--font-mono); font-size:8.5pt; letter-spacing:.08em; text-transform:uppercase; color:#3b4658; text-align:right;}

  .dx-report__hero, .dx-section, .dx-result__grid{padding-top:18px; padding-bottom:18px;}
  .dx-report__hero, .dx-section, .dx-result__grid, .dx-finding, .dx-cat, .dx-highlight{break-inside:avoid; page-break-inside:avoid;}
  .dx-result__grid{grid-template-columns:1fr 1fr; gap:28px;}
  .dx-score{font-size:60pt;}
  .dx-result__title{font-size:24pt;}

  .dx-meter__fill, .dx-cat__track i, .dx-meter__marker{-webkit-print-color-adjust:exact; print-color-adjust:exact; transition:none !important;}
  a{color:inherit; text-decoration:none;}
}
