/* ============================================================
   AI Ready — Estilos de la app (sobre tokens del Design System)
   Solo usa var(--*) del sistema Soutec. No redefine la marca.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-base);
  color: var(--fg-1);
  background: var(--surface-page);
}
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--soutec-cyan); outline-offset: 2px; border-radius: 4px; }

.app { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- TOP BAR ---------- */
.appbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--soutec-white);
  border-bottom: 1px solid var(--soutec-border);
  box-shadow: var(--shadow-card);
}
.appbar-inner { display: flex; align-items: center; gap: 14px; height: 64px; }
.appbar img { height: 34px; width: auto; display: block; }
.appbar .brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.appbar .brand-txt .t1 {
  font-size: 14px; font-weight: var(--fw-bold); color: var(--soutec-charcoal);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.appbar .brand-txt .t2 { font-size: 11px; color: var(--fg-2); letter-spacing: 0.02em; }
.appbar .spacer { flex: 1; }
.chip-version {
  font-family: var(--font-roboto); font-size: 12px; font-weight: 500;
  color: var(--soutec-blue); background: var(--soutec-cyan-100);
  padding: 5px 12px; border-radius: var(--radius-pill);
}

/* ---------- PROGRESS (persistente) ---------- */
.progress {
  position: sticky; top: 64px; z-index: 29;
  background: var(--soutec-white);
  border-bottom: 1px solid var(--soutec-border);
}
.progress-inner { padding: 12px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.progress-meta {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-2);
}
.progress-meta .dim-label {
  font-weight: var(--fw-bold); color: var(--soutec-blue); text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 13px;
}
.progress-meta .count { font-family: var(--font-roboto); }
.progress-meta .pct { margin-left: auto; font-family: var(--font-roboto); font-weight: 500; color: var(--soutec-charcoal); }
.progress-track {
  height: 8px; background: var(--soutec-bg-alt); border-radius: var(--radius-pill); overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--soutec-cyan);
  border-radius: var(--radius-pill);
  transition: width var(--dur-base) var(--ease-soutec);
}
/* segmentos por dimensión */
.progress-seg { display: flex; gap: 4px; margin-top: 2px; }
.progress-seg button {
  flex: 1; height: 6px; border: none; padding: 0; cursor: pointer;
  background: var(--soutec-bg-alt); border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease-soutec);
}
.progress-seg button[data-state="done"] { background: var(--soutec-cyan); }
.progress-seg button[data-state="partial"] { background: var(--soutec-yellow); }
.progress-seg button[data-state="current"] { background: var(--soutec-blue); }
.progress-seg button:disabled { cursor: default; }

/* ---------- MAIN ---------- */
main { flex: 1; padding: 36px 0 80px; }
.view { animation: fade var(--dur-base) var(--ease-soutec) both; }
@keyframes fade { from { transform: translateY(8px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }

/* ---------- INICIO ---------- */
.intro-hero {
  position: relative; overflow: hidden;
  background: var(--soutec-blue); color: var(--fg-on-blue);
  border-radius: var(--rounded-medium);
  padding: 48px 44px; margin-bottom: 28px;
}
/* motivo diagonal de marca */
.intro-hero::after {
  content: ""; position: absolute; top: -10%; right: -8%; width: 46%; height: 130%;
  background: var(--soutec-blue-dark);
  transform: skewX(-20deg); transform-origin: top right; opacity: 0.55;
}
.intro-hero::before {
  content: ""; position: absolute; top: -10%; right: 6%; width: 30%; height: 130%;
  background: var(--soutec-teal-hero);
  transform: skewX(-20deg); transform-origin: top right; opacity: 0.16;
}
.intro-hero > * { position: relative; z-index: 1; }
.intro-eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-on-blue-soft); font-weight: var(--fw-bold); margin: 0 0 14px;
}
.intro-hero h1 {
  font-family: var(--font-display); color: #fff; font-weight: var(--fw-bold);
  font-size: 40px; line-height: 1.08; text-transform: uppercase; letter-spacing: -0.01em;
  margin: 0 0 16px; max-width: 18ch;
}
.intro-hero p.lead {
  font-family: var(--font-roboto); font-weight: 300; font-size: 18px; line-height: 1.55;
  color: var(--fg-on-blue-soft); max-width: 60ch; margin: 0;
}
.intro-hero .model-line {
  margin-top: 18px; font-family: var(--font-roboto); font-size: 14px; letter-spacing: 0.02em;
  color: #fff; opacity: 0.9;
}

.panel {
  background: var(--surface-card); border-radius: var(--rounded-medium);
  box-shadow: var(--shadow-card); padding: 32px 36px; margin-bottom: 24px;
}
.panel h2.sect {
  font-family: var(--font-display); font-weight: var(--fw-light); font-size: 26px;
  color: var(--fg-2); margin: 0 0 4px; line-height: 1.1;
}
.panel h2.sect strong { color: var(--soutec-cyan); font-weight: var(--fw-bold); }
.panel .sect-sub { color: var(--fg-2); font-size: 14px; margin: 0 0 22px; }

/* form de identificación */
.id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13px; font-weight: var(--fw-bold); color: var(--soutec-charcoal);
  letter-spacing: 0.01em;
}
.field label .opt { font-weight: 400; color: var(--fg-3); font-size: 12px; }
.field input {
  font-family: var(--font-base); font-size: 15px; color: var(--fg-1);
  border: 1px solid var(--soutec-border); border-radius: var(--rounded-small);
  padding: 11px 13px; background: #fff; transition: border-color var(--dur-fast);
}
.field input:focus { border-color: var(--soutec-cyan); outline: none; box-shadow: 0 0 0 3px var(--soutec-cyan-100); }

/* escala 1-5 leyenda */
.scale-legend { display: flex; flex-direction: column; gap: 10px; }
.scale-item { display: flex; gap: 14px; align-items: flex-start; }
.scale-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-roboto); font-weight: 700;
  font-size: 15px; color: #fff; background: var(--soutec-blue);
}
.scale-item:nth-child(3) .scale-num { background: var(--soutec-cyan); box-shadow: 0 0 0 3px var(--soutec-cyan-100); }
.scale-txt { font-size: 14.5px; color: var(--fg-1); line-height: 1.45; padding-top: 3px; }
.scale-txt .umbral-tag {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--soutec-blue-dark);
  background: var(--soutec-yellow); padding: 1px 8px; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: 0.04em; vertical-align: middle;
}

.criterio {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--soutec-cyan-100); border-radius: var(--rounded-small);
  padding: 16px 18px; margin-top: 4px;
}
.criterio .ico {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--soutec-cyan);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-roboto);
}
.criterio p { margin: 0; font-size: 14.5px; color: var(--soutec-blue-dark); line-height: 1.5; }
.criterio strong { color: var(--soutec-blue-dark); }

/* ---------- BOTONES ---------- */
.btn {
  font-family: var(--font-base); font-weight: 700; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; border: none; cursor: pointer; padding: 14px 30px;
  border-radius: var(--radius-pill); transition: all var(--dur-base) var(--ease-soutec);
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-blue { background: var(--soutec-blue); color: #fff; box-shadow: var(--shadow-pill); }
.btn-blue:hover { background: var(--soutec-blue-dark); }
.btn-blue:disabled { background: var(--soutec-border); color: #fff; box-shadow: none; cursor: not-allowed; opacity: 0.7; }
.btn-ghost { background: transparent; color: var(--soutec-blue); border: 1.5px solid var(--soutec-border); }
.btn-ghost:hover { border-color: var(--soutec-blue); color: var(--soutec-blue-dark); }
.btn-white { background: #fff; color: var(--soutec-blue); box-shadow: var(--shadow-pill); }
.btn-white:hover { color: var(--soutec-cyan); }
.btn-yellow { background: var(--soutec-yellow); color: var(--soutec-blue-dark); }
.btn-yellow:hover { filter: brightness(0.96); }
.btn-lg { padding: 16px 38px; font-size: 15px; }
.btn .arrow { font-size: 17px; line-height: 1; }

.intro-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ---------- WIZARD ---------- */
.dim-head {
  display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px;
}
.dim-badge {
  flex: none; width: 56px; height: 56px; border-radius: var(--rounded-small);
  background: var(--soutec-blue); color: #fff; display: grid; place-items: center;
  font-family: var(--font-roboto); font-weight: 700; font-size: 20px;
}
.dim-head.critica .dim-badge { background: var(--soutec-blue-dark); }
.dim-head h2 {
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 28px;
  color: var(--soutec-blue); text-transform: uppercase; letter-spacing: 0.01em; margin: 2px 0 6px; line-height: 1.05;
}
.dim-head .dim-sum { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.5; max-width: 70ch; }
.dim-head .crit-flag {
  display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--soutec-crimson);
  border: 1px solid var(--soutec-crimson); border-radius: var(--radius-pill); padding: 2px 11px;
}

.q-card {
  background: var(--surface-card); border-radius: var(--rounded-medium);
  box-shadow: var(--shadow-card); padding: 26px 28px; margin-bottom: 20px;
  border-left: 4px solid transparent; transition: border-color var(--dur-fast);
}
.q-card.answered { border-left-color: var(--soutec-cyan); }
.q-card.unanswered.flagged { border-left-color: var(--soutec-yellow); }
.q-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 16px; }
.q-code { font-family: var(--font-roboto); font-weight: 700; font-size: 13px; color: var(--soutec-cyan); flex: none; }
.q-text { font-size: 17px; font-weight: var(--fw-bold); color: var(--soutec-charcoal); line-height: 1.4; margin: 0; }

.levels { display: flex; flex-direction: column; gap: 9px; }
.level {
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  border: 1.5px solid var(--soutec-border); border-radius: var(--rounded-small);
  padding: 12px 15px; background: #fff; transition: all var(--dur-fast) var(--ease-soutec);
}
.level:hover { border-color: var(--soutec-cyan); background: #fbfdfe; }
.level input { position: absolute; opacity: 0; width: 0; height: 0; }
.level .lv-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--soutec-border); color: var(--fg-2);
  display: grid; place-items: center; font-family: var(--font-roboto); font-weight: 700; font-size: 14px;
  transition: all var(--dur-fast) var(--ease-soutec);
}
.level .lv-txt { font-size: 14.5px; line-height: 1.45; color: var(--fg-1); padding-top: 3px; }
.level.selected {
  border-color: var(--soutec-cyan); background: var(--soutec-cyan-100);
  box-shadow: inset 0 0 0 1px var(--soutec-cyan);
}
.level.selected .lv-num { background: var(--soutec-cyan); border-color: var(--soutec-cyan); color: #fff; }
.level.selected .lv-txt { color: var(--soutec-blue-dark); }

.evidence { margin-top: 16px; }
.evidence label {
  display: block; font-size: 12px; font-weight: 700; color: var(--fg-2);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
}
.evidence textarea {
  width: 100%; font-family: var(--font-base); font-size: 14.5px; color: var(--fg-1);
  border: 1px solid var(--soutec-border); border-radius: var(--rounded-small);
  padding: 10px 12px; resize: vertical; min-height: 54px; background: #fff;
}
.evidence textarea:focus { border-color: var(--soutec-cyan); outline: none; box-shadow: 0 0 0 3px var(--soutec-cyan-100); }

/* nav del wizard */
.wiz-nav {
  display: flex; align-items: center; gap: 14px; margin-top: 8px;
}
.wiz-nav .spacer { flex: 1; }
.wiz-hint { font-size: 13px; color: var(--fg-2); }
.wiz-hint.warn { color: var(--soutec-crimson); font-weight: 700; }

.save-note {
  text-align: center; font-size: 12.5px; color: var(--fg-3); margin-top: 22px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.save-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--soutec-green); display: inline-block; }

/* ---------- RESUMEN ---------- */
.summary-hero {
  position: relative; overflow: hidden;
  background: var(--soutec-blue); color: #fff;
  border-radius: var(--rounded-medium); padding: 36px 40px; margin-bottom: 24px;
}
.summary-hero::after {
  content: ""; position: absolute; top: -20%; right: -6%; width: 38%; height: 150%;
  background: var(--soutec-blue-dark); transform: skewX(-20deg); transform-origin: top right; opacity: 0.5;
}
.summary-hero > * { position: relative; z-index: 1; }
.summary-hero .eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-on-blue-soft); font-weight: 700; margin: 0 0 8px; }
.summary-grid {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px 36px; align-items: center;
}
.score-big { display: flex; align-items: baseline; gap: 6px; }
.score-big .num { font-family: var(--font-roboto); font-weight: 700; font-size: 72px; line-height: 0.9; }
.score-big .den { font-family: var(--font-roboto); font-weight: 300; font-size: 26px; color: var(--fg-on-blue-soft); }
.score-meta .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-on-blue-soft); margin: 0 0 4px; }
.score-meta .nivel-name { font-family: var(--font-display); font-weight: 700; font-size: 24px; text-transform: uppercase; margin: 0; }
.score-meta .nivel-desc { font-family: var(--font-roboto); font-weight: 300; font-size: 14px; color: var(--fg-on-blue-soft); margin: 6px 0 0; max-width: 46ch; line-height: 1.5; }
.ready-flag {
  text-align: center; border-radius: var(--rounded-medium); padding: 18px 24px; min-width: 168px;
}
.ready-flag.si { background: rgba(71,180,90,0.18); border: 1.5px solid var(--soutec-green); }
.ready-flag.no { background: rgba(200,30,84,0.14); border: 1.5px solid var(--soutec-crimson); }
.ready-flag .rf-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-on-blue-soft); margin: 0 0 6px; }
.ready-flag .rf-val { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; line-height: 1.1; margin: 0; }
.ready-flag.si .rf-val { color: #b8f0c2; }
.ready-flag.no .rf-val { color: #ffc2d4; }
.ready-flag .rf-sub { font-family: var(--font-roboto); font-size: 12.5px; color: var(--fg-on-blue-soft); margin: 8px 0 0; }

/* fila de KPIs */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi {
  background: var(--surface-card); border-radius: var(--rounded-medium); box-shadow: var(--shadow-card);
  padding: 18px 20px;
}
.kpi .k-lbl { font-size: 12px; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 8px; }
.kpi .k-val { font-family: var(--font-roboto); font-weight: 700; font-size: 30px; color: var(--soutec-blue); line-height: 1; }
.kpi .k-val small { font-size: 15px; font-weight: 400; color: var(--fg-2); }
.kpi.alert .k-val { color: var(--soutec-crimson); }

/* chart panel */
.chart-panel { background: var(--surface-card); border-radius: var(--rounded-medium); box-shadow: var(--shadow-card); padding: 26px 30px; margin-bottom: 24px; }
.chart-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.chart-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--soutec-blue); text-transform: uppercase; margin: 0; }
.chart-head .legend { display: flex; gap: 18px; margin-left: auto; font-size: 13px; color: var(--fg-2); align-items: center; flex-wrap: wrap; }
.chart-head .legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg-swatch { width: 16px; height: 4px; border-radius: 2px; display: inline-block; }
.lg-swatch.score { background: var(--soutec-blue); }
.lg-swatch.umbral { background: var(--soutec-yellow); height: 0; border-top: 2px dashed var(--soutec-yellow); }
.view-toggle { display: inline-flex; border: 1.5px solid var(--soutec-border); border-radius: var(--radius-pill); overflow: hidden; }
.view-toggle button {
  border: none; background: #fff; color: var(--fg-2); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 7px 16px; cursor: pointer;
}
.view-toggle button.active { background: var(--soutec-blue); color: #fff; }
.radar-holder { display: grid; place-items: center; max-width: 560px; margin: 0 auto; }
.bars { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.bar-row { display: grid; grid-template-columns: 220px 1fr 56px; gap: 14px; align-items: center; }
.bar-label { font-size: 14px; color: var(--fg-1); line-height: 1.25; }
.bar-label .bar-id { font-family: var(--font-roboto); font-weight: 700; color: var(--soutec-cyan); }
.bar-track { position: relative; height: 22px; background: var(--soutec-bg-alt); border-radius: var(--radius-pill); overflow: hidden; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--radius-pill); transition: width var(--dur-base) var(--ease-soutec); }
.bar-fill.sem-verde { background: var(--soutec-green); }
.bar-fill.sem-amarillo { background: var(--soutec-yellow); }
.bar-fill.sem-magenta { background: var(--soutec-crimson); }
.bar-fill.sem-na { background: var(--soutec-border); }
.bar-threshold { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--soutec-blue-dark); z-index: 2; }
.bar-threshold::after { content: "3.0"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-family: var(--font-roboto); font-size: 9px; color: var(--soutec-blue-dark); white-space: nowrap; }
.bar-val { font-family: var(--font-roboto); font-weight: 700; font-size: 15px; color: var(--soutec-charcoal); text-align: right; }

/* tabla de detalle */
.detail-panel { background: var(--surface-card); border-radius: var(--rounded-medium); box-shadow: var(--shadow-card); padding: 26px 30px; margin-bottom: 24px; }
.detail-panel h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--soutec-blue); text-transform: uppercase; margin: 0 0 18px; }
table.detail { width: 100%; border-collapse: collapse; }
table.detail th, table.detail td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--soutec-bg-alt); }
table.detail th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-2); font-weight: 700; }
table.detail td { font-size: 14.5px; color: var(--fg-1); vertical-align: middle; }
table.detail .td-dim { font-weight: 700; color: var(--soutec-charcoal); }
table.detail .td-dim .id { font-family: var(--font-roboto); color: var(--soutec-cyan); margin-right: 7px; }
table.detail .td-dim .crit { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 700; color: var(--soutec-crimson); border: 1px solid var(--soutec-crimson); border-radius: var(--radius-pill); padding: 0 7px; text-transform: uppercase; vertical-align: middle; }
.num-cell { font-family: var(--font-roboto); font-weight: 700; }
.pill-score { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: var(--radius-pill); font-family: var(--font-roboto); font-weight: 700; font-size: 14px; }
.pill-score.sem-verde { background: rgba(71,180,90,0.16); color: #2e7d3e; }
.pill-score.sem-amarillo { background: rgba(242,209,63,0.28); color: #8a6d00; }
.pill-score.sem-magenta { background: rgba(200,30,84,0.12); color: var(--soutec-crimson); }
.nivel-tag { font-size: 13px; }
.nivel-tag .nx { font-family: var(--font-roboto); font-weight: 700; color: var(--soutec-blue); }
.row-critica { background: rgba(200,30,84,0.04); }

.crit-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 18px;
  background: rgba(242,209,63,0.16); border-left: 4px solid var(--soutec-yellow);
  border-radius: var(--rounded-small); padding: 14px 16px; font-size: 14px; color: var(--soutec-gray-700); line-height: 1.5;
}
.crit-note strong { color: var(--soutec-blue-dark); }

/* acciones del resumen */
.summary-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.summary-actions .btn-ghost { background: #fff; }

/* ---------- VALIDACIÓN / TOAST ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--soutec-blue-dark); color: #fff; padding: 13px 22px; border-radius: var(--radius-pill);
  font-size: 14px; box-shadow: var(--shadow-float); opacity: 0; pointer-events: none;
  transition: all var(--dur-base) var(--ease-soutec); z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .intro-hero { padding: 32px 22px; }
  .intro-hero h1 { font-size: 30px; }
  .intro-hero::after, .intro-hero::before { display: none; }
  .panel { padding: 24px 20px; }
  .id-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; text-align: left; gap: 20px; }
  .summary-hero::after { display: none; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .bar-val { text-align: left; }
  .dim-head h2 { font-size: 23px; }
  table.detail thead { display: none; }
  table.detail tr { display: block; border-bottom: 1px solid var(--soutec-border); padding: 10px 0; }
  table.detail td { display: flex; justify-content: space-between; border: none; padding: 6px 4px; }
  table.detail td::before { content: attr(data-lbl); font-size: 12px; text-transform: uppercase; color: var(--fg-2); font-weight: 700; }
  .chart-head .legend { margin-left: 0; }
}

/* ---------- CORRECCIONES: required, charts apilados, envío, gracias ---------- */
.req { color: var(--soutec-crimson); font-weight: 700; }
.field input.invalid { border-color: var(--soutec-crimson); box-shadow: 0 0 0 3px rgba(200,30,84,0.12); }
.chart-sub { font-family: var(--font-roboto); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-2); font-weight: 700; margin: 6px 0 10px; }
.chart-divider { height: 1px; background: var(--soutec-bg-alt); margin: 28px 0 6px; }
.send-note { text-align: center; font-size: 13.5px; color: var(--fg-2); margin: 8px 0 16px; }
.send-note strong { color: var(--soutec-blue); }

.gracias-hero { position: relative; overflow: hidden; text-align: center; background: var(--soutec-blue); color: #fff; border-radius: var(--rounded-medium); padding: 56px 40px; margin-bottom: 24px; }
.gracias-hero::after { content: ""; position: absolute; top: -20%; right: -8%; width: 40%; height: 150%; background: var(--soutec-blue-dark); transform: skewX(-20deg); transform-origin: top right; opacity: 0.45; }
.gracias-hero > * { position: relative; z-index: 1; }
.gracias-check { width: 78px; height: 78px; border-radius: 50%; background: var(--soutec-green); color: #fff; display: grid; place-items: center; font-size: 40px; font-weight: 700; margin: 0 auto 20px; box-shadow: 0 6px 20px rgba(71,180,90,0.45); }
.gracias-hero h1 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 44px; text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 14px; }
.gracias-hero .eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-on-blue-soft); font-weight: 700; margin: 0 0 8px; }
.gracias-hero .lead { font-family: var(--font-roboto); font-weight: 300; font-size: 18px; line-height: 1.55; color: #fff; max-width: 60ch; margin: 0 auto; }
.gracias-hero .gracias-sub { font-family: var(--font-roboto); font-size: 15px; color: var(--fg-on-blue-soft); max-width: 56ch; margin: 14px auto 0; line-height: 1.55; }
@media (max-width: 760px) { .gracias-hero::after { display: none; } .gracias-hero { padding: 40px 22px; } .gracias-hero h1 { font-size: 32px; } }

/* ---------- IMPRESIÓN / PDF ---------- */
@media print {
  .appbar, .progress, .summary-actions, .view-toggle, .send-note { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
  .chart-panel, .detail-panel, .kpi, .summary-hero { box-shadow: none; border: 1px solid #d8dbdb; break-inside: avoid; }
  .summary-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
