/* ============================================================
   INSIDE · Acoustic — sistema visual
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #141414;
  --ink-soft: #3a3a38;
  --paper: #f7f6f4;
  --panel: #ffffff;
  --panel-2: #f3f1ee;
  --line: #e7e4df;
  --line-strong: #d8d4cd;
  --muted: #8b857d;
  --muted-2: #b4afa6;

  --ok:   oklch(0.55 0.085 150);
  --warn: oklch(0.64 0.10 75);
  --bad:  oklch(0.56 0.13 28);
  --ok-bg:   oklch(0.95 0.03 150);
  --warn-bg: oklch(0.95 0.04 80);
  --bad-bg:  oklch(0.95 0.04 28);

  --r: 14px;
  --r-sm: 9px;
  --display: 'Jost', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 8px 24px -16px rgba(20,20,20,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
svg { display: block; }

/* ── Tipografía utilitaria ───────────────────────────────── */
.eyebrow {
  font-family: var(--body);
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.num { font-family: var(--display); font-feature-settings: 'tnum' 1; }

/* ════════════════════════════════════════════════════════════
   BIENVENIDA
   ════════════════════════════════════════════════════════════ */
.welcome {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 40px; padding: 32px;
  text-align: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.welcome.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.welcome-mark { width: 88px; height: 88px; }
.welcome-mark svg { width: 100%; height: 100%; }
.welcome-mark img { width: 100%; height: 100%; object-fit: contain; filter: invert(1); }
.welcome-word {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(40px, 8vw, 72px); letter-spacing: .04em; line-height: 1;
}
.welcome-tag {
  font-size: 12px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 14px;
}
.welcome-lead {
  max-width: 440px; font-size: 16px; color: rgba(255,255,255,.62);
  line-height: 1.6; text-wrap: pretty;
}
.welcome-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink);
  font-weight: 600; font-size: 15px;
  padding: 15px 30px; border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.welcome-cta:hover { transform: translateY(-1px); background: #f0eeea; }
.welcome-stats {
  display: flex; gap: 48px; flex-wrap: wrap; justify-content: center;
  margin-top: 8px;
}
.welcome-stat { display: flex; flex-direction: column; gap: 6px; }
.welcome-stat .v { font-family: var(--display); font-weight: 300; font-size: 30px; }
.welcome-stat .l {
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
}

/* ════════════════════════════════════════════════════════════
   SHELL
   ════════════════════════════════════════════════════════════ */
.app-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 13px 28px;
  background: rgba(247,246,244,.96);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 30px; height: 30px; }
.brand-logo { width: auto !important; height: 46px !important; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt .n {
  font-family: var(--display); font-weight: 500;
  letter-spacing: .14em; font-size: 16px;
}
.brand-txt .s {
  font-size: 9.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 28px; }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  padding: 10px 16px; border-radius: var(--r-sm);
  border: 1px solid transparent; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .12s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; }
.btn.ghost { border-color: var(--line-strong); color: var(--ink); background: var(--panel); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.subtle { color: var(--muted); padding: 8px 12px; }
.btn.subtle:hover { color: var(--ink); background: var(--panel-2); }
.btn.danger { color: var(--bad); border: 1px solid color-mix(in oklch, var(--bad) 30%, var(--line)); background: var(--panel); }
.btn.danger:hover { background: var(--bad-bg); }
.btn .ico { width: 16px; height: 16px; }

/* ════════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
   ════════════════════════════════════════════════════════════ */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 920px) { .layout { grid-template-columns: 1fr; } }

.col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px;
  box-shadow: var(--shadow);
}
.panel-h {
  display: flex; align-items: center; gap: 9px; margin-bottom: 18px;
}
.panel-h .ico { width: 16px; height: 16px; color: var(--muted); }
.panel-h h2 { font: inherit; }
.panel-h .eyebrow { margin: 0; }

.section + .section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}

/* ── Campos numéricos (dimensiones) ──────────────────────── */
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 12px; color: var(--muted); font-weight: 500; }
.input-unit { position: relative; display: flex; align-items: center; }
.input-unit input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 38px 12px 14px;
  font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--ink);
  outline: none; transition: border-color .15s ease, background .15s ease; min-width: 0;
}
.input-unit input:focus { border-color: var(--ink); background: #fff; }
.input-unit .unit {
  position: absolute; right: 13px; font-size: 12px; color: var(--muted-2); pointer-events: none;
}
.meta-line { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.meta-line b { color: var(--ink-soft); font-weight: 600; }

/* ── Chips (tipo de espacio / material) ──────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel);
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Select de superficie ────────────────────────────────── */
.surf { display: flex; flex-direction: column; gap: 14px; }
.surf-row { display: flex; flex-direction: column; gap: 6px; }
.surf-row > label { font-size: 12px; color: var(--muted); font-weight: 500; }
.sel {
  position: relative; display: flex; align-items: center;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); transition: border-color .15s ease;
}
.sel:focus-within { border-color: var(--ink); background: #fff; }
.sel select {
  appearance: none; width: 100%; background: transparent; border: none; outline: none;
  padding: 12px 38px 12px 14px; font-size: 14px; color: var(--ink); cursor: pointer;
}
.sel .chev { position: absolute; right: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.sel .a-tag {
  position: absolute; right: 38px; font-size: 11px; color: var(--muted-2);
  font-family: var(--display); pointer-events: none;
}

/* ── Slider RT objetivo ──────────────────────────────────── */
.slider-row { display: flex; align-items: center; gap: 14px; }
.slider-row input[type=range] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 4px;
  background: var(--line-strong); border-radius: 99px; outline: none;
}
.slider-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); cursor: pointer; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-strong);
}
.slider-row input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--ink);
  cursor: pointer; border: 3px solid #fff;
}
.slider-val { font-family: var(--display); font-size: 20px; min-width: 64px; text-align: right; }
.slider-val small { font-size: 12px; color: var(--muted); }

/* ── Segmentado (mobiliario) ─────────────────────────────── */
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 7px 16px; border-radius: 999px; transition: all .14s ease; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.stepper button:hover { background: var(--panel); }
.stepper .v { font-family: var(--display); font-size: 18px; min-width: 34px; text-align: center; }

/* ════════════════════════════════════════════════════════════
   RESULTADOS
   ════════════════════════════════════════════════════════════ */
.rt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 460px) { .rt-pair { grid-template-columns: 1fr; } }
.rt-card { border-radius: var(--r); padding: 20px; border: 1px solid var(--line); }
.rt-card.now { background: var(--panel-2); }
.rt-card.after { background: var(--ink); color: #fff; border-color: var(--ink); }
.rt-card .lab { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rt-card.after .lab { color: rgba(255,255,255,.5); }
.rt-val { font-family: var(--display); font-weight: 300; font-size: 54px; line-height: 1; margin: 12px 0 8px; letter-spacing: -.01em; }
.rt-val small { font-size: 20px; color: var(--muted); margin-left: 2px; }
.rt-card.after .rt-val small { color: rgba(255,255,255,.5); }
.rt-sub { font-size: 12px; color: var(--muted); }
.rt-card.after .rt-sub { color: rgba(255,255,255,.55); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  margin-top: 12px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.badge.optimo { background: var(--ok-bg); color: var(--ok); } .badge.optimo .dot { background: var(--ok); }
.badge.aceptable { background: var(--warn-bg); color: var(--warn); } .badge.aceptable .dot { background: var(--warn); }
.badge.problematico { background: var(--bad-bg); color: var(--bad); } .badge.problematico .dot { background: var(--bad); }
.rt-card.after .badge.optimo { background: rgba(255,255,255,.14); color: #fff; }

/* ── Recomendación ───────────────────────────────────────── */
.reco { text-align: center; padding: 26px 22px; background: var(--ink); color: #fff; border-radius: var(--r); }
.reco .lab { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.reco .big { font-family: var(--display); font-weight: 300; font-size: 72px; line-height: 1; margin: 14px 0 6px; }
.reco .mat { font-size: 16px; color: rgba(255,255,255,.78); }
.reco .check { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: rgba(255,255,255,.8); }
.reco.warn .big { color: oklch(0.82 0.10 80); }

/* ── Score ring ──────────────────────────────────────────── */
.score { display: flex; align-items: center; gap: 18px; }
.score-ring { width: 92px; height: 92px; flex-shrink: 0; }
.score-meta .v { font-family: var(--display); font-weight: 300; font-size: 30px; line-height: 1; }
.score-meta .l { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Gráfica ─────────────────────────────────────────────── */
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.leg { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.leg i { width: 18px; height: 0; display: inline-block; }
.leg.cur i { border-top: 2px dashed var(--muted-2); }
.leg.aft i { border-top: 2px solid var(--ink); }
.leg.tgt i { height: 10px; border-radius: 2px; background: var(--panel-2); border: 1px solid var(--line-strong); }
.chart-svg { width: 100%; height: auto; overflow: visible; }

/* ── Tabla por banda ─────────────────────────────────────── */
.band-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.band-table th, .band-table td { padding: 9px 8px; text-align: right; }
.band-table th:first-child, .band-table td:first-child { text-align: left; color: var(--muted); font-weight: 500; }
.band-table thead th { font-size: 11px; color: var(--muted-2); font-weight: 600; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.band-table tbody td { font-family: var(--display); color: var(--ink-soft); }
.band-table tbody tr + tr td { border-top: 1px solid var(--line); }

/* ── Datos técnicos ──────────────────────────────────────── */
.tech { display: flex; flex-direction: column; gap: 0; }
.tech-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; font-size: 13.5px; }
.tech-row + .tech-row { border-top: 1px solid var(--line); }
.tech-row .k { color: var(--muted); }
.tech-row .v { font-family: var(--display); color: var(--ink); }

/* ════════════════════════════════════════════════════════════
   ESTUDIOS GUARDADOS
   ════════════════════════════════════════════════════════════ */
.saved-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.saved-list { display: flex; flex-direction: column; }
.saved-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); }
.saved-row:first-child { border-top: none; }
.saved-row .info { flex: 1; min-width: 0; cursor: pointer; }
.saved-row .nm { font-weight: 600; font-size: 14.5px; }
.saved-row .mt { font-size: 12px; color: var(--muted); margin-top: 2px; }
.saved-row .rt { font-family: var(--display); font-size: 22px; }
.saved-row .rt small { font-size: 12px; color: var(--muted); }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted-2); transition: all .14s ease; flex-shrink: 0; }
.icon-btn:hover { color: var(--bad); background: var(--bad-bg); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted-2); }
.empty .ico { width: 30px; height: 30px; margin: 0 auto 12px; color: var(--muted-2); }
.empty p { font-size: 13.5px; }

.save-bar { display: flex; gap: 10px; align-items: center; }
.save-bar input {
  flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 14px; font-size: 14px; outline: none; color: var(--ink);
}
.save-bar input:focus { border-color: var(--ink); background: #fff; }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 12px 20px; border-radius: 999px; box-shadow: 0 12px 32px -12px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Modal de confirmación ───────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0; z-index: 90; background: rgba(20,20,20,.4);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.modal-bg.show { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: var(--r); padding: 26px; max-width: 380px; width: 100%;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.4); transform: scale(.96); transition: transform .2s ease;
}
.modal-bg.show .modal { transform: scale(1); }
.modal h3 { font-family: var(--display); font-weight: 400; font-size: 20px; }
.modal p { font-size: 13.5px; color: var(--muted); margin: 8px 0 22px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ════════════════════════════════════════════════════════════
   REPORTE / IMPRESIÓN (PDF)
   ════════════════════════════════════════════════════════════ */
/* ── Utilidades de vista ─────────────────────────────────── */
.hidden { display: none !important; }
.btn.lg { padding: 13px 22px; font-size: 14.5px; }
.welcome-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.welcome-logo { width: min(440px, 78vw); }
.welcome-logo img { width: 100%; height: auto; display: block; }

/* ── Home ────────────────────────────────────────────────── */
.home-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.home-title { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 5vw, 46px); line-height: 1; margin-top: 6px; }

/* ── Workspace top ───────────────────────────────────────── */
.ws-top { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.ws-top #study-name { flex: 1; min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; outline: none; color: var(--ink); }
.ws-top #study-name:focus { border-color: var(--ink); }

.link-q { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; text-transform: none; }
.link-q:hover { color: var(--ink); }
.norma-desc { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* ── Audio ───────────────────────────────────────────────── */
.audio-hint { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.audio-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.audio-btns .btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
#btn-audio-stop { padding: 10px 12px; }
.audio-state { margin-top: 12px; font-family: var(--display); font-size: 14px; color: var(--ink-soft); min-height: 18px; }

/* ── Notas ───────────────────────────────────────────────── */
.notes-area { width: 100%; min-height: 120px; resize: vertical; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; font-family: var(--body); font-size: 14px; color: var(--ink); outline: none; line-height: 1.55; }
.notes-area:focus { border-color: var(--ink); background: #fff; }

/* ── Modales anchos ──────────────────────────────────────── */
.modal-wide { max-width: 560px; }
.modal-tall { max-height: 86vh; display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-head h3 { font-family: var(--display); font-weight: 400; font-size: 21px; }
.modal-head p { font-size: 13px; color: var(--muted); }

/* ── Gestor de materiales ────────────────────────────────── */
.mat-list { display: flex; flex-direction: column; max-height: 46vh; overflow: auto; margin-bottom: 4px; }
.mat-row { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-top: 1px solid var(--line); }
.mat-row:first-child { border-top: none; }
.mat-info { flex: 1; min-width: 0; }
.mat-nm { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.mat-mfr { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tag-custom { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; }
.mat-nrc { display: flex; align-items: center; gap: 8px; }
.mat-nrc label { font-size: 11px; color: var(--muted); }
.mat-nrc input { width: 64px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; font-family: var(--display); font-size: 15px; text-align: center; outline: none; color: var(--ink); }
.mat-nrc input:focus { border-color: var(--ink); background: #fff; }
.icon-btn[disabled] { opacity: .25; pointer-events: none; }
.mat-add { display: grid; grid-template-columns: 1.4fr 1fr .7fr auto; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 4px; }
.mat-add input { background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 10px 11px; font-size: 13.5px; outline: none; color: var(--ink); min-width: 0; }
.mat-add input:focus { border-color: var(--ink); background: #fff; }
.mat-reset { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.mat-reset:hover { color: var(--ink); }
@media (max-width: 520px) { .mat-add { grid-template-columns: 1fr 1fr; } }

/* ── Info / cómo funciona ────────────────────────────────── */
.info-body { overflow: auto; }
.info-body h4 { font-family: var(--display); font-weight: 500; font-size: 16px; margin: 18px 0 6px; }
.info-body h4:first-child { margin-top: 4px; }
.info-body p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.norm-item { border-top: 1px solid var(--line); padding: 12px 0; }
.norm-name { font-weight: 600; font-size: 14px; }
.norm-name span { color: var(--muted); font-weight: 500; }
.norm-item p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.info-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); }

/* ════════════════════════════════════════════════════════════
   REPORTE / IMPRESIÓN (PDF · una hoja Letter)
   ════════════════════════════════════════════════════════════ */
.report { display: none; }
@media print {
  @page { size: Letter; margin: 12mm 12mm; }
  html, body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .app-header, .wrap, .toast, .modal-bg, .welcome { display: none !important; }
  .report { display: block !important; color: #141414; font-size: 11px; }
  .rep-head { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1.5px solid #141414; padding-bottom: 10px; }
  .rep-brand { display: flex; align-items: center; gap: 9px; }
  .rep-brand img { width: 26px; height: 26px; }
  .rep-logo { width: auto !important; height: 52px !important; }
  .rep-brand .n { font-family: var(--display); font-weight: 500; letter-spacing: .14em; font-size: 15px; line-height: 1; }
  .rep-brand .s { font-size: 8.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #888; }
  .rep-meta { text-align: right; font-size: 9.5px; color: #666; line-height: 1.45; }
  .rep-title { font-family: var(--display); font-weight: 300; font-size: 26px; margin: 14px 0 2px; line-height: 1; }
  .rep-sub { font-size: 11px; color: #666; margin-bottom: 14px; }
  .rep-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
  .rep-kpi { border: 1px solid #ddd; border-radius: 8px; padding: 10px; }
  .rep-kpi.dark { background: #141414; color: #fff; border-color: #141414; }
  .rep-kpi .l { font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #888; }
  .rep-kpi.dark .l { color: rgba(255,255,255,.6); }
  .rep-kpi .v { font-family: var(--display); font-weight: 300; font-size: 30px; line-height: 1; margin: 4px 0; }
  .rep-kpi .v small { font-size: 12px; color: #999; margin-left: 1px; }
  .rep-kpi.dark .v small { color: rgba(255,255,255,.6); }
  .rep-kpi .s { font-size: 9px; font-weight: 600; }
  .rep-kpi .s.optimo { color: #1c7c4a; } .rep-kpi .s.aceptable { color: #a86a14; } .rep-kpi .s.problematico { color: #b23030; }
  .rep-kpi.dark .s { color: #fff; }
  .rep-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
  .rep-st { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #141414; margin-bottom: 8px; }
  .rep-chart { margin-bottom: 6px; }
  .rep-chart svg { width: 100%; height: auto; }
  .report .band-table { font-size: 10px; }
  .report .band-table th, .report .band-table td { padding: 5px 5px; color: #141414; }
  .rep-c-right .rt-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid #eee; font-size: 10.5px; }
  .rep-c-right .rt-row:first-of-type { border-top: none; }
  .rep-c-right .rt-row b { font-family: var(--display); font-weight: 400; }
  .rep-reco { margin-top: 14px; padding: 10px 12px; border: 1px solid #141414; border-radius: 8px; font-size: 10.5px; }
  .rep-notes { margin-top: 12px; }
  .rep-notes p { font-size: 10.5px; color: #333; line-height: 1.5; border: 1px solid #eee; border-radius: 8px; padding: 10px; }
  .rep-thanks { margin-top: 16px; text-align: center; line-height: 1.5; }
  .rep-thanks-1 { font-style: italic; font-size: 12px; color: #141414; }
  .rep-thanks-2 { font-weight: 700; font-size: 12px; color: #141414; margin-top: 1px; }
  .rep-thanks-3 { font-size: 11px; color: #333; margin-top: 1px; }
  .rep-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid #ddd; font-size: 8.5px; color: #999; text-align: center; }
}
