/* ==========================================================================
   HIDROGEO 3D — Modales, comparación de escenarios e informe técnico
   ========================================================================== */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100; background: rgba(3, 7, 10, .72);
  backdrop-filter: blur(4px); display: grid; place-items: center; padding: 28px;
}
.modal {
  width: min(1040px, 100%); max-height: min(90vh, 1000px); display: flex; flex-direction: column;
  background: #0b141c; border: 1px solid var(--line2); border-radius: 10px;
  box-shadow: 0 40px 100px rgba(0,0,0,.7); overflow: hidden;
}
.modal.wide { width: min(1180px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--line); flex: none; }
.modal-head h2 { font-size: 17px; font-weight: 650; margin-top: 2px; }
.modal-body { overflow: auto; min-height: 0; flex: 1; background: #091119; }
.modal-foot { display: flex; justify-content: flex-end; gap: 7px; padding: 10px 16px; border-top: 1px solid var(--line); background: #0a1219; flex: none; }

/* ---------------------------- comparación -------------------------------- */
.compare-intro { padding: 14px 16px 0; font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.compare-grid { display: grid; gap: 10px; padding: 14px 16px 18px; }
.compare-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.cmp-card { border: 1px solid var(--line); border-radius: 7px; background: var(--panel2); overflow: hidden; }
.cmp-card header { padding: 8px 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.cmp-card header b { font-size: 11px; }
.cmp-card header span { font-size: 8.5px; color: var(--dim); font-family: var(--mono); }
.cmp-thumb { width: 100%; height: 110px; object-fit: cover; display: block; background: #071016; }
.cmp-body { padding: 8px 10px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; }
.cmp-body div { display: flex; justify-content: space-between; gap: 4px; font-size: 9px; color: var(--dim); }
.cmp-body div b { font-family: var(--mono); color: #c5d8e3; font-weight: 500; }
.cmp-body div.hl b { color: var(--accent); }
.delta-up { color: var(--red) !important; }
.delta-down { color: var(--green) !important; }

/* ------------------------------- informe --------------------------------- */
.report-scroll { background: #dfe4e7; padding: 0; }
.report-frame { display: block; width: 100%; height: calc(88vh - 132px); min-height: 480px; border: 0; background: #dfe4e7; }
.report-paper {
  width: 100%; max-width: 860px; margin: 0 auto; background: #fff; color: #16232b;
  padding: 46px 48px 54px; box-shadow: 0 10px 40px rgba(0,0,0,.35);
  font-family: "Segoe UI", Arial, sans-serif; font-size: 10.5pt; line-height: 1.55;
}
.report-paper h1 { font-size: 25pt; line-height: 1.1; letter-spacing: -.02em; color: #0c1b24; font-weight: 700; }
.report-paper h2 { font-size: 13pt; margin: 24px 0 8px; padding-bottom: 4px; border-bottom: 2px solid #1c8f7e; color: #0c2b32; }
.report-paper h3 { font-size: 10.5pt; margin: 14px 0 5px; color: #1f3a45; }
.report-paper p { margin: 0 0 8px; }
.report-paper small { font-size: 8.5pt; color: #5b6e78; }
.report-cover { border-bottom: 3px solid #0e6f62; padding-bottom: 16px; margin-bottom: 18px; display: flex; justify-content: space-between; gap: 24px; }
.report-brand { text-align: right; font-size: 8.5pt; color: #5b6e78; line-height: 1.5; flex: none; }
.report-brand b { color: #0e6f62; font-size: 11pt; letter-spacing: .12em; display: block; }
.report-kicker { font-size: 8.5pt; letter-spacing: .18em; text-transform: uppercase; color: #1c8f7e; font-weight: 700; margin-bottom: 6px; }
.report-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 14px; margin: 14px 0 0; padding: 12px 0; border-top: 1px solid #d7dee2; border-bottom: 1px solid #d7dee2; }
.report-meta span { display: block; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .09em; color: #70838d; }
.report-meta b { font-size: 9pt; font-weight: 600; color: #1a303a; }
.report-paper table { width: 100%; border-collapse: collapse; margin: 7px 0 12px; font-size: 8.5pt; }
.report-paper th { background: #edf2f4; text-align: left; padding: 5px 7px; border: 1px solid #d2dbe0; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .05em; color: #415a66; }
.report-paper td { padding: 4px 7px; border: 1px solid #dfe6ea; vertical-align: top; }
.report-paper td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-paper tr:nth-child(even) td { background: #fafcfc; }
.report-fig { margin: 10px 0 14px; }
.report-fig img { width: 100%; border: 1px solid #ccd6db; display: block; }
.report-fig figcaption { font-size: 8pt; color: #5b6e78; margin-top: 4px; }
.report-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 14px; }
.report-stat { border: 1px solid #d7e0e4; background: #f8fbfb; padding: 8px 10px; border-radius: 3px; }
.report-stat span { display: block; font-size: 7pt; text-transform: uppercase; letter-spacing: .07em; color: #6b7f89; }
.report-stat b { font-size: 13pt; color: #0e6f62; font-weight: 650; }
.report-stat small { font-size: 7.5pt; color: #5b6e78; }
.report-badge { display: inline-block; padding: 2px 7px; border-radius: 10px; font-size: 7.5pt; font-weight: 700; letter-spacing: .04em; }
.report-badge.ok { background: #dff3e9; color: #146b45; }
.report-badge.warn { background: #fdf1d8; color: #8a5a05; }
.report-badge.fail { background: #fbe3e3; color: #a22a2a; }
.avoid-break { break-inside: avoid; }
.report-paper .assume-list { margin: 6px 0 0; padding-left: 16px; }
.report-paper .assume-list li { margin-bottom: 4px; font-size: 9pt; color: #33474f; }
.report-foot { margin-top: 22px; padding-top: 10px; border-top: 1px solid #d7dee2; display: flex; justify-content: space-between; gap: 20px; font-size: 7.5pt; color: #70838d; }

@media (max-width: 720px) {
  .modal-scrim { padding: 10px; }
  .report-paper { padding: 26px 22px; }
  .compare-cards { grid-template-columns: 1fr; }
  .report-meta { grid-template-columns: 1fr 1fr; }
}
