/* ==========================================================================
   Innovation Technologies · Documentos (manual de marca e informe)
   Usa los mismos tokens de main.css. Solo agrega componentes de documento.
   ========================================================================== */

:root {
  --ok: #0D6B57;
  --warn: #9A5B00;
  --crit: #B3261E;
  --bar-muted: #8C9691;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ok: #3ED6A5; --warn: #F2B55B; --crit: #FF8A80; --bar-muted: #6E7B75; }
}
:root[data-theme="dark"] { --ok: #3ED6A5; --warn: #F2B55B; --crit: #FF8A80; --bar-muted: #6E7B75; }
.tone-ink { --bar-muted: #6E7B75; }

/* ---------- Índice ---------- */
.toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; max-width: 900px; margin: 2.25rem 0 0; padding: 0; list-style: none; counter-reset: toc; }
@media (max-width: 560px) { .toc { grid-template-columns: minmax(0, 1fr); } }
.toc a {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background-color: var(--surface);
  color: var(--fg); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.6875rem; font-weight: 500; color: var(--accent-text); }
.toc a:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ---------- Capítulo ---------- */
.chapter { display: grid; gap: 2rem; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); border-top: 1px solid var(--line); }
.chapter:first-of-type { border-top: 0; }
@media (min-width: 1000px) {
  .chapter { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 4rem; }
  .chapter-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}
.chapter-head { display: grid; gap: 0.6rem; align-content: start; }
.chapter-num { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.75rem; color: var(--accent-text); letter-spacing: 0.06em; }
.chapter-head h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.chapter-head p { color: var(--fg-muted); font-size: var(--t-small); max-width: 34ch; }
.chapter-body { display: grid; gap: 2.5rem; min-width: 0; }
.chapter-body > h3 { font-size: 1.25rem; font-stretch: 106%; margin-bottom: -1.25rem; }

.statement { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.75rem); font-weight: 560; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1.12; max-width: 24ch; text-wrap: balance; }
.statement em { font-style: normal; color: var(--accent-text); }
.cols { display: grid; gap: 1.25rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cols p { color: var(--fg-muted); }
.cols p strong { color: var(--fg); font-weight: 600; }

.panel { border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); overflow: hidden; }
.panel-cap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.75rem 1rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--fg-muted); }

/* ---------- Construcción del símbolo ---------- */
.construct { display: grid; gap: 0; }
@media (min-width: 760px) { .construct { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.construct-fig { padding: clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .construct-fig { border-bottom: 0; border-right: 1px solid var(--line); } }
.construct-fig svg { width: 100%; height: auto; display: block; }
.construct-fig .grid line { stroke: var(--line); stroke-width: 1; }
.construct-fig .trib { stroke: var(--fg); }
.construct-fig .chan { stroke: var(--accent); }
.construct-fig .axis { stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 4 4; }
.construct-fig text { font-family: var(--font-mono); font-size: 13px; fill: var(--fg-muted); }
.construct-fig text.hl { fill: var(--accent-text); }
.construct-notes { display: grid; align-content: center; gap: 0; margin: 0; padding: clamp(1rem, 3vw, 2rem); }
.construct-notes div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.construct-notes div:last-child { border-bottom: 0; }
.construct-notes dt { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); padding-top: 0.2rem; }
.construct-notes dd { color: var(--fg); }

/* ---------- Variantes del logotipo ---------- */
/* La marca toma el color de su escenario, no el del tema de la página */
.logo-stage .brand, .dont-stage .brand, .space-box .brand, .bcard .brand, .signature .brand { color: inherit; }
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 640px) { .logo-grid { grid-template-columns: minmax(0, 1fr); } }
.logo-tile { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.logo-stage { display: grid; place-items: center; min-height: 180px; padding: 2rem 1rem; }
.logo-stage .brand { pointer-events: none; }
.logo-stage .brand-word { font-size: 2.1rem; }
.logo-stage .brand-mark { width: 44px; height: 44px; }
.stage-piedra { background-color: #EDEFEA; color: #14211D; --accent: #0D6B57; }
.stage-tinta { background-color: #0E1916; color: #E6ECE8; --accent: #3ED6A5; }
.stage-jade { background-color: #0D6B57; color: #FFFFFF; --accent: #3ED6A5; }
.stage-mono { background-color: #F8F9F6; color: #14211D; --accent: #14211D; }
.logo-tile .panel-cap { border-top: 1px solid var(--line); background-color: var(--surface); }

.space-demo { display: grid; place-items: center; padding: 2.5rem 1rem; background-color: var(--surface); }
.space-box { position: relative; padding: 28px; outline: 1px dashed var(--signal); outline-offset: 0; }
.space-box::before, .space-box::after { position: absolute; font-family: var(--font-mono); font-size: 0.625rem; color: var(--fg-muted); }
.space-box::before { content: "x"; top: 6px; left: 50%; }
.space-box::after { content: "x"; left: 8px; top: 50%; translate: 0 -50%; }
.space-box .brand-word { font-size: 2rem; }
.space-box .brand-mark { width: 40px; height: 40px; }

.donts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.75rem; }
.dont { display: grid; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background-color: var(--surface); }
.dont-stage { position: relative; display: grid; place-items: center; min-height: 120px; padding: 1rem; color: var(--fg); overflow: hidden; }
.dont-stage .brand { pointer-events: none; }
.dont-stage .brand-word { font-size: 1.5rem; }
.dont-stage .brand-mark { width: 30px; height: 30px; }
.dont-stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--crit) calc(50% - 1px), var(--crit) calc(50% + 1px), transparent calc(50% + 1px));
  opacity: 0.55;
}
.dont-rotate .brand { transform: rotate(-14deg); }
.dont-stretch .brand { transform: scaleX(1.45); }
.dont-color .brand { color: #7B3FE4; --accent: #F06292; }
.dont-effect .brand { filter: drop-shadow(3px 4px 0 rgb(0 0 0 / 0.45)); }
.dont p { display: flex; gap: 0.5rem; align-items: center; padding: 0.7rem 0.9rem; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--fg-muted); }
.dont p .i { color: var(--crit); width: 1em; height: 1em; }

/* ---------- Color ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.75rem; }
.swatch { display: grid; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background-color: var(--surface); }
.swatch-chip { aspect-ratio: 16 / 10; max-width: 100%; border-bottom: 1px solid var(--line); }
.swatch-body { display: grid; gap: 0.15rem; padding: 0.85rem 0.95rem 1rem; }
.swatch-body b { font-weight: 650; font-stretch: 106%; }
.swatch-body span { font-size: 0.8125rem; color: var(--fg-muted); }
.swatch-body code { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.6875rem; color: var(--fg); letter-spacing: 0.02em; }
.swatch-body .contrast { margin-top: 0.4rem; display: inline-flex; align-items: center; gap: 0.35rem; justify-self: start; padding: 0.15rem 0.45rem; border: 1px solid var(--line); border-radius: 4px; font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.625rem; color: var(--fg-muted); }
.c-piedra { background: #EDEFEA; } .c-papel { background: #F8F9F6; } .c-basalto { background: #14211D; } .c-tinta { background: #0E1916; }
.c-musgo { background: #55625D; } .c-jade { background: #0D6B57; } .c-jade-vivo { background: #3ED6A5; } .c-oro { background: #C8962B; }

.proportion { display: grid; gap: 0.75rem; }
.proportion-bar { display: flex; gap: 2px; height: 56px; padding: 2px; border-radius: var(--r-sm); background-color: var(--surface); border: 1px solid var(--line); }
.proportion-bar span { display: block; height: 100%; }
.proportion-bar span:first-child { border-radius: 4px 0 0 4px; box-shadow: inset 0 0 0 1px var(--line); }
.proportion-bar span:last-child { border-radius: 0 4px 4px 0; }
.proportion-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--fg-muted); }
.proportion-legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.proportion-legend i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }
.proportion-legend b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }

.origin { display: grid; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); }
@media (min-width: 760px) { .origin { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.5rem; } }
.origin-dots { display: flex; gap: 0.5rem; }
.origin-dots span { width: 44px; height: 44px; border-radius: 50%; }
.origin p { color: var(--fg-muted); font-size: var(--t-small); }
.origin p strong { color: var(--fg); }

/* ---------- Tipografía ---------- */
.specimen { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2.25rem); }
.specimen-sample {
  font-family: var(--font-display);
  font-size: clamp(3rem, 1.5rem + 7vw, 7.5rem);
  line-height: 0.95; letter-spacing: -0.045em;
  font-weight: 640; font-stretch: 114%;
  overflow-wrap: anywhere;
}
.specimen-controls { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.specimen-controls label { display: grid; gap: 0.35rem; font-size: 0.875rem; font-weight: 600; }
.specimen-controls label span { display: flex; justify-content: space-between; }
.specimen-controls output { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.75rem; color: var(--accent-text); font-weight: 500; }
.glyphs { font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + 0.8vw, 1.6rem); letter-spacing: 0.02em; color: var(--fg-muted); line-height: 1.5; overflow-wrap: anywhere; }
.mono-sample { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 0.75rem; }
.mono-sample p { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: clamp(0.8rem, 0.7rem + 0.5vw, 1.05rem); letter-spacing: 0.02em; overflow-wrap: anywhere; }
.mono-sample .note { font-family: var(--font-body); font-stretch: 100%; font-size: 0.8125rem; color: var(--fg-muted); letter-spacing: 0; }

.scale { width: 100%; border-collapse: collapse; }
.scale-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); }
.scale td, .scale th { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.scale tr:last-child td, .scale tr:last-child th { border-bottom: 0; }
.scale th { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); white-space: nowrap; width: 9rem; }
.scale td:last-child { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.6875rem; color: var(--fg-muted); white-space: nowrap; width: 13rem; }
.scale .s-hero { font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); font-weight: 640; font-stretch: 114%; letter-spacing: -0.04em; line-height: 1; }
.scale .s-h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 620; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1.05; }
.scale .s-h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 620; font-stretch: 110%; letter-spacing: -0.02em; }
.scale .s-lede { font-size: 1.2rem; color: var(--fg-muted); }
.scale .s-body { font-size: 1.0625rem; }
.scale .s-label { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }

/* ---------- Voz ---------- */
.voice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.voice li { display: grid; gap: 0.5rem; padding: 1.25rem 1.25rem 1.4rem 0; border-bottom: 1px solid var(--line); }
.voice h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 620; font-stretch: 108%; margin: 0; }
.voice p { color: var(--fg-muted); font-size: var(--t-small); }
.saywrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); }
.say { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--t-small); }
.say th, .say td { padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.say tr:last-child td { border-bottom: 0; }
.say th { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.say td:first-child { color: var(--fg-muted); text-decoration: line-through; text-decoration-color: var(--crit); text-decoration-thickness: 1px; width: 42%; }
.say td:last-child { color: var(--fg); font-weight: 500; background-color: var(--accent-soft); }
.words { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; }
.words div { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); }
.words h3 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.words h3 .i { width: 1.1em; height: 1.1em; }
.words .is-yes h3 .i { color: var(--ok); }
.words .is-no h3 .i { color: var(--crit); }
.words ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.words li { padding: 0.3rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; }
.words .is-no li { color: var(--fg-muted); text-decoration: line-through; text-decoration-color: var(--crit); }

/* ---------- Íconos ---------- */
.icon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .icon-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.icon-grid li { display: grid; justify-items: center; gap: 0.6rem; padding: 1.1rem 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: var(--r-sm); background-color: var(--surface); }
.icon-grid .i { width: 26px; height: 26px; color: var(--fg); }
.icon-grid span { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.625rem; color: var(--fg-muted); }

/* ---------- Imagen ---------- */
.image-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.75rem; }
.rule-card { display: grid; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background-color: var(--surface); }
.rule-stage { position: relative; display: grid; place-items: center; min-height: 150px; padding: 1rem; background-color: var(--bg-alt); overflow: hidden; }
.rule-card p { display: flex; gap: 0.55rem; align-items: flex-start; padding: 0.85rem 1rem; border-top: 1px solid var(--line); font-size: 0.875rem; }
.rule-card p .i { margin-top: 0.15em; width: 1.1em; height: 1.1em; }
.rule-card.is-yes p .i { color: var(--ok); }
.rule-card.is-no p .i { color: var(--crit); }
.mini-ui { width: min(220px, 100%); padding: 0.75rem; border-radius: 8px; background-color: var(--ink-bg); color: var(--ink-fg); font-size: 0.6875rem; box-shadow: var(--shadow); }
.mini-ui b { display: block; margin-bottom: 0.4rem; font-size: 0.8125rem; }
.mini-ui span { display: flex; justify-content: space-between; padding: 0.25rem 0; border-top: 1px solid var(--ink-line); font-family: var(--font-mono); }
.mini-ui span em { font-style: normal; color: var(--ink-accent); }
.mini-flow { width: 100%; max-width: 240px; height: auto; }
.mini-flow path { fill: none; stroke: var(--fg-muted); stroke-width: 1.5; }
.mini-flow .on { stroke: var(--accent); stroke-width: 3; }
.stock-photo { width: min(200px, 90%); aspect-ratio: 4 / 3; border-radius: 6px; background: linear-gradient(135deg, #b9c3d3, #e8d9c9 55%, #c7b8e8); display: grid; place-items: center; font-size: 0.75rem; color: #3a3a46; font-weight: 600; text-align: center; padding: 0.5rem; }

/* ---------- Movimiento ---------- */
.motion { display: grid; gap: 0; }
@media (min-width: 760px) { .motion { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.motion-graph { padding: 1.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .motion-graph { border-bottom: 0; border-right: 1px solid var(--line); } }
.motion-graph svg { width: 100%; max-width: 280px; height: auto; display: block; margin-inline: auto; overflow: visible; }
.motion-graph .axis { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.motion-graph .linear { stroke: var(--fg-muted); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.motion-graph .curve { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.motion-graph .handle { stroke: var(--signal); stroke-width: 1; fill: none; }
.motion-graph .knob { fill: var(--signal); }
.motion-graph text { font-family: var(--font-mono); font-size: 10px; fill: var(--fg-muted); }
.ease-name { margin-top: 0.75rem; text-align: center; font-size: 0.75rem; }
.motion-demo { display: grid; gap: 1rem; align-content: center; padding: 1.5rem; }
.track { position: relative; height: 34px; border-radius: 999px; background-color: var(--bg-alt); }
.track .dot { position: absolute; top: 5px; left: 5px; width: 24px; height: 24px; border-radius: 50%; transition: transform 1.1s linear; }
.track.is-linear .dot { background-color: var(--fg-muted); }
.track.is-ease .dot { background-color: var(--accent); transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion-demo.is-on .dot { transform: translateX(calc(var(--run, 300px))); }
.track-label { display: flex; justify-content: space-between; margin-bottom: 0.3rem; font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.6875rem; color: var(--fg-muted); }
.durations { display: grid; margin: 0; border-top: 1px solid var(--line); }
.durations div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.durations dt { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.8125rem; color: var(--accent-text); }
.durations dd { color: var(--fg-muted); }

/* ---------- Aplicaciones ---------- */
.apps { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.app { display: grid; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background-color: var(--surface); }
.app-stage { display: grid; place-items: center; gap: 0.75rem; min-height: 230px; padding: 1.5rem; background-color: var(--bg-alt); }
.bcard {
  width: min(300px, 100%); aspect-ratio: 85 / 55;
  border-radius: 8px; padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 14px 30px -14px rgb(0 0 0 / 0.45);
}
.bcard.is-front { background-color: #0E1916; color: #E6ECE8; --accent: #3ED6A5; }
.bcard.is-back { background-color: #EDEFEA; color: #14211D; --accent: #0D6B57; }
.bcard .brand-word { font-size: 1.6rem; }
.bcard .brand-mark { width: 30px; height: 30px; }
.bcard small { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.5625rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.bcard .who b { display: block; font-family: var(--font-display); font-size: 0.95rem; font-weight: 640; font-stretch: 108%; }
.bcard .who span { display: block; font-size: 0.6875rem; opacity: 0.75; }
.bcard .lines { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.5625rem; line-height: 1.7; }
.bcard .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.signature { width: min(320px, 100%); padding: 1rem 1.1rem; border-radius: 8px; background-color: #FFFFFF; color: #14211D; font-size: 0.75rem; box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); --accent: #0D6B57; }
.signature .brand-word { font-size: 1.1rem; }
.signature .brand-mark { width: 20px; height: 20px; }
.signature hr { border: 0; border-top: 2px solid #0D6B57; width: 28px; margin: 0.6rem 0; }
.signature b { font-size: 0.8125rem; }
.signature p { color: #55625D; line-height: 1.5; }
.banner { width: 100%; aspect-ratio: 4 / 1; max-width: 100%; border-radius: 8px; overflow: hidden; position: relative; background-color: #0E1916; color: #E6ECE8; display: grid; align-content: center; padding: 0 6%; box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.45); }
.banner svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner svg path { fill: none; stroke: #3ED6A5; stroke-width: 1.2; opacity: 0.35; }
.banner svg path.on { stroke-width: 2.5; opacity: 0.9; }
.banner strong { position: relative; font-family: var(--font-display); font-size: clamp(0.95rem, 0.6rem + 1.4vw, 1.5rem); font-weight: 640; font-stretch: 112%; letter-spacing: -0.03em; }
.banner strong em { font-style: normal; color: #3ED6A5; }
.banner span { position: relative; font-family: var(--font-mono); font-size: clamp(0.5rem, 0.4rem + 0.4vw, 0.6875rem); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-top: 0.3rem; }
.app-icons { display: flex; align-items: flex-end; gap: 1rem; }
.app-icon { display: grid; place-items: center; background-color: #0E1916; color: #E6ECE8; --accent: #3ED6A5; border-radius: 22%; }
.app-icon svg { width: 62%; height: 62%; }
.app-icon .trib { stroke: #E6ECE8; }
.app-icon .chan { stroke: #3ED6A5; }

/* ---------- Bloque de código ---------- */
.code { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--ink-bg); color: var(--ink-fg); overflow: hidden; }
.code pre { margin: 0; padding: 1.25rem 1.25rem 1.5rem; overflow-x: auto; font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.75rem; line-height: 1.7; }
.code .k { color: #9FB8AE; } .code .v { color: #3ED6A5; } .code .c { color: #6E7B75; }
.code .icon-btn { position: absolute; top: 0.75rem; right: 0.75rem; color: var(--ink-fg); border-color: var(--ink-line); }

/* ---------- Informe: resumen ---------- */
.verdict { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .verdict { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 4rem; align-items: start; } }
.verdict .statement { max-width: 26ch; }
.verdict-notes { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.verdict-notes li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background-color: var(--surface); font-size: var(--t-small); }
.verdict-notes .i { margin-top: 0.15em; flex-shrink: 0; }

/* Severidad: siempre ícono + etiqueta, nunca solo color */
.sev { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.5rem; border-radius: 4px; border: 1px solid currentColor; font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.sev .i { width: 1em; height: 1em; stroke-width: 2; }
.sev.is-crit { color: var(--crit); }
.sev.is-warn { color: var(--warn); }
.sev.is-ok { color: var(--ok); }

/* ---------- Informe: gráficos comparativos (múltiplos pequeños) ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.875rem; color: var(--fg-muted); }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend i { width: 14px; height: 10px; border-radius: 2px; }
.legend .k-them { background-color: var(--bar-muted); }
.legend .k-us { background-color: var(--accent); }
.multiples { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.75rem; }
.metric-card { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.25rem 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); }
.metric-card .bars { margin-top: auto; }
.metric-card h3 { font-family: var(--font-body); font-stretch: 100%; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; }
.metric-card .big { font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-weight: 640; font-stretch: 110%; letter-spacing: -0.04em; line-height: 1; }
.metric-card .big small { display: block; margin-top: 0.35rem; font-family: var(--font-body); font-stretch: 100%; font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; color: var(--fg-muted); }
.bars { display: grid; gap: 0.6rem; margin: 0; }
.bar-row { display: grid; gap: 0.3rem; }
.bar-row dt { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8125rem; color: var(--fg-muted); }
.bar-row dt b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-row dd { position: relative; height: 14px; border-radius: 0 4px 4px 0; }
.bar-row dd::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-bottom: 1px solid var(--line); }
.bar { position: absolute; left: 0; top: 0; bottom: 0; width: max(4px, var(--w)); border-radius: 0 4px 4px 0; outline: none; }
.bar.is-them { background-color: var(--bar-muted); }
.bar.is-us { background-color: var(--accent); }
.bar:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus); }
.data-table { margin-top: 1rem; }
.data-table summary { cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--accent-text); }
.data-table .compare { min-width: 520px; }
.tip {
  position: fixed; z-index: 95; pointer-events: none;
  max-width: 260px; padding: 0.55rem 0.7rem;
  border-radius: 6px; background-color: var(--fg); color: var(--bg);
  font-size: 0.8125rem; line-height: 1.4;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
}
.tip.is-on { opacity: 1; transform: none; }

/* ---------- Informe: hallazgos ---------- */
.findings { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.finding { display: grid; gap: 0.9rem; padding: 1.25rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); }
@media (min-width: 900px) { .finding { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; } .finding-top { grid-column: 1 / -1; } }
.finding-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.finding-top h3, .finding-top h4 { margin: 0; font-size: 1.1rem; font-stretch: 106%; }
.finding dl { display: grid; gap: 0.25rem; }
.finding dt { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.finding dd { font-size: var(--t-small); color: var(--fg); }
.finding dd q { font-style: normal; quotes: "«" "»"; color: var(--fg); background-color: color-mix(in srgb, var(--crit) 9%, transparent); padding: 0 0.2em; border-radius: 3px; }
.finding .fix dd { color: var(--fg); }
.finding .fix dt { color: var(--accent-text); }

.checklist { width: 100%; border-collapse: collapse; font-size: var(--t-small); min-width: 620px; }
.checklist th, .checklist td { padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.checklist thead th { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.checklist tbody th { font-weight: 600; }
.checklist tr:last-child th, .checklist tr:last-child td { border-bottom: 0; }

/* ---------- Informe: hoja de ruta ---------- */
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; }
.phase { display: grid; gap: 0.9rem; align-content: start; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--r-md); background-color: var(--surface); }
.phase-when { font-family: var(--font-mono); font-stretch: var(--wdth-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.phase h3 { font-size: 1.2rem; font-stretch: 106%; }
.phase ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; font-size: var(--t-small); }
.phase li { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--fg-muted); }
.phase li .i { color: var(--accent-text); margin-top: 0.2em; width: 1em; height: 1em; stroke-width: 2; }
.keywords { display: grid; margin: 0; border-top: 1px solid var(--line); }
.keywords div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.keywords dt { font-weight: 600; }
.keywords dd { color: var(--fg-muted); }
@media (max-width: 600px) { .keywords div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; } }
