/* =====================================================================================================
   Ascenda · REDISEÑO VISUAL 076 (sistema de diseño «Ascenda — Design System»)
   Capa independiente: se carga DESPUÉS de estilos.css, tema.css y orbita.css. No cambia ninguna función.
   Solo actúa en el tema claro (azul y blanco). Reemplaza los tokens de Órbita por los del sistema de diseño:
   · fondo #F5F7FB, tarjetas blancas, bordes #DCE3EE · un solo azul de acción #1A56C4
   · menú lateral #0B2A66 plano, ítem activo #173A85 con barra blanca de 3 px (sin brillo)
   · estados: éxito #137034 · atención #A5520A · error #C2261D · IA #0B6E77 (todos ≥ 4,5:1)
   · tipografía Inter en toda la interfaz (también títulos), cifras con tabular-nums
   Para volver al diseño anterior, quite la línea <link rel="stylesheet" href="diseno.css"> del index.html.
   ===================================================================================================== */

/* ───────────────────────────── 1. tokens del tema claro */
html[data-theme="light"] {
  --bg-000:#F5F7FB; --bg-100:#FFFFFF; --bg-200:#EDF1F7; --bg-300:#DCE3EE;
  --side-bg:#0B2A66; --side-ink:#FFFFFF; --side-muted:#B9C7E6;
  --line:#DCE3EE; --line-strong:#7A87A1;
  --ink:#0F1B33; --ink-muted:#5B6882; --ink-faint:#687590;
  --brand-navy:#0B2A66; --primary:#1A56C4; --primary-hover:#1F5FD1; --primary-press:#173A85; --on-primary:#FFFFFF;
  --primary-text:#1A56C4; --primary-soft:#E6EEFC; --accent:#0B6E77; --accent-soft:#E3F4F5; --focus:#3B7BE8;
  --success:#137034; --success-soft:#E8F6EE; --warning:#A5520A; --warning-soft:#FEF3E2;
  --danger:#C2261D; --danger-soft:#FDECEA; --on-danger:#FFFFFF;
  --scrim:rgba(15,27,51,.40);
  --shadow-1:0 1px 2px rgba(15,27,51,.06),0 1px 3px rgba(15,27,51,.08);
  --shadow-2:0 6px 16px rgba(15,27,51,.12);
  --shadow-3:0 16px 40px rgba(15,27,51,.20);
  --glow-primary:0 1px 2px rgba(15,27,51,.10);
  --glow-accent:0 0 0 1px rgba(11,110,119,.25);
  --hover-veil:rgba(26,86,196,.05);
}
:root {
  --font-display:"Inter","Segoe UI",system-ui,sans-serif;
  --radius-sm:6px; --radius-md:8px; --radius-lg:12px;
}

/* ───────────────────────────── 2. base */
html[data-theme="light"] h1, html[data-theme="light"] .pagina-cab h1 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -.01em; }
html[data-theme="light"] :focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(59,123,232,.40); border-radius: var(--radius-sm); }

/* ───────────────────────────── 3. menú lateral */
html[data-theme="light"] .lado { background: #0B2A66; }
html[data-theme="light"] .lado .grupo { color: #B9C7E6; }
html[data-theme="light"] .lado .grupo:hover,
html[data-theme="light"] .lado .grupo[aria-expanded="true"] { background: #173A85; color: #FFFFFF; }
html[data-theme="light"] .lado a { color: #FFFFFF; }
html[data-theme="light"] .lado a:hover { background: #173A85; color: #FFFFFF; }
html[data-theme="light"] .lado a.act { background: #173A85; color: #FFFFFF; font-weight: 600; box-shadow: inset 3px 0 0 #FFFFFF; }
html[data-theme="light"] .orb-sub-in a { color: #DDE5F5; }
html[data-theme="light"] .orb-sub-in a.act { color: #FFFFFF; }
html[data-theme="light"] .orb-rotulo { color: #B9C7E6; }

/* ───────────────────────────── 4. botones (un solo primario por zona) */
html[data-theme="light"] .b { border-radius: var(--radius-md); }
html[data-theme="light"] .b.p:hover { box-shadow: none; }
html[data-theme="light"] .b.s.ok, html[data-theme="light"] .b.ok { background: #137034; border-color: #137034; color: #FFFFFF; }

/* ───────────────────────────── 5. tarjetas, KPI y tablas */
html[data-theme="light"] .card, html[data-theme="light"] .orb-card, html[data-theme="light"] .kpi { border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
html[data-theme="light"] .orb-kpi__value, html[data-theme="light"] .kpi b { font-variant-numeric: tabular-nums; }
html[data-theme="light"] table.t th { background: #EDF1F7; color: #33415C; }
html[data-theme="light"] table.t tr:hover td { background: #F3F7FE; }
html[data-theme="light"] table.t td.n { font-variant-numeric: tabular-nums; }

/* ───────────────────────────── 5b. Inicio (D2): KPI blancos con chip de ícono, aviso de la IA y vencimientos */
html[data-theme="light"] .orb-kpi::before, html[data-theme="light"] .cm-panel::before { display: none; }
html[data-theme="light"] .orb-kpi__value { font-family: var(--font-sans); font-weight: 700; font-size: 26px; line-height: 32px; }
.cm-chip { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; }
.cm-chip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cm-chip--ia { background: var(--accent-soft); color: var(--accent); }
.orb-kpi .orb-kpi__label { padding-right: 44px; }
.cm-ia { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 20px; margin-bottom: 16px; border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--accent); font-size: 14px; line-height: 21px; }
.cm-ia-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; display: block; }
.cm-ia > span:nth-child(2) { flex: 1; min-width: 240px; }
.cm-ia .b { margin-left: auto; background: var(--bg-100); color: var(--accent); border: 1px solid var(--accent); text-decoration: none; }
.cm-venc { margin-bottom: 20px; padding: 0; overflow: hidden; }
.cm-venc-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 12px; }
.cm-venc-cab h3 { margin: 0; font: 600 16px/24px var(--font-sans); color: var(--ink); }
.cm-venc-cab a { font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cm-venc table.t { margin: 0; }
.cm-venc .vacio { padding: 16px 20px 20px; }
html[data-theme="light"] .cm-acceso.p { background: var(--bg-100); border-color: var(--line); color: var(--ink); box-shadow: none; }
html[data-theme="light"] .cm-acceso.p svg { stroke: var(--primary-text); }
html[data-theme="light"] .cm-item:not(:first-of-type) .ic { background: var(--primary-soft); color: var(--primary-text); }

/* ───────────────────────────── 5c. Comprobantes contables (D3) */
.ds-cont { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.ds-cont-b { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg-100); border: 1px solid var(--line); border-radius: var(--radius-lg); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.ds-cont-b:hover { border-color: var(--focus); }
.ds-cont-b.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.ds-cont-p { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ds-cont-b b { display: block; font-size: 22px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ds-cont-b small { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
@media (max-width: 1100px) { .ds-cont { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ds-motivo { align-self: center; font-size: 13px; font-weight: 600; color: var(--danger); }
.b:disabled, .b[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
html[data-theme="light"] .est.PENDIENTE_IA { background: var(--accent-soft); color: var(--accent); }

/* ───────────────────────────── 5d. Documentos electrónicos (D4) */
.ds-cupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 12px 0; }
.ds-cupos .orb-quota { padding: 14px 18px; }
html[data-theme="light"] .de-tile { box-shadow: var(--shadow-1); border-color: var(--line); }
html[data-theme="light"] .de-tile:hover { border-color: var(--focus); }
html[data-theme="light"] .de-pill { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-sm); }

/* ───────────────────────────── 5e. Inteligencia artificial (D6) */
.ds-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ds-drop { flex: 1; min-width: 280px; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-000); color: var(--ink); cursor: pointer; }
.ds-drop svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ds-drop b { display: block; font-size: 15px; } .ds-drop small { display: block; font-size: 13px; color: var(--ink-muted); }
.ds-drop:hover, .ds-drop.encima { border-color: var(--accent); background: var(--accent-soft); }
#xmlArch:focus-visible + .ds-drop, .ds-drop:focus-within { box-shadow: 0 0 0 3px rgba(59,123,232,.40); }
.ds-cola { margin: 16px 0; }
.ds-cola-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ds-cola-cab h3 { margin: 0; font: 600 16px/24px var(--font-sans); }
.ds-cola-cab a { margin-left: auto; font-size: 13px; font-weight: 600; text-decoration: none; }
.ds-cola-l { display: grid; gap: 6px; }
.ds-cola-i { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); background: var(--bg-100); }
.ds-cola-i:hover { border-color: var(--accent); background: var(--accent-soft); }
.ds-cola-i b { display: block; font-size: 14px; } .ds-cola-i small { display: block; font-size: 12px; color: var(--ink-muted); }
.ds-cola-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.ds-cola-a { font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 3px 10px; }

/* ───────────────────────────── 6. campos */
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea { border-color: #7A87A1; border-radius: var(--radius-md); }
html[data-theme="light"] input:focus, html[data-theme="light"] select:focus, html[data-theme="light"] textarea:focus { outline: 0; border-color: #3B7BE8; box-shadow: 0 0 0 3px rgba(59,123,232,.40); }
/* ───────────────────────────── 7. D5 · colores fijos escritos en las pantallas → colores del sistema de diseño (solo tema claro)
   Muchas pantallas traen colores en línea de la paleta anterior; aquí se traducen sin tocar su código. */
html[data-theme="light"] [style^="background:#e3f5ea"],
html[data-theme="light"] [style*=";background:#e3f5ea"],
html[data-theme="light"] [style*="; background:#e3f5ea"],
html[data-theme="light"] [style^="background:#e7f6ee"],
html[data-theme="light"] [style*=";background:#e7f6ee"],
html[data-theme="light"] [style*="; background:#e7f6ee"] { background: var(--success-soft) !important; }
html[data-theme="light"] [style^="background:#fde8e8"],
html[data-theme="light"] [style*=";background:#fde8e8"],
html[data-theme="light"] [style*="; background:#fde8e8"],
html[data-theme="light"] [style^="background:#fde8ea"],
html[data-theme="light"] [style*=";background:#fde8ea"],
html[data-theme="light"] [style*="; background:#fde8ea"] { background: var(--danger-soft) !important; }
html[data-theme="light"] [style^="background:#fff4e0"],
html[data-theme="light"] [style*=";background:#fff4e0"],
html[data-theme="light"] [style*="; background:#fff4e0"] { background: var(--warning-soft) !important; }
html[data-theme="light"] [style^="background:#e6efff"],
html[data-theme="light"] [style*=";background:#e6efff"],
html[data-theme="light"] [style*="; background:#e6efff"] { background: var(--primary-soft) !important; }
html[data-theme="light"] [style^="background:#1d4fd7"],
html[data-theme="light"] [style*=";background:#1d4fd7"],
html[data-theme="light"] [style*="; background:#1d4fd7"] { background: var(--primary) !important; }
html[data-theme="light"] [style^="background:#eef0f4"],
html[data-theme="light"] [style*=";background:#eef0f4"],
html[data-theme="light"] [style*="; background:#eef0f4"] { background: var(--bg-200) !important; }
html[data-theme="light"] [style^="color:#1f8a4c"],
html[data-theme="light"] [style*=";color:#1f8a4c"],
html[data-theme="light"] [style*="; color:#1f8a4c"],
html[data-theme="light"] [style^="color:#1a7f37"],
html[data-theme="light"] [style*=";color:#1a7f37"],
html[data-theme="light"] [style*="; color:#1a7f37"] { color: var(--success) !important; }
html[data-theme="light"] [style^="color:#b42318"],
html[data-theme="light"] [style*=";color:#b42318"],
html[data-theme="light"] [style*="; color:#b42318"],
html[data-theme="light"] [style^="color:#c0262f"],
html[data-theme="light"] [style*=";color:#c0262f"],
html[data-theme="light"] [style*="; color:#c0262f"] { color: var(--danger) !important; }
html[data-theme="light"] [style^="color:#9a5b00"],
html[data-theme="light"] [style*=";color:#9a5b00"],
html[data-theme="light"] [style*="; color:#9a5b00"] { color: var(--warning) !important; }
html[data-theme="light"] [style^="color:#0d2c7a"],
html[data-theme="light"] [style*=";color:#0d2c7a"],
html[data-theme="light"] [style*="; color:#0d2c7a"] { color: var(--ink) !important; }
html[data-theme="light"] [style^="color:#1d4fd7"],
html[data-theme="light"] [style*=";color:#1d4fd7"],
html[data-theme="light"] [style*="; color:#1d4fd7"],
html[data-theme="light"] [style^="color:#1d4ed8"],
html[data-theme="light"] [style*=";color:#1d4ed8"],
html[data-theme="light"] [style*="; color:#1d4ed8"],
html[data-theme="light"] [style^="color:#1a56db"],
html[data-theme="light"] [style*=";color:#1a56db"],
html[data-theme="light"] [style*="; color:#1a56db"] { color: var(--primary-text) !important; }
html[data-theme="light"] [style^="color:#5b6475"],
html[data-theme="light"] [style*=";color:#5b6475"],
html[data-theme="light"] [style*="; color:#5b6475"] { color: var(--ink-muted) !important; }
/* Centro de impuestos */
html[data-theme="light"] .imx-tabs button { border-color: var(--line); border-radius: var(--radius-md); }
html[data-theme="light"] .imx-tabs button.act { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
html[data-theme="light"] .imx-kpi div { box-shadow: var(--shadow-1); border-color: var(--line); }
html[data-theme="light"] .imx-kpi span { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--ink-muted); }
html[data-theme="light"] .imx-kpi b { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
html[data-theme="light"] .imx-kpi .pagar b { color: var(--danger); }
html[data-theme="light"] .imx-kpi .favor b { color: var(--success); }
html[data-theme="light"] .imx-sec { color: var(--ink-muted); }

/* ───────────────────────────── 8. D7 · Restaurante (tokens propios del módulo → sistema de diseño; solo tema claro) */
html[data-theme="light"] .rs {
  --bg-canvas:#F5F7FB; --bg-surface:#FFFFFF; --bg-header:#0B2A66;
  --text-primary:#0F1B33; --text-secondary:#5B6882;
  --color-primary:#1A56C4; --color-success:#137034; --color-warning:#A5520A; --color-danger:#C2261D;
  --ok-s:#E8F6EE; --warn-s:#FEF3E2; --err-s:#FDECEA; --pri-s:#E6EEFC; --line:#DCE3EE;
  --sh:0 1px 2px rgba(15,27,51,.06),0 1px 3px rgba(15,27,51,.08); --sh-m:0 6px 16px rgba(15,27,51,.12);
}
html[data-theme="light"] .rs-badge.ok { color: #137034; } html[data-theme="light"] .rs-badge.warn { color: #A5520A; }
html[data-theme="light"] .rs-badge.err { color: #C2261D; } html[data-theme="light"] .rs-badge.pri { color: #1A56C4; }
/* mesas: libre blanca · ocupada azul claro · por cobrar ámbar; siempre con el estado escrito */
html[data-theme="light"] .rs-mesa[data-m] { min-height: 118px; }
html[data-theme="light"] .rs-mesa.ocupada { background: #E6EEFC; border: 1px solid #A9C2F0; border-top: 1px solid #A9C2F0; }
html[data-theme="light"] .rs-mesa.cuenta { background: #FEF3E2; border: 2px solid #A5520A; }
html[data-theme="light"] .rs-mesa[data-m]::before { order: -1; align-self: flex-start; font-size: 12px; line-height: 16px; font-weight: 600; content: "Libre"; color: #137034; }
html[data-theme="light"] .rs-mesa.ocupada[data-m]::before { content: "Ocupada"; color: #1A56C4; }
html[data-theme="light"] .rs-mesa.cuenta[data-m]::before { content: "Por cobrar"; color: #A5520A; }
html[data-theme="light"] .rs-mesa:focus-visible { box-shadow: 0 0 0 3px rgba(59,123,232,.40); }

/* ───────────────────────────── 9. D8 · Gestión › Cartera por edades: al día en azul y la mora en una escala
   de ámbar a rojo oscuro, cada vez más oscura (se distingue también sin color: cada barra lleva su tramo y valor) */
html[data-theme="light"] #cCuerpo [style*="height:16px"][style*="background:#1f8a4c"] { background: #1A56C4 !important; }
html[data-theme="light"] #cCuerpo [style*="height:16px"][style*="background:#1d4ed8"] { background: #F0C98F !important; }
html[data-theme="light"] #cCuerpo [style*="height:16px"][style*="background:#c27c0e"] { background: #E08A2E !important; }
html[data-theme="light"] #cCuerpo [style*="height:16px"][style*="background:#b42318"] { background: #C2261D !important; }
html[data-theme="light"] #cCuerpo [style*="height:16px"][style*="background:#6b21a8"] { background: #8E1B14 !important; }
/* etiquetas de edad (al día · N días · saldo a favor) */
html[data-theme="light"] #cCuerpo .pill[style^="background:#eef6ff"] { background: var(--warning-soft) !important; color: var(--warning) !important; }
html[data-theme="light"] #cCuerpo .pill[style^="background:#e3f5ea"][style*="color:#1f8a4c"] { background: var(--primary-soft) !important; color: var(--primary-text) !important; }
html[data-theme="light"] #cCuerpo .pill[style^="background:#f3e8ff"] { background: var(--danger-soft) !important; color: #8E1B14 !important; }
html[data-theme="light"] #cCuerpo .kpi b { font-variant-numeric: tabular-nums; }

/* ───────────────────────────── 10. D9 · Informes: catálogo */
.ds-inf-sec { margin: 0 0 24px; }
.ds-inf-sec h2 { margin: 0 0 10px; font: 600 15px/22px var(--font-sans); color: var(--ink); }
.ds-inf-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ds-inf { position: relative; display: flex; align-items: stretch; background: var(--bg-100); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.ds-inf:hover { border-color: var(--focus); box-shadow: var(--shadow-2); }
.ds-inf-a { flex: 1; display: flex; align-items: flex-start; gap: 12px; padding: 14px 44px 14px 14px; text-decoration: none; color: var(--ink); border-radius: var(--radius-lg); }
.ds-inf-a b { display: block; font-size: 14px; line-height: 20px; } .ds-inf-a small { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); margin-top: 2px; }
.ds-inf-ic { width: 36px; height: 36px; flex: none; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; }
.ds-inf-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ds-inf-fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--line-strong); cursor: pointer; display: grid; place-items: center; }
.ds-inf-fav:hover { background: var(--bg-200); }
.ds-inf-fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; }
.ds-inf-fav.on { color: #C2620A; } .ds-inf-fav.on svg { fill: currentColor; }

/* ───────────────────────────── 11. D10 · contacto de soporte  ·  D11 · botón «¿Cómo funciona?» */
.ds-contacto { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-100); }
.ds-contacto > span { flex: 1; min-width: 200px; } .ds-contacto b { display: block; font-size: 14px; } .ds-contacto small { display: block; font-size: 12px; color: var(--ink-muted); }
.ds-contacto .b { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ds-contacto svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ds-contacto.compacto { margin: 16px 0 0; background: var(--bg-000); }
html[data-theme="light"] #btnAyuda { background: var(--bg-100) !important; color: var(--primary-text) !important; border: 1px solid var(--line-strong) !important; box-shadow: var(--shadow-2) !important; display: inline-flex; align-items: center; gap: 8px; }
html[data-theme="light"] #btnAyuda:hover { background: var(--primary-soft) !important; }
#btnAyuda svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
/* 076 · motivo del rechazo DIAN debajo del estado (panel de documentos electrónicos) */
.de-motivo { margin-top: 4px; max-width: 280px; font-size: 12px; line-height: 16px; color: var(--danger); white-space: normal; }

/* ───────────────────────────── 12. D13 · Asistente IA (chat) */
.ds-chat { padding: 0; display: flex; flex-direction: column; min-height: 560px; overflow: hidden; }
.ds-chat-hilo { flex: 1; max-height: 62vh; min-height: 380px; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 18px; background: var(--bg-000); }
.ds-msg { display: flex; gap: 10px; max-width: 760px; }
.ds-msg.yo { align-self: flex-end; }
.ds-burb { padding: 12px 16px; border-radius: var(--radius-lg); font-size: 14px; line-height: 22px; }
.ds-msg.yo .ds-burb { background: var(--primary); color: var(--on-primary); border-top-right-radius: 4px; white-space: pre-wrap; }
.ds-msg.ia .ds-burb { background: var(--bg-100); border: 1px solid var(--line); border-top-left-radius: 4px; box-shadow: var(--shadow-1); }
.ds-msg.ia .ds-burb ul { margin: 6px 0; padding-left: 20px; }
.ds-av { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.ds-av svg, .ds-chat-vacio > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.ds-pens { color: var(--ink-muted); }
.ds-fuentes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ds-fuentes span { font-size: 12px; color: var(--ink-muted); background: var(--bg-200); border-radius: var(--radius-pill); padding: 2px 10px; }
.ds-msg-pie { margin-top: 8px; font-size: 12px; color: var(--ink-muted); }
.ds-chat-vacio { margin: auto; max-width: 560px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); }
.ds-chat-vacio > svg { width: 32px; height: 32px; color: var(--accent); }
.ds-chat-vacio span { font-size: 13px; color: var(--ink-muted); }
.ds-sug { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.ds-sug-b { border: 1px solid var(--line); background: var(--bg-100); color: var(--ink); font: 500 13px var(--font-sans); padding: 7px 12px; border-radius: var(--radius-pill); cursor: pointer; }
.ds-sug-b:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ds-chat-pie { border-top: 1px solid var(--line); padding: 14px 20px 16px; display: grid; gap: 8px; background: var(--bg-100); }
.ds-chat-caja { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--accent); border-radius: var(--radius-lg); padding: 6px; }
.ds-chat-caja textarea { flex: 1; border: 0 !important; box-shadow: none !important; resize: vertical; min-height: 44px; font: 400 14px/21px var(--font-sans); background: transparent; color: var(--ink); }
.ds-chat-caja .b { background: var(--accent); border-color: var(--accent); color: #fff; }
.ds-chat-aut { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-muted); }
.ds-chat-aut input { margin-top: 3px; accent-color: var(--accent); }
.ds-ia-est { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: var(--radius-pill); white-space: nowrap; }
.ds-ia-est.ok { color: #137034; background: #E8F6EE; }
.ds-ia-est.off { color: #A5520A; background: #FEF3E2; }
.ds-ia-aviso { margin: 14px 20px 0; padding: 12px 14px; border-radius: var(--radius-md); background: #FEF3E2; color: #33415C; font-size: 13px; line-height: 20px; }
.ds-ia-aviso code { background: #fff; padding: 1px 6px; border-radius: 4px; }
/* D13 · 077 datos de la empresa */
.ds-datos-adm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-muted); }
.ds-aut-texto { max-height: 260px; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-000); font-size: 13px; line-height: 20px; color: var(--ink); }
