/* infinure v3 — tokens del tema oscuro (de tokens.json del design system, 14/11/2026) + piezas del prototipo del diagnóstico */
:root {
  --bg: #161616; --surface-1: #222222; --surface-2: #2c2c2c; --surface-3: #2f2f2f; --surface-deep: #101010;
  --line: #2e2e2e; --line-strong: #666666;
  --ink: #ececec; --ink-2: #d2d2d2; --muted: #9c9c9c; --faint: #7e7e7e;
  --on-field: #f2f2f2; --on-field-muted: #b5b2ab; --accent-warm: #e8c9a2;
  --primary: #ececec; --on-primary: #141414; --alert: #ee8a5e;
  --success-bg: #26352a; --success-ink: #cdebc4;
  --agent-iris: #a57be0; --agent-lia: #7ccb5a; --agent-bruno: #4a5be8; --agent-vito: #f2683c;
  --agent-nora: #2fa8e6; --agent-teo: #eba6c6; --agent-ada: #a6eaf2; --agent-lex: #c0396b;
  --orb-iris-0: #b49ae6; --orb-iris-1: #f4f6ff; --orb-iris-2: #a57be0; --orb-iris-3: #e4d8ff;
  --orb-lia-0: #dad9fb; --orb-lia-1: #e3f38a; --orb-lia-2: #1e9b52; --orb-lia-3: #edebff;
  --orb-bruno-0: #c77beb; --orb-bruno-1: #e48af0; --orb-bruno-2: #1a3bd6; --orb-bruno-3: #9b7cf4;
  --orb-vito-0: #ffb25e; --orb-vito-1: #c8161a; --orb-vito-2: #ffc36a; --orb-vito-3: #ffc8c0;
  --orb-nora-0: #ede29a; --orb-nora-1: #f2e3a0; --orb-nora-2: #1fa2e8; --orb-nora-3: #6cc3b0;
  --orb-teo-0: #f2b8c8; --orb-teo-1: #f5c9e4; --orb-teo-2: #d7a97a; --orb-teo-3: #e9b4f0;
  --orb-ada-0: #cff3f8; --orb-ada-1: #f6ffff; --orb-ada-2: #a9eef7; --orb-ada-3: #e8f9d9;
  --orb-lex-0: #b03268; --orb-lex-1: #fff1d6; --orb-lex-2: #c8202a; --orb-lex-3: #8e2a6e;
  --font-display: "Inter Tight", system-ui, sans-serif; --font-mono: "IBM Plex Mono", ui-monospace, monospace; --font-wordmark: "Space Grotesk", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-7: 28px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-14: 56px; --space-16: 64px;
  --radius-s: 10px; --radius-m: 14px; --radius-l: 20px; --radius-xl: 28px; --radius-pill: 999px;
  --shadow-float: 0 20px 50px rgba(0,0,0,0.35); --shadow-wait: 0 0 0 5px rgba(255,255,255,0.16);
  --dur-instant: 120ms; --dur-fast: 180ms; --dur-base: 280ms; --dur-slow: 700ms; --dur-count: 1300ms; --dur-thought: 2600ms; --dur-undo: 10000ms; --dur-field: 26000ms; --dur-field-flow: 18000ms; --dur-grain: 900ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1); --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* Estructura de pantalla del diagnóstico (producto público: barra superior, sin navegación lateral) */
.dg-shell { min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font-display); font-weight: 300; }
.dg-top { max-width: 1180px; margin: 0 auto; box-sizing: border-box; padding: var(--space-6) var(--space-12); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.dg-brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none; }
.dg-brand__word { font-family: var(--font-wordmark); font-weight: 500; font-size: 20px; letter-spacing: -0.028em; line-height: 1; }
.dg-brand__sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-left: var(--space-2); }
.dg-page { max-width: 1180px; margin: 0 auto; box-sizing: border-box; padding: var(--space-6) var(--space-12) var(--space-16); display: flex; flex-direction: column; gap: var(--space-14); }
.dg-section { display: flex; flex-direction: column; gap: var(--space-6); }
.dg-h1 { margin: 0; font-size: 54px; line-height: 58px; font-weight: 300; letter-spacing: -0.03em; max-width: 900px; }
.dg-h2 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 300; letter-spacing: -0.02em; }
.dg-lead { margin: 0; font-size: 18px; line-height: 27px; color: var(--ink-2); max-width: 720px; }
.dg-body { margin: 0; font-size: 15px; line-height: 21px; color: var(--ink-2); }
.dg-small { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.dg-src { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.dg-row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.dg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.dg-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: var(--space-4); }
.dg-proto { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); text-align: center; padding: var(--space-6) 0 var(--space-8); margin: 0; }

/* Escalera de niveles: el stepper que v3 no tiene */
.dg-steps { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.dg-step { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); }
.dg-step__n { color: var(--faint); }
.dg-step[aria-current="step"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.dg-step[aria-current="step"] .dg-step__n { color: var(--on-primary); }
.dg-step--done { color: var(--ink-2); border-color: var(--line-strong); }

/* Origen y confianza: las dos etiquetas propias del diagnóstico */
.dg-origin { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.dg-origin::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); flex: none; }
.dg-origin--cliente::before { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-2); }
.dg-origin--dato::before { border-radius: 1px; }
.dg-conf { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; padding: var(--space-1) 10px; border-radius: var(--radius-pill); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }
.dg-conf--probable { background: var(--surface-2); box-shadow: none; }
.dg-conf--validado { background: var(--success-bg); color: var(--success-ink); box-shadow: none; }
.dg-oi { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-warm); }

/* Campos: input y opciones */
.dg-input { font-family: inherit; font-size: 18px; font-weight: 300; color: var(--ink); background: var(--surface-1); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); min-height: 56px; padding: 0 var(--space-6); box-sizing: border-box; width: 100%; }
.dg-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dg-input::placeholder { color: var(--faint); }
.dg-input--sm { font-size: 15px; min-height: 44px; padding: 0 var(--space-5); }
.dg-chip { font-family: inherit; font-size: 14px; min-height: 44px; padding: 0 var(--space-5); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2); }
.dg-chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.dg-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dg-label { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

/* Filas clickeables y tablas */
.dg-list { display: flex; flex-direction: column; }
.dg-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border-radius: var(--radius-m); border-bottom: 1px solid var(--surface-2); }
.dg-tablebox { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface-1); }
.dg-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; min-width: 640px; }
.dg-table th { text-align: left; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.dg-table td { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--surface-2); color: var(--ink-2); vertical-align: top; }
.dg-table tr:last-child td { border-bottom: 0; }

/* Barras contra la competencia (en tinta, la marca destacada) */
.dg-bars { display: flex; flex-direction: column; gap: var(--space-3); }
.dg-bar { display: grid; grid-template-columns: 140px minmax(0, 1fr) 64px; gap: var(--space-3); align-items: center; font-size: 14px; color: var(--ink-2); }
.dg-bar__track { height: 8px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.dg-bar__fill { display: block; height: 100%; background: var(--muted); border-radius: var(--radius-pill); }
.dg-bar--me .dg-bar__fill { background: var(--ink); }
.dg-bar--me { color: var(--ink); }
.dg-bar__v { font-family: var(--font-mono); font-size: 12px; text-align: right; }

@media (max-width: 720px) {
  .dg-top, .dg-page { padding-left: var(--space-4); padding-right: var(--space-4); }
  .dg-h1 { font-size: 36px; line-height: 40px; }
  .dg-grid2 { grid-template-columns: 1fr; }
  .dg-bar { grid-template-columns: 96px minmax(0, 1fr) 52px; }
}

/* =====================================================================
   v2 del prototipo (17/11/2026) · piezas nuevas del diagnóstico
   ===================================================================== */

/* Control de prototipo: fuera del producto, arriba a la derecha */
.dg-protobar { max-width: 1180px; margin: 0 auto; box-sizing: border-box; padding: var(--space-3) var(--space-12) var(--space-3); display: flex; justify-content: flex-end; align-items: center; gap: var(--space-3) var(--space-6); flex-wrap: wrap; border-bottom: 1px dashed var(--line); }
.dg-protobar__group { display: inline-flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.dg-protobar__label { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.dg-protobar .ix-seg { flex-wrap: wrap; }
.dg-protobar .ix-seg button { min-height: 28px; font-size: 12px; padding: 0 var(--space-3); }

/* Barra superior: centro (medidor) y derecha (ayuda) */
.dg-top__right { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.dg-toplink { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.dg-toplink:hover { color: var(--ink); text-decoration: underline; }

/* Dos tonos */
.dg-quiet { color: var(--faint); }
.dg-onmute { color: var(--on-field-muted); }
.dg-ink { color: var(--ink); }

/* Medidor de precisión */
.dg-meter { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); min-height: 36px; box-sizing: border-box; padding: 0 var(--space-4) 0 var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.dg-meter:hover { border-color: var(--ink-2); color: var(--ink); }
.dg-meter:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dg-meter__track { width: 88px; height: 4px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.dg-meter__fill { display: block; height: 100%; background: var(--ink); border-radius: var(--radius-pill); transition: width var(--dur-slow) var(--ease-out); }
.dg-meter__delta { position: absolute; right: 8px; top: -18px; font-family: var(--font-mono); font-size: 11px; color: var(--ink); animation: dgDelta 2s var(--ease-out) forwards; pointer-events: none; }
@keyframes dgDelta { 0% { opacity: 0; transform: translateY(4px); } 15% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; } }

/* Movimiento: cascada, crecimiento de barras, fundido */
@keyframes dgRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dgGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dgFade { from { opacity: 0; } to { opacity: 1; } }
.dg-cascade > * { animation: dgRise var(--dur-base) var(--ease-out) both; }
.dg-cascade > *:nth-child(2) { animation-delay: 60ms; }
.dg-cascade > *:nth-child(3) { animation-delay: 120ms; }
.dg-cascade > *:nth-child(4) { animation-delay: 180ms; }
.dg-cascade > *:nth-child(5) { animation-delay: 240ms; }
.dg-cascade > *:nth-child(n+6) { animation-delay: 300ms; }
.dg-late { animation: dgRise var(--dur-base) var(--ease-out) 300ms both; }
.dg-fade { animation: dgFade var(--dur-fast) ease both; }
.dg-bar__fill, .dg-meter__fill, .dg-scale__fill { transform-origin: left center; animation: dgGrow var(--dur-slow) var(--ease-out) both; }
.dg-field--still .ix-field__img, .dg-field--still .ix-field__flow, .dg-field--still .ix-field__grain { animation: none; }

/* Cifra grande y titular sobre campo de color */
.dg-big { font-size: 96px; line-height: 96px; letter-spacing: -0.04em; font-weight: 300; color: var(--on-field); font-variant-numeric: tabular-nums; }
.dg-fh2 { margin: 0; max-width: 780px; font-size: 32px; line-height: 38px; letter-spacing: -0.02em; font-weight: 300; color: var(--on-field); }
.dg-fh2--l { font-size: 40px; line-height: 46px; letter-spacing: -0.03em; }

/* Glosario en el lugar: ? con tooltip de una línea */
.dg-q { all: unset; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); font-family: var(--font-mono); font-size: 10px; line-height: 1; color: var(--muted); cursor: help; vertical-align: middle; text-transform: none; }
.dg-q:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dg-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 260px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-s); background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--ink); font-family: var(--font-display); font-size: 13px; line-height: 18px; font-weight: 300; letter-spacing: 0; text-transform: none; white-space: normal; text-align: left; opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) ease; z-index: 5; }
.dg-q:hover .dg-tip, .dg-q:focus-visible .dg-tip { opacity: 1; }

/* Botón de texto (alternativas a un primario) */
.dg-linkbtn { all: unset; cursor: pointer; font-size: 14px; line-height: 20px; color: var(--accent-warm); }
.dg-linkbtn:hover { color: var(--on-field); text-decoration: underline; }
.dg-linkbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.dg-link { font-size: 14px; line-height: 20px; }

/* Interruptor con su texto */
.dg-switchrow { display: flex; align-items: flex-start; gap: var(--space-3); font-size: 15px; line-height: 21px; color: var(--ink-2); cursor: pointer; }
.dg-switchrow .ix-switch { margin-top: -1px; }

/* Confirmación con deshacer, en el flujo (no flotante, para que se vea junto a la acción) */
.dg-toastwrap { display: flex; justify-content: flex-end; }
.dg-toastwrap .ix-toast { animation: dgRise var(--dur-base) var(--ease-out) both; }

/* Hecho e inferencia: Lo que vimos / Lo que creemos / Otra explicación */
.dg-evidence { display: flex; flex-direction: column; }
.dg-ev { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: var(--space-2) var(--space-5); padding: var(--space-4) 0; border-top: 1px solid var(--surface-2); }
.dg-ev:first-child { border-top: 0; padding-top: 0; }
.dg-ev:last-child { padding-bottom: 0; }
.dg-ev__k { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.dg-ev__v { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }

/* Cruce de alineación */
.dg-crosses { display: flex; flex-direction: column; }
.dg-cross { display: grid; grid-template-columns: 136px minmax(0, 1fr) minmax(0, 240px); gap: var(--space-2) var(--space-5); align-items: start; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--surface-2); }
.dg-cross:last-child { border-bottom: 0; }
.dg-cross__name { margin: 0; font-size: 16px; line-height: 22px; font-weight: 400; color: var(--ink); }
.dg-state { justify-self: start; display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; padding: var(--space-1) 10px; border-radius: var(--radius-pill); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }
.dg-state--des { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.dg-state--par { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.dg-state--ali { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }
.dg-state--sin { color: var(--faint); box-shadow: none; border: 1px dashed var(--line-strong); }

/* Escalera de pasos */
.dg-ladder { display: flex; flex-direction: column; gap: var(--space-2); }
.dg-rung { display: grid; grid-template-columns: 40px minmax(0, 1.5fr) minmax(0, 1fr) 132px; gap: var(--space-2) var(--space-5); align-items: center; padding: var(--space-4) var(--space-5); border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface-1); }
.dg-rung--done { background: transparent; border-color: var(--surface-2); }
.dg-rung--done .dg-rung__t { color: var(--ink-2); }
.dg-rung--next { background: var(--surface-3); border-color: var(--line-strong); }
.dg-rung--later { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.dg-rung__n { font-size: 22px; line-height: 26px; letter-spacing: -0.02em; color: var(--faint); }
.dg-rung__t { margin: 0; font-size: 17px; line-height: 23px; font-weight: 400; color: var(--ink); }
.dg-rung__main { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.dg-rung__p { text-align: right; font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: var(--ink); }
.dg-mark { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-5); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.dg-mark::before, .dg-mark::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* Permiso por fuente */
.dg-perm__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4) var(--space-6); }
.dg-perm__col { display: flex; flex-direction: column; gap: var(--space-2); }
.dg-perm--hi { background: var(--surface-3); border-color: var(--ink-2); }

/* Zona para soltar un archivo */
.dg-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--space-3); min-height: 180px; padding: var(--space-8); border-radius: var(--radius-l); border: 1px dashed var(--line-strong); box-sizing: border-box; }

/* Mensaje armado para WhatsApp o mail */
.dg-wa { display: flex; flex-direction: column; gap: var(--space-4); }
.dg-wa__bubble { align-self: flex-start; max-width: 600px; margin: 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-l) var(--radius-l) var(--radius-l) var(--radius-s); background: var(--surface-2); color: var(--ink); font-size: 15px; line-height: 22px; white-space: pre-line; }

/* Valor en juego */
.dg-value__n { margin: 0; font-size: 32px; line-height: 38px; letter-spacing: -0.02em; font-weight: 300; color: var(--ink); font-variant-numeric: tabular-nums; }
.dg-assume { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: var(--space-1); font-size: 13px; line-height: 18px; color: var(--muted); }

/* Tareas con casilla */
.dg-checks { display: flex; flex-direction: column; }
.dg-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-2) var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--surface-2); align-items: start; }
.dg-check:last-child { border-bottom: 0; }
.dg-box { all: unset; box-sizing: border-box; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; color: var(--on-primary); cursor: pointer; transition: background-color var(--dur-fast) ease; }
.dg-box[aria-checked="true"] { background: var(--primary); border-color: var(--primary); }
.dg-box:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dg-check__t { margin: 0; font-size: 17px; line-height: 23px; font-weight: 400; color: var(--ink); }
.dg-check--done .dg-check__t { text-decoration: line-through; color: var(--muted); }

/* Madurez de 1 a 5 con marca de meta */
.dg-scale { display: flex; flex-direction: column; gap: var(--space-5); }
.dg-scale__row { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 320px); gap: var(--space-2) var(--space-5); align-items: center; font-size: 15px; color: var(--ink-2); }
.dg-scale__track { position: relative; height: 8px; border-radius: var(--radius-pill); background: var(--surface-2); }
.dg-scale__track--none { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: var(--radius-pill); }
.dg-scale__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--radius-pill); background: var(--ink-2); }
.dg-scale__goal { position: absolute; top: -5px; width: 2px; height: 18px; margin-left: -1px; border-radius: 1px; background: var(--muted); }
.dg-scale__v { font-size: 13px; line-height: 18px; color: var(--muted); }
.dg-scale__v strong { font-weight: 400; color: var(--ink); }
.dg-scale__axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--faint); }
.dg-scale__axis span { width: 0; display: inline-flex; justify-content: center; }

/* Barras con valor largo y embudo */
.dg-bars--wide .dg-bar { grid-template-columns: 130px minmax(0, 1fr) 118px; }
.dg-funnel .dg-bar { grid-template-columns: 240px minmax(0, 1fr) 40px; }

/* Fila destacada de la marca en una tabla */
.dg-me td { color: var(--ink); background: var(--surface-2); }

/* Persona (foto a completar) */
.dg-avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px dashed var(--line-strong); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); box-sizing: border-box; }

/* Horarios */
.dg-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-4); }
.dg-slotday { display: flex; flex-direction: column; gap: var(--space-2); }

/* Tarjeta horizontal */
.dg-hcard { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }

/* Etiqueta tachada (columna descartada) */
.dg-strike { text-decoration: line-through; color: var(--muted); }

/* Lista con flecha (qué cambió) */
.dg-changes { display: flex; flex-direction: column; }
.dg-change { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--surface-2); font-size: 16px; line-height: 23px; color: var(--ink-2); }
.dg-change:last-child { border-bottom: 0; }
.dg-change__a { color: var(--faint); font-family: var(--font-mono); }

/* Firma del agente al pie de un bloque */
.dg-sign { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 12px; line-height: 16px; color: var(--muted); }

/* Teléfono (vista del invitado al costado) */
.dg-phone { width: 100%; max-width: 390px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-5); background: var(--bg); display: flex; flex-direction: column; gap: var(--space-5); }
.dg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); gap: var(--space-8); align-items: start; }

/* Celular (artboard de 390 px) */
.dg-m { width: 390px; min-height: 844px; box-sizing: border-box; background: var(--bg); color: var(--ink); font-family: var(--font-display); font-weight: 300; }
.dg-mtop { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--bg); border-bottom: 1px solid var(--surface-2); }
.dg-mpage { padding: var(--space-6) var(--space-4) 128px; display: flex; flex-direction: column; gap: var(--space-8); }
.dg-mh1 { margin: 0; font-size: 36px; line-height: 40px; font-weight: 300; letter-spacing: -0.03em; }
.dg-mrec { border-bottom: 1px solid var(--surface-2); }
.dg-mrec__head { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; gap: var(--space-3); align-items: start; padding: var(--space-4) 0; }
.dg-mrec__head:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.dg-mrec__n { font-size: 22px; line-height: 26px; color: var(--faint); }
.dg-mrec__t { margin: 0 0 var(--space-2); font-size: 18px; line-height: 24px; font-weight: 400; color: var(--ink); }
.dg-mrec__body { padding: 0 0 var(--space-5) 40px; display: flex; flex-direction: column; gap: var(--space-3); }
.dg-mev { display: flex; flex-direction: column; gap: var(--space-1); }
.dg-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding: var(--space-3) var(--space-4) var(--space-5); background: var(--bg); border-top: 1px solid var(--line); display: flex; }
.dg-mbar .ix-btn { flex: 1; }

/* Panel interno: contenedor principal fluido al lado de la navegación */
.dg-panel { flex: 999 1 560px; min-width: 0; box-sizing: border-box; padding: var(--space-7) var(--space-12) var(--space-16); display: flex; flex-direction: column; gap: var(--space-12); }
.dg-rowbtn { all: unset; cursor: pointer; color: var(--ink); }
.dg-rowbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.dg-sel td { background: var(--surface-2); }

@media (max-width: 860px) {
  .dg-rung { grid-template-columns: 32px minmax(0, 1fr); }
  .dg-rung > :nth-child(3), .dg-rung > :nth-child(4) { grid-column: 2; }
  .dg-rung__p { text-align: left; }
  .dg-cross { grid-template-columns: minmax(0, 1fr); }
  .dg-split { grid-template-columns: minmax(0, 1fr); }
  .dg-scale__row { grid-template-columns: minmax(0, 1fr); }
  .dg-funnel .dg-bar { grid-template-columns: 130px minmax(0, 1fr) 40px; }
}
/* Lista de recomendaciones (deja lugar para el margen negativo de ix-rec--top) */
.dg-recs { padding: 0 var(--space-7); }

@media (max-width: 720px) {
  .dg-recs { padding: 0; }
  .dg-recs .ix-rec { grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); }
  .dg-recs .ix-rec > :nth-child(3) { grid-column: 2; justify-self: start; }
  .dg-recs .ix-rec--top { margin: 0; padding: var(--space-5) var(--space-3); }
  .dg-tip { display: none; left: 0; transform: none; max-width: 220px; }
  .dg-q:hover .dg-tip, .dg-q:focus-visible .dg-tip { display: block; }
  .dg-protobar { padding-left: var(--space-4); padding-right: var(--space-4); justify-content: flex-start; }
  .dg-ev { grid-template-columns: minmax(0, 1fr); }
  .dg-big { font-size: 64px; line-height: 64px; }
  .dg-fh2, .dg-fh2--l { font-size: 26px; line-height: 32px; }
  .dg-panel { padding-left: var(--space-4); padding-right: var(--space-4); }
  .dg-bars--wide .dg-bar { grid-template-columns: 96px minmax(0, 1fr) 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-cascade > *, .dg-late, .dg-fade, .dg-bar__fill, .dg-meter__fill, .dg-scale__fill, .dg-meter__delta, .dg-toastwrap .ix-toast { animation: none !important; }
  .dg-meter__fill { transition: none; }
}

/* =====================================================================
   Análisis visual (17 a 20 y adelantos en 06) · 17/11/2026
   Los colores de las creatividades y de las paletas son contenido:
   llegan desde los datos como propiedades (--c-bg, --c, --hc...), no como hex en este archivo.
   ===================================================================== */

/* Títulos de gráfico, leyendas y pie */
.dg-h3 { margin: 0; font-size: 21px; line-height: 27px; font-weight: 300; letter-spacing: -0.01em; color: var(--ink); max-width: 820px; }
.dg-chartfoot { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; }
.dg-legend { display: flex; gap: var(--space-2) var(--space-4); flex-wrap: wrap; font-size: 12px; line-height: 16px; color: var(--muted); }
.dg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dg-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lc); flex: none; }
.dg-legend i.dg-legend__sq { border-radius: 2px; }
.dg-legend i.dg-legend__ring { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-2); }
.dg-legend i.dg-legend__dash { background: transparent; border: 1px dashed var(--ink-2); box-sizing: border-box; }
.dg-scrollx { overflow-x: auto; overflow-y: visible; }
.dg-said-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.dg-hero2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-8); align-items: end; }
.dg-lines { display: flex; flex-direction: column; gap: var(--space-2); }

/* Resumen para lector de pantalla de un gráfico con partes interactivas */
.dg-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Filtros de la galería */
.dg-filters { display: flex; flex-direction: column; gap: var(--space-3); }
.dg-filter { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.dg-filter__k { width: 84px; flex: none; }
.dg-pill { all: unset; box-sizing: border-box; font-size: 13px; line-height: 18px; min-height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.dg-pill:hover { border-color: var(--ink-2); color: var(--ink); }
.dg-pill[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.dg-pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dg-pill__n { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }

/* Galería de piezas */
.dg-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: var(--space-4); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.dg-adcard { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-2); border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface-1); min-width: 0; transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out); }
.dg-adcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.dg-adcard[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dg-adcard:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dg-adcard__meta { display: flex; flex-direction: column; gap: 6px; padding: 2px 4px 4px; min-width: 0; }
.dg-adcard__t { font-size: 13px; line-height: 18px; color: var(--ink); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-adcard__tags { display: flex; gap: 4px; flex-wrap: wrap; }
.dg-mini { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.dg-mini--x { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); }

/* Marco y creatividad (las medidas internas van en % y en cqw: la misma pieza sirve chica y grande) */
.dg-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-s); background: var(--surface-deep); overflow: hidden; }
.dg-ad { position: absolute; overflow: hidden; container-type: inline-size; font-family: var(--font-display); background: var(--c-bg); color: var(--c-ink); }
.dg-ad--45 { inset: 0; }
.dg-ad--916 { top: 0; bottom: 0; left: 50%; aspect-ratio: 9 / 16; transform: translateX(-50%); }
.dg-ad--11 { left: 0; right: 0; top: 50%; aspect-ratio: 1 / 1; transform: translateY(-50%); }
.dg-ad__blk { position: absolute; }
.dg-ad__prod { position: absolute; color: var(--c-prod); }
.dg-ad__prod svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dg-sil { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.dg-sil .f { fill: currentColor; fill-opacity: 0.16; }
.dg-ad__head { position: absolute; margin: 0; font-weight: 700; font-size: 8.6cqw; line-height: 1.02; letter-spacing: -0.025em; color: var(--c-head); }
.dg-ad__head--s { font-size: 6.4cqw; line-height: 1.08; }
.dg-ad__kick { display: block; margin-top: 1.6cqw; font-weight: 500; font-size: 3.8cqw; line-height: 1.2; letter-spacing: 0; opacity: 0.9; }
.dg-ad__chip { position: absolute; padding: 1.8cqw 3.2cqw; border-radius: 2.4cqw; background: var(--c-chip); color: var(--c-chipink); font-weight: 800; font-size: 7.4cqw; line-height: 1; white-space: nowrap; }
.dg-ad__chip small { display: block; margin-top: 1cqw; font-size: 3.3cqw; font-weight: 600; }
.dg-ad__stk { position: absolute; width: 21cqw; height: 21cqw; border-radius: 50%; background: var(--c-stk); color: var(--c-stkink); display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-size: 5cqw; line-height: 1; transform: rotate(-10deg); }
.dg-ad__logo { position: absolute; font-family: var(--font-wordmark); font-weight: 600; font-size: 4.8cqw; line-height: 1; letter-spacing: -0.02em; color: var(--c-logo); white-space: nowrap; }
.dg-ad__hand { position: absolute; border-radius: 46% 46% 34% 34% / 40% 40% 60% 60%; background: var(--c-skin); }
.dg-ad__face { position: absolute; border-radius: 50%; background: var(--c-skin); }
.dg-ad__torso { position: absolute; border-radius: 40% 40% 0 0 / 30% 30% 0 0; background: var(--c-shirt); }
.dg-ad__sub { position: absolute; left: 7%; right: 7%; margin: 0; text-align: center; font-weight: 700; font-size: 5.8cqw; line-height: 1.2; color: var(--c-sub); }
.dg-ad__sub span { padding: 0.4cqw 1.6cqw; border-radius: 1.4cqw; background: color-mix(in srgb, var(--surface-deep) 62%, transparent); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.dg-ad__play { position: absolute; right: 5%; top: 4%; font-family: var(--font-mono); font-size: 3.6cqw; line-height: 1; padding: 1.2cqw 2.2cqw; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--surface-deep) 62%, transparent); color: var(--on-field); }
.dg-ad__prog { position: absolute; left: 5%; right: 5%; bottom: 3%; height: 1.1cqw; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--on-field) 35%, transparent); overflow: hidden; }
.dg-ad__prog i { display: block; height: 100%; width: 22%; background: var(--on-field); }
.dg-ad__dots { position: absolute; left: 0; right: 0; bottom: 4%; display: flex; justify-content: center; gap: 1.8cqw; }
.dg-ad__dots i { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: var(--c-head); opacity: 0.35; }
.dg-ad__dots i:first-child { opacity: 1; }
.dg-ad__peek { position: absolute; right: -7%; top: 12%; bottom: 14%; width: 13%; border-radius: 3cqw; background: var(--c-peek); }
.dg-ad__grid { position: absolute; left: 5%; right: 5%; top: 17%; bottom: 5%; display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.dg-ad__tile { position: relative; border-radius: 3cqw; background: var(--c-tile); color: var(--c-prod); overflow: hidden; }
.dg-ad__tile svg { position: absolute; left: 22%; top: 8%; width: 56%; height: 62%; }
.dg-ad__tile b { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font-size: 4.6cqw; font-weight: 800; color: var(--c-head); }

/* Visión: línea de escaneo y cajas de detección */
.dg-scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--on-field); box-shadow: 0 0 14px 3px color-mix(in srgb, var(--on-field) 55%, transparent); pointer-events: none; z-index: 4; }
.dg-scan::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 44px; background: linear-gradient(to top, color-mix(in srgb, var(--on-field) 24%, transparent), transparent); }
.dg-vbox { position: absolute; z-index: 3; box-sizing: border-box; border: 1.5px dashed var(--on-field); border-radius: 4px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--surface-deep) 55%, transparent); opacity: 0; transform: scale(0.94); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), border-color var(--dur-fast) ease; pointer-events: none; }
.dg-vbox--on { opacity: 1; transform: none; }
.dg-vbox--hi { border-style: solid; border-width: 2px; }
.dg-vbox__l { position: absolute; left: -1.5px; top: -1.5px; transform: translateY(-100%); font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px 4px 4px 0; background: var(--surface-deep); color: var(--on-field); white-space: nowrap; }
.dg-vbox__l--in { transform: none; top: 2px; left: 2px; border-radius: 3px; }
.dg-vbox__l--r { left: auto; right: -1.5px; border-radius: 4px 4px 0 4px; }
.dg-frame--big { border-radius: var(--radius-m); }
.dg-frame--big .dg-vbox__l { font-size: 11px; line-height: 15px; }

/* Ficha de la pieza */
.dg-split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: var(--space-8); align-items: start; }
.dg-sticky { position: sticky; top: var(--space-4); }
.dg-adview { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.dg-adview__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.dg-detlist { display: flex; flex-direction: column; }
.dg-detrow { all: unset; box-sizing: border-box; cursor: default; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--surface-2); opacity: 0.35; transition: opacity var(--dur-base) var(--ease-out); }
.dg-detrow--on { opacity: 1; }
.dg-detrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.dg-detrow__k { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.dg-detrow__v { grid-column: 1; font-size: 14px; line-height: 19px; color: var(--ink); }
.dg-detrow__c { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.dg-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.dg-sw { display: flex; flex-direction: column; gap: 4px; min-width: 0; animation: dgRise var(--dur-base) var(--ease-out) both; }
.dg-sw__c { height: 52px; border-radius: var(--radius-s); background: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); }
.dg-sw__h { font-family: var(--font-mono); font-size: 11px; line-height: 14px; color: var(--ink); }
.dg-sw__p { font-family: var(--font-mono); font-size: 10px; line-height: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-palbar { display: flex; height: 14px; border-radius: var(--radius-pill); overflow: hidden; gap: 2px; }
.dg-palbar i { display: block; height: 100%; background: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); transition: flex-basis var(--dur-slow) var(--ease-out); }
.dg-kv { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--space-2) var(--space-4); margin: 0; }
.dg-kv dt { font-family: var(--font-mono); font-size: 11px; line-height: 20px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.dg-kv dd { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.dg-copy { margin: 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-m); background: var(--surface-2); font-size: 14px; line-height: 21px; color: var(--ink); }

/* Gráficos armados con divs posicionados */
.dg-chart { position: relative; }
.dg-plot { position: absolute; left: 48px; right: 14px; top: 14px; bottom: 40px; }
.dg-gl { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.dg-gl--v { top: 0; bottom: 0; width: 0; height: auto; border-top: 0; border-left: 1px solid var(--line); }
.dg-gl--base { border-color: var(--line-strong); }
.dg-gl--dash { border-top-style: dashed; border-left-style: dashed; border-color: var(--line-strong); }
.dg-axl { position: absolute; font-family: var(--font-mono); font-size: 10px; line-height: 12px; color: var(--faint); white-space: nowrap; }
.dg-axl--y { right: calc(100% + 8px); transform: translateY(-50%); }
.dg-axl--x { top: calc(100% + 8px); transform: translateX(-50%); }
.dg-axt { position: absolute; font-family: var(--font-mono); font-size: 10px; line-height: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.dg-svgline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dg-svgline polyline, .dg-svgline line { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.dg-svgline .dg-trend { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 6; }
.dg-svgline .dg-l2 { stroke: var(--muted); stroke-dasharray: 2 5; }
@keyframes dgPop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes dgPopC { from { opacity: 0; transform: translate(-50%, -50%) scale(0.4); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes dgGrowR { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dgGrowU { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes dgScanY { from { top: 0; } to { top: 100%; } }
.dg-pt { all: unset; position: absolute; box-sizing: border-box; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--muted); cursor: pointer; animation: dgPop var(--dur-slow) var(--ease-out) both; transition: left var(--dur-slow) var(--ease-out), top var(--dur-slow) var(--ease-out), background-color var(--dur-fast) ease, opacity var(--dur-base) ease, box-shadow var(--dur-fast) ease; }
.dg-pt--me { background: var(--ink); width: 12px; height: 12px; margin: -6px 0 0 -6px; z-index: 2; }
.dg-pt--foc { background: var(--ink-2); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink-2); z-index: 2; }
.dg-pt--dim { opacity: 0.25; }
.dg-pt--sel { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); z-index: 4; opacity: 1; }
.dg-pt:hover { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--ink-2); z-index: 4; }
.dg-pt:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; z-index: 4; }
.dg-tt { position: absolute; z-index: 8; box-sizing: border-box; width: max-content; max-width: 250px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-s); background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--ink); font-size: 13px; line-height: 18px; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); animation: dgFade var(--dur-fast) ease both; }
.dg-tt--l { transform: translate(-12px, calc(-100% - 14px)); }
.dg-tt--r { transform: translate(calc(-100% + 12px), calc(-100% - 14px)); }
.dg-tt--below { transform: translate(-50%, 16px); }
.dg-tt span { display: block; color: var(--muted); font-size: 12px; line-height: 17px; }
.dg-cap { min-height: 40px; font-size: 14px; line-height: 20px; color: var(--ink-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--surface-2); }
.dg-cap strong { font-weight: 400; color: var(--ink); }

/* Línea de tendencia punteada (puntos posicionados, sin SVG dinámico) */
.dg-tdot { position: absolute; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: var(--ink-2); pointer-events: none; transition: left var(--dur-slow) var(--ease-out), top var(--dur-slow) var(--ease-out); }

/* Barras apiladas */
.dg-stks { display: flex; flex-direction: column; gap: var(--space-4); }
.dg-stkrow { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.dg-stk { display: flex; height: 42px; gap: 2px; border-radius: var(--radius-s); overflow: hidden; }
.dg-stk__s { all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; padding: 0 10px; min-width: 0; font-family: var(--font-mono); font-size: 11px; white-space: nowrap; overflow: hidden; cursor: default; transform-origin: left center; animation: dgGrowR var(--dur-slow) var(--ease-out) both; transition: flex-basis var(--dur-slow) var(--ease-out); }
.dg-stk__s:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.dg-stk__s--a { background: var(--ink); color: var(--on-primary); }
.dg-stk__s--c { background: color-mix(in srgb, var(--ink) 52%, var(--surface-1)); color: var(--on-primary); }
.dg-stk__s--e { background: var(--surface-3); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.dg-stk--them .dg-stk__s--a { background: var(--muted); }
.dg-stk--them .dg-stk__s--c { background: color-mix(in srgb, var(--muted) 55%, var(--surface-1)); }
.dg-stk--them .dg-stk__s--e { background: var(--surface-2); color: var(--muted); }
.dg-said { position: relative; height: 26px; }
.dg-said__b { position: absolute; left: 0; top: 15px; height: 9px; box-sizing: border-box; border: 1px dashed var(--ink-2); border-bottom: 0; border-radius: 4px 4px 0 0; transition: width var(--dur-slow) var(--ease-out); }

/* Paletas por marca */
.dg-pals { display: flex; flex-direction: column; gap: var(--space-3); }
.dg-palrow { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 112px minmax(0, 1fr) 104px; gap: var(--space-4); align-items: center; padding: var(--space-2) var(--space-2); border-radius: var(--radius-s); cursor: pointer; }
.dg-palrow:hover { background: var(--surface-2); }
.dg-palrow[aria-pressed="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.dg-palrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dg-palrow .dg-palbar { height: 30px; border-radius: 6px; }
.dg-palrow__v { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-2); text-align: right; }
.dg-palbar i.dg-pal--own { box-shadow: inset 0 0 0 2px var(--on-field), inset 0 0 0 3px var(--surface-deep); }
.dg-palbar i.dg-pal--other { background: repeating-linear-gradient(135deg, var(--surface-3) 0 4px, var(--surface-2) 4px 8px); }

/* Mapa de calor */
.dg-heat { display: grid; grid-template-columns: 136px repeat(5, minmax(64px, 1fr)); gap: 4px; min-width: 560px; }
.dg-heat__h { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 0 0 6px; align-self: end; }
.dg-heat__r { font-size: 14px; line-height: 18px; color: var(--ink-2); align-self: center; }
.dg-heat__r--me { color: var(--ink); }
.dg-heat__c { all: unset; box-sizing: border-box; min-height: 54px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--font-mono); font-size: 13px; line-height: 16px; color: var(--ink); background: color-mix(in srgb, var(--hc) var(--p), var(--surface-1)); cursor: default; transition: background-color var(--dur-slow) var(--ease-out), box-shadow var(--dur-fast) ease; animation: dgFade var(--dur-slow) ease both; }
.dg-heat__c small { font-size: 10px; line-height: 12px; opacity: 0.75; }
.dg-heat__c--dk { color: var(--on-primary); }
.dg-heat__c--hi, .dg-heat__c:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.dg-heat__c:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Línea de tiempo de antigüedad */
.dg-tl { position: relative; padding-top: 26px; }
.dg-tl__rows { position: relative; display: flex; flex-direction: column; gap: 3px; }
.dg-tl__row { all: unset; box-sizing: border-box; position: relative; display: block; height: 9px; cursor: pointer; }
.dg-tl__bar { position: absolute; right: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--tc); transform-origin: right center; animation: dgGrowR var(--dur-slow) var(--ease-out) both; transition: width var(--dur-slow) var(--ease-out); }
.dg-tl__row:hover .dg-tl__bar, .dg-tl__row:focus-visible .dg-tl__bar, .dg-tl__row--sel .dg-tl__bar { box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px var(--ink); }
.dg-tl__row:focus-visible { outline: none; }
.dg-tl__zone { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--ink) 5%, transparent); border-right: 1px dashed var(--line-strong); pointer-events: none; }
.dg-tl__zl { position: absolute; top: 0; font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.dg-tl__axis { position: relative; height: 18px; margin-top: 8px; }

/* Efectos con intervalo */
.dg-eff { display: flex; flex-direction: column; gap: 6px; }
.dg-eff__row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 230px minmax(0, 1fr) 128px; gap: var(--space-4); align-items: center; padding: 8px 10px; border-radius: var(--radius-s); cursor: default; }
.dg-eff__row:hover, .dg-eff__row--sel { background: var(--surface-2); }
.dg-eff__row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dg-eff__k { font-size: 14px; line-height: 19px; color: var(--ink); }
.dg-eff__track { position: relative; height: 24px; }
.dg-eff__zero { position: absolute; top: -8px; bottom: -8px; width: 0; border-left: 1px solid var(--line-strong); }
.dg-eff__ci { position: absolute; top: 50%; height: 0; border-top: 2px solid var(--muted); transition: left var(--dur-slow) var(--ease-out), width var(--dur-slow) var(--ease-out); }
.dg-eff__ci::before, .dg-eff__ci::after { content: ""; position: absolute; top: -6px; width: 0; height: 10px; border-left: 2px solid var(--muted); }
.dg-eff__ci::before { left: -1px; } .dg-eff__ci::after { right: -1px; }
.dg-eff__bar { position: absolute; top: 5px; bottom: 5px; border-radius: 3px; background: var(--ink-2); opacity: 0.55; animation: dgFade var(--dur-slow) ease both; }
.dg-eff__pt { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); animation: dgPop var(--dur-slow) var(--ease-out) both; }
.dg-eff__row--weak .dg-eff__pt { background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink-2); }
.dg-eff__row--weak .dg-eff__bar { opacity: 0.22; }
.dg-eff__v { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-2); text-align: right; }

/* Burbujas */
.dg-bub { all: unset; box-sizing: border-box; position: absolute; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; font-size: 12px; line-height: 14px; color: var(--ink); background: color-mix(in srgb, var(--ink) 15%, transparent); box-shadow: inset 0 0 0 1px var(--ink-2); cursor: pointer; transform: translate(-50%, -50%); animation: dgPopC var(--dur-slow) var(--ease-out) both; transition: background-color var(--dur-fast) ease, left var(--dur-slow) var(--ease-out), top var(--dur-slow) var(--ease-out), width var(--dur-slow) var(--ease-out), height var(--dur-slow) var(--ease-out); }
.dg-bub--neg { background: color-mix(in srgb, var(--surface-deep) 50%, transparent); box-shadow: none; border: 1px dashed var(--ink-2); }
.dg-bub--them { background: color-mix(in srgb, var(--muted) 18%, transparent); box-shadow: inset 0 0 0 1px var(--muted); color: var(--ink-2); }
.dg-bub--me { background: color-mix(in srgb, var(--ink) 26%, transparent); box-shadow: inset 0 0 0 2px var(--ink); }
.dg-bub[aria-pressed="true"] { background: var(--ink); color: var(--on-primary); border-color: var(--ink); }
.dg-bub:hover { background: color-mix(in srgb, var(--ink) 32%, transparent); }
.dg-bub[aria-pressed="true"]:hover { background: var(--ink); }
.dg-bub:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dg-bub--sm { font-size: 10px; line-height: 12px; }
.dg-zone { position: absolute; box-sizing: border-box; border: 1px dashed var(--ink-2); border-radius: var(--radius-m); background: color-mix(in srgb, var(--ink) 6%, transparent); display: flex; align-items: flex-start; padding: 8px 10px; transition: left var(--dur-slow) var(--ease-out), top var(--dur-slow) var(--ease-out), width var(--dur-slow) var(--ease-out), height var(--dur-slow) var(--ease-out); }

/* Zona de toque por columna (trimestres) */
.dg-hit { all: unset; position: absolute; top: 0; bottom: 0; box-sizing: border-box; cursor: pointer; border-radius: 6px; }
.dg-hit:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.dg-hit:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Línea de tendencia con volumen */
.dg-vol { position: absolute; bottom: 0; width: 5%; margin-left: -2.5%; border-radius: 3px 3px 0 0; background: var(--surface-3); transform-origin: bottom center; animation: dgGrowU var(--dur-slow) var(--ease-out) both; }

/* Citas */
.dg-quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.dg-quote { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface-1); animation: dgRise var(--dur-base) var(--ease-out) both; }
.dg-quote p { margin: 0; font-size: 17px; line-height: 24px; color: var(--ink); font-weight: 300; }
.dg-quote--neg { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.dg-stars { display: inline-flex; gap: 3px; }
.dg-stars i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); }
.dg-stars i.off { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Barras enfrentadas */
.dg-vs { display: flex; flex-direction: column; gap: 10px; }
.dg-vs__head { display: grid; grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr); gap: var(--space-3); }
.dg-vs__row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr); gap: var(--space-3); align-items: center; padding: 4px 0; border-radius: 6px; cursor: default; }
.dg-vs__row:hover, .dg-vs__row--sel { background: var(--surface-2); }
.dg-vs__row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dg-vs__k { text-align: center; font-size: 14px; line-height: 18px; color: var(--ink); }
.dg-vs__side { position: relative; height: 28px; }
.dg-vs__b { position: absolute; top: 0; bottom: 0; border-radius: 4px; animation: dgGrowR var(--dur-slow) var(--ease-out) both; transition: width var(--dur-slow) var(--ease-out); }
.dg-vs__side--l .dg-vs__b { right: 0; background: var(--ink); transform-origin: right center; }
.dg-vs__side--r .dg-vs__b { left: 0; background: color-mix(in srgb, var(--ink) 42%, var(--surface-1)); transform-origin: left center; }
.dg-vs__v { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 12px; line-height: 14px; color: var(--ink-2); white-space: nowrap; }

/* Pieza seleccionada: creatividad grande a la izquierda, lectura a la derecha */
.dg-pieza { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.dg-pieza__col { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
@media (max-width: 860px) {
  .dg-pieza { grid-template-columns: minmax(0, 1fr); }
  .dg-pieza > .dg-frame { width: 100%; max-width: 420px; }
}

/* Adelanto en 06 */
.dg-teaser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.dg-teaser__it { display: flex; gap: var(--space-2); align-items: flex-start; min-width: 0; color: inherit; text-decoration: none; border-radius: var(--radius-s); }
.dg-teaser__it:hover .dg-frame { box-shadow: 0 0 0 1px var(--ink-2); }
.dg-teaser__it:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dg-teaser .dg-frame { width: 64px; flex: none; border-radius: 8px; transition: box-shadow var(--dur-fast) ease; }
.dg-teaser__tags { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.dg-teaser__tags .dg-mini { white-space: normal; }

@media (max-width: 960px) {
  .dg-split2 { grid-template-columns: minmax(0, 1fr); }
  .dg-sticky { position: static; }
  .dg-hero2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .dg-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .dg-teaser { grid-template-columns: minmax(0, 1fr); }
  .dg-adview__top { grid-template-columns: minmax(0, 1fr); }
  .dg-filter__k { width: 100%; }
  .dg-sw__c { height: 40px; }
  .dg-plot { left: 38px; right: 8px; }
  .dg-stkrow { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .dg-palrow { grid-template-columns: 88px minmax(0, 1fr); }
  .dg-palrow__v { grid-column: 1 / -1; text-align: left; }
  .dg-eff__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .dg-eff__v { text-align: left; }
  .dg-vs__head, .dg-vs__row { grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr); gap: var(--space-2); }
  .dg-vs__k { font-size: 12px; }
  .dg-kv { grid-template-columns: 88px minmax(0, 1fr); }
  .dg-h3 { font-size: 19px; line-height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-pt, .dg-bub, .dg-stk__s, .dg-tl__bar, .dg-vs__b, .dg-quote, .dg-sw, .dg-heat__c, .dg-eff__bar, .dg-eff__pt, .dg-vol, .dg-tt { animation: none !important; }
  .dg-pt, .dg-bub, .dg-vbox, .dg-detrow, .dg-gal, .dg-palbar i, .dg-tl__bar, .dg-vs__b, .dg-eff__ci, .dg-zone, .dg-said__b, .dg-stk__s, .dg-heat__c { transition: none !important; }
}

/* =====================================================================
   v3 del prototipo (17/11/2026) · base compartida
   - Componentes React del paquete (ds/infinure-v3/components) + estas clases.
   - Sin hex sueltos: solo variables de :root.
   ===================================================================== */

/* Grano: la ÚNICA regla del prototipo con la URL del grano del canvas (pisa la del bundle.css, que no sirve aquí). */
.ix-field__grain, .ix-orb::after { background-image: url("/_blob/407a69b8aa4c4452a50379952121de40"); }

/* Barra de control de prototipo (no es parte del producto) */
.dg-protobar { justify-content: space-between; background: var(--surface-deep); max-width: none; padding-left: max(var(--space-12), calc((100% - 1180px) / 2 + var(--space-12))); padding-right: max(var(--space-12), calc((100% - 1180px) / 2 + var(--space-12))); }
.dg-protobar__title { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-warm); }
.dg-protobar__groups { display: flex; gap: var(--space-3) var(--space-6); flex-wrap: wrap; align-items: center; }
.dg-protobar__note { font-family: var(--font-mono); font-size: 10px; line-height: 14px; color: var(--faint); max-width: 520px; }

/* Alinear componentes: un x-import dentro de .dg-start no se estira */
.dg-start { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: flex-start; }
.dg-start--end { justify-content: flex-end; }
.dg-start--between { justify-content: space-between; }
.dg-stack { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.dg-stack--s { gap: var(--space-2); }
.dg-stack--l { gap: var(--space-8); }

/* Escalera mini: fija arriba en todas las pantallas del cliente */
.dg-esc { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dg-esc__in { max-width: 1180px; margin: 0 auto; box-sizing: border-box; padding: var(--space-3) var(--space-12); display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) minmax(150px, 240px); gap: var(--space-6); align-items: center; }
.dg-esc__where, .dg-esc__next { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dg-esc__next { text-align: right; text-decoration: none; color: var(--ink); border-radius: var(--radius-m); padding: var(--space-1) var(--space-2); margin: calc(var(--space-1) * -1) calc(var(--space-2) * -1); }
.dg-esc__next:hover { background: var(--surface-1); }
.dg-esc__next:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dg-esc__v { font-size: 14px; line-height: 20px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-esc__bar { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dg-esc__head { display: flex; justify-content: space-between; gap: var(--space-3); align-items: baseline; }
.dg-esc__pct { font-family: var(--font-mono); font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dg-esc__track { position: relative; height: 4px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.dg-esc__fill { display: block; height: 100%; background: var(--ink); border-radius: var(--radius-pill); transition: width var(--dur-slow) var(--ease-out); }
.dg-esc__marks { display: flex; gap: var(--space-2); justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.dg-esc__mark { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.dg-esc__mark--on { color: var(--ink-2); }
.dg-esc__mark--now { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Pasos de una pantalla en dos tiempos ("1 de 2: tu negocio") */
.dg-twostep { display: inline-flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.dg-twostep__i { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: var(--muted); text-decoration: none; }
.dg-twostep__i[aria-current="step"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
a.dg-twostep__i:hover { color: var(--ink); border-color: var(--ink-2); }

/* Titular en dos tonos para pantallas sin campo */
.dg-title { margin: 0; font-size: 44px; line-height: 50px; font-weight: 300; letter-spacing: -0.03em; max-width: 920px; color: var(--ink); }
.dg-title .dg-quiet { color: var(--faint); }

/* Grupos de opciones (chips con aria-pressed) */
.dg-opts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dg-q2 { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.dg-q2:first-child { border-top: 0; padding-top: 0; }
.dg-q2__head { display: flex; gap: var(--space-3); align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.dg-q2__t { margin: 0; font-size: 18px; line-height: 24px; color: var(--ink); font-weight: 300; }

/* Lectura de la web: filas con estado */
.dg-reads { display: flex; flex-direction: column; }
.dg-read { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--surface-2); }
.dg-read:first-child { border-top: 0; }
.dg-read__n { display: inline-flex; gap: var(--space-2); align-items: center; color: var(--ink); font-size: 15px; }
.dg-read__s { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* Competidores: una tarjeta por fila */
.dg-comps { display: flex; flex-direction: column; gap: var(--space-3); }
.dg-comp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); align-items: start; padding: var(--space-5); border-radius: var(--radius-l); background: var(--surface-1); border: 1px solid var(--line); }
.dg-comp--star { background: var(--surface-3); border-color: var(--line-strong); }
.dg-comp--off { opacity: 0.55; }
.dg-comp--off .dg-comp__name { text-decoration: line-through; }
.dg-comp--hint { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.dg-comp__name { margin: 0; font-size: 20px; line-height: 26px; color: var(--ink); font-weight: 300; }
.dg-comp__body { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.dg-comp__acts { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: flex-end; }
.dg-starbtn { font-family: inherit; min-height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.dg-starbtn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.dg-starbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Evidencia en cuatro filas (lo que vimos / creemos / otra / no dice) */
.dg-ev4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.dg-ev4__c { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-l); background: var(--surface-1); border: 1px solid var(--line); min-width: 0; }
.dg-ev4__c--lead { background: var(--surface-3); border-color: var(--line-strong); }
.dg-ev4__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

/* Cifra protagonista dentro de un campo */
.dg-hero { display: flex; flex-direction: column; gap: var(--space-3); }
.dg-hero__unit { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 18px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-field-muted); max-width: 680px; }
.dg-hero .ix-metric__value, .dg-hero [class*="ix-metric__v"] { color: var(--on-field); }

/* Prioridades cortas (resumen) */
.dg-prios { display: flex; flex-direction: column; gap: var(--space-3); counter-reset: none; }
.dg-prio { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--space-4); align-items: start; padding: var(--space-5); border-radius: var(--radius-l); background: var(--surface-1); border: 1px solid var(--line); }
.dg-prio:first-child { background: var(--surface-3); border-color: var(--line-strong); }
.dg-prio__n { font-size: 32px; line-height: 32px; font-weight: 300; color: var(--faint); font-variant-numeric: tabular-nums; }
.dg-prio__t { margin: 0; font-size: 19px; line-height: 25px; color: var(--ink); font-weight: 300; }

/* Chequeos medidos (reemplaza "alineación 33/100") */
.dg-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dg-dot { width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box; border: 1px dashed var(--line-strong); }
.dg-dot--no { background: var(--ink); border: 0; }
.dg-dot--medias { background: linear-gradient(90deg, var(--ink-2) 50%, var(--surface-2) 50%); border: 0; }
.dg-dot--va { background: var(--success-ink); border: 0; }
.dg-dotkey { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.dg-dotkey__i { display: inline-flex; gap: var(--space-2); align-items: center; font-size: 13px; color: var(--muted); }
.dg-dotkey__i .dg-dot { width: 12px; height: 12px; }

/* Sensibilidad del valor en juego */
.dg-sens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.dg-sens__c { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4); border-radius: var(--radius-m); background: var(--surface-2); }
.dg-sens__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.dg-sens__v { font-size: 18px; line-height: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Formulario de email */
.dg-form { display: flex; flex-direction: column; gap: var(--space-4); }
.dg-form__row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.dg-form__row .dg-input { flex: 1 1 320px; min-width: 0; }

/* Mensaje listo para copiar */
.dg-msg { margin: 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-m); background: var(--surface-2); color: var(--ink-2); font-size: 14px; line-height: 21px; white-space: pre-wrap; }

@media (max-width: 900px) {
  .dg-esc__in { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); }
  .dg-esc__bar { grid-column: 1 / -1; order: 3; }
  .dg-esc__marks { display: none; }
  .dg-ev4 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dg-protobar { padding-left: var(--space-4); padding-right: var(--space-4); }
  .dg-esc__in { padding: var(--space-3) var(--space-4); }
  .dg-esc__v { white-space: normal; }
  .dg-title { font-size: 32px; line-height: 38px; }
  .dg-comp { grid-template-columns: 1fr; }
  .dg-comp__acts { justify-content: flex-start; }
  .dg-prio { grid-template-columns: 32px minmax(0, 1fr); }
  .dg-prio > :last-child { grid-column: 2; }
  .dg-sens { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .dg-esc__fill { transition: none; } }

/* Paneles de campo (PanelCampo) con alto mínimo según la pantalla */
.dg-fieldwrap { display: flex; flex-direction: column; }
.dg-fieldwrap > x-import, .dg-fieldwrap > x-import > .ix-field { display: flex; flex-direction: column; }
.dg-fieldwrap--hero .ix-field { min-height: 520px; justify-content: center; }
.dg-fieldwrap--dato .ix-field { min-height: 480px; justify-content: center; }
.ix-field .dg-chip { color: var(--on-field); border-color: var(--on-field-muted); }
.ix-field .dg-chip[aria-pressed="true"] { background: var(--on-field); color: var(--on-primary); border-color: var(--on-field); }

/* Logo del encabezado: la URL llega desde datos.js (DG.comunes.activos.logo) como estilo, así no se pide una URL sin resolver */
.dg-brand__mark { display: inline-block; width: 24px; height: 24px; flex: none; background-size: contain; background-repeat: no-repeat; background-position: center; }

/* Las ayudas (tooltips) ocultas cerca del borde no deben crear scroll horizontal */
.dg-shell { overflow-x: clip; }
/* Fuentes largas en EtiquetaOrigen: que corten línea dentro de su tarjeta */
.dg-shell .ix-origin { white-space: normal; align-items: flex-start; }
.dg-shell .ix-origin::before { margin-top: 5px; }
