/* PreOfertas GC — mismo sistema de diseño que Conciliación Odoo-CF, con los colores institucionales de GC Tratamiento
   (azul marino #0E2D44, verde #0F9173, celeste #D3ECF7). Lo propio de este portal está al final del archivo.
   Tema: sigue al sistema; el botón del sol/luna lo fija (html[data-theme]). Tokens arriba; componentes abajo.
   Botones (jerarquía, ver CLAUDE.md): .btn = secundaria · .btn.primary = LA acción principal de la pantalla (una sola) ·
   .btn.odoo = escribe en Odoo.sh · .btn.danger = borra o reinicia (siempre con confirmación) · .btn.link = texto. */
@font-face { font-family: "Figtree"; font-weight: 300; font-display: swap; src: url(fuentes/figtree-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(fuentes/figtree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url(fuentes/figtree-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url(fuentes/figtree-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url(fuentes/figtree-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 800; font-display: swap; src: url(fuentes/figtree-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(fuentes/montserrat-600.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(fuentes/montserrat-700.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url(fuentes/montserrat-800.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f1f5f8; --bg2: #e6edf2; --card: #ffffff; --card2: #f6f9fb; --ink: #0e2d44; --muted: #5d7283; --line: #dde6ec; --line2: #c9d6df;
  --brand: #0c8468; --brand2: #12a181; --brand-ink: #fff; --brand-bg: #e1f4ee;
  --navy: #0e2d44; --navy2: #164363; --celeste: #d3ecf7; --verde: #0f9173;
  --ok: #17794f; --ok-bg: #e2f3ea; --warn: #96600a; --warn-bg: #fbefd8;
  --bad: #b3261e; --bad-bg: #fbe6e3; --info: #1d5f9c; --info-bg: #e2eef9; --mut-bg: #edf2f6;
  --odoo: #6b4fb3; --odoo-bg: #ece7f8;
  --sombra: 0 1px 2px rgba(14,45,68,.05), 0 10px 26px -18px rgba(14,45,68,.28);
  --brillo: inset 0 1px 0 rgba(255,255,255,.9);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071824; --bg2: #0a1f2e; --card: #0d2536; --card2: #112c40; --ink: #e8f2f8; --muted: #8fa6b6; --line: #1b3a50; --line2: #28506b;
  --brand: #3fd0a8; --brand2: #23b08b; --brand-ink: #04231b; --brand-bg: #0f3a35;
  --navy: #0a2233; --navy2: #123a55; --celeste: #d3ecf7; --verde: #3fd0a8;
  --ok: #7fd9ad; --ok-bg: #0f3327; --warn: #f0c36a; --warn-bg: #33290f;
  --bad: #ff8f86; --bad-bg: #3a1a18; --info: #8fc4f5; --info-bg: #12314c; --mut-bg: #12303f;
  --odoo: #b9a4f0; --odoo-bg: #261f45;
  --sombra: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -24px rgba(0,0,0,.8);
  --brillo: inset 0 1px 0 rgba(255,255,255,.05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #071824; --bg2: #0a1f2e; --card: #0d2536; --card2: #112c40; --ink: #e8f2f8; --muted: #8fa6b6; --line: #1b3a50; --line2: #28506b;
  --brand: #3fd0a8; --brand2: #23b08b; --brand-ink: #04231b; --brand-bg: #0f3a35;
  --navy: #0a2233; --navy2: #123a55; --celeste: #d3ecf7; --verde: #3fd0a8;
  --ok: #7fd9ad; --ok-bg: #0f3327; --warn: #f0c36a; --warn-bg: #33290f;
  --bad: #ff8f86; --bad-bg: #3a1a18; --info: #8fc4f5; --info-bg: #12314c; --mut-bg: #12303f;
  --odoo: #b9a4f0; --odoo-bg: #261f45;
  --sombra: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -24px rgba(0,0,0,.8);
  --brillo: inset 0 1px 0 rgba(255,255,255,.05);
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; font: 14px/1.5 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 2px 0 4px; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 11.5px; margin: 20px 0 8px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.sub { color: var(--muted); margin: 0 0 18px; max-width: 960px; }
.muted { color: var(--muted); } .mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.r { text-align: right; } .nowrap { white-space: nowrap; } .center { text-align: center; }
.okt { color: var(--ok); } .badt { color: var(--bad); } .warnt { color: var(--warn); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
td.num.bad { color: var(--bad); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 8px; z-index: 99; background: var(--card); padding: 6px 10px; border-radius: 6px; }

/* --- barra superior: marca · módulo actual y sus menús · estado y usuario --- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; padding: 0 24px; min-height: 58px; max-width: 1640px; margin: 0 auto; flex-wrap: wrap; }
.brand { font-weight: 800; color: var(--ink); font-size: 15px; display: flex; align-items: center; gap: 10px; white-space: nowrap; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .marca { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand2), var(--brand)); color: var(--brand-ink); box-shadow: 0 6px 16px -8px var(--brand); }
.brand .marca svg { width: 16px; height: 16px; }
.brand small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-top: -2px; }
.mods-w { position: relative; }
.mods-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card2); color: var(--ink); border-radius: 10px;
  padding: 7px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.mods-btn:hover { border-color: var(--brand); }
.mods-btn svg { width: 16px; height: 16px; color: var(--brand); }
.mods-btn .mi { color: var(--muted); font-weight: 600; }
.mods-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: min(560px, 92vw); background: var(--card); border: 1px solid var(--line2);
  border-radius: 14px; padding: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mods-pop[hidden] { display: none; }
.mods-pop a { display: flex; gap: 10px; padding: 10px; border-radius: 10px; color: var(--ink); align-items: flex-start; }
.mods-pop a:hover, .mods-pop a.on { background: var(--mut-bg); text-decoration: none; }
.mods-pop a .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--mut-bg); color: var(--acento, var(--brand)); border: 1px solid var(--line); }
.mods-pop a .ic svg { width: 17px; height: 17px; }
.mods-pop a b { display: block; font-size: 13.5px; } .mods-pop a span.d { color: var(--muted); font-size: 12px; line-height: 1.35; }
.subnav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.subnav a { color: var(--muted); font-weight: 600; padding: 7px 12px; border-radius: 8px; font-size: 13.5px; position: relative; }
.subnav a:hover { background: var(--mut-bg); color: var(--ink); text-decoration: none; }
.subnav a.on { color: var(--ink); }
.subnav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand2), var(--brand)); }
.top-r { display: flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.top-r .quien { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; padding: 4px 8px; border-radius: 8px; }
.top-r .quien:hover { background: var(--mut-bg); text-decoration: none; }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px;
  background: linear-gradient(145deg, var(--brand2), var(--brand)); color: var(--brand-ink); }
.chip-trab { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 99px; background: var(--brand-bg); color: var(--brand); font-weight: 700; font-size: 12px; }
.wrap { max-width: 1640px; margin: 0 auto; padding: 24px 24px 80px; }
.foot { text-align: center; padding: 24px; font-size: 12px; }
.foot a { color: var(--muted); }

/* --- piezas básicas --- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--sombra), var(--brillo); }
.card.flush { padding: 0; overflow: hidden; }
.alert { padding: 11px 14px; border-radius: 10px; margin: 0 0 14px; border: 1px solid transparent; }
.alert.ok { background: var(--ok-bg); color: var(--ok); } .alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.bad { background: var(--bad-bg); color: var(--bad); } .alert.info { background: var(--info-bg); color: var(--info); }
.err { display: grid; grid-template-columns: 38px 1fr; gap: 4px 14px; background: var(--bad-bg); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent);
  border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; color: var(--ink); }
.err .ei { grid-row: span 3; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.err .ei svg { width: 20px; height: 20px; }
.err b { color: var(--bad); font-size: 15px; } .err p { margin: 0; } .err .hacer { font-weight: 600; }
.err details { grid-column: 2; font-size: 12px; color: var(--muted); } .err details summary { font-weight: 600; font-size: 12px; }
.err.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); } .err.warn b, .err.warn .ei { color: var(--warn); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line2); background: var(--card); color: var(--ink);
  padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, transform .05s; }
.btn:hover { border-color: var(--brand); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.primary { background: linear-gradient(160deg, var(--brand2), var(--brand)); border-color: transparent; color: var(--brand-ink); box-shadow: 0 8px 18px -10px var(--brand); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.odoo { border-color: color-mix(in srgb, var(--odoo) 55%, transparent); color: var(--odoo); background: var(--odoo-bg); }
.btn.odoo:hover { border-color: var(--odoo); }
.btn.danger { border-color: color-mix(in srgb, var(--bad) 50%, transparent); color: var(--bad); background: transparent; }
.btn.danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.small { padding: 4px 10px; font-size: 12.5px; border-radius: 7px; } .btn.small svg { width: 14px; height: 14px; }
.btn.link { border: 0; background: none; color: var(--muted); padding: 3px 6px; box-shadow: none; } .btn.link:hover { color: var(--brand); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: none; }
.etq-odoo { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; background: color-mix(in srgb, var(--odoo) 18%, transparent); color: var(--odoo); }
input, textarea, select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line2); border-radius: 9px; padding: 7px 10px; }
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: -1px; border-color: var(--brand); }
label { display: block; font-weight: 600; margin-bottom: 12px; }
label input, label select, label textarea { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
label .ayuda { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }

.cabeza { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cabeza .sub { margin-bottom: 0; }
.cabeza .acciones { margin-left: auto; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; padding: 10px 12px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; }
.filtros::before { content: "Filtros"; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.filtros input[type=search] { min-width: 240px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--brillo); color: var(--ink); position: relative; overflow: hidden; }
a.kpi:hover { border-color: var(--brand); text-decoration: none; }
.kpi .lbl { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.kpi .val { font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; letter-spacing: -.02em; }
.kpi .det { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.kpi.bad .val { color: var(--bad); } .kpi.ok .val { color: var(--ok); } .kpi.warn .val { color: var(--warn); }
.kpi.hero { border-color: color-mix(in srgb, var(--brand) 60%, transparent); }
.kpi.hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--brand2), var(--brand)); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }

.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--mut-bg); color: var(--muted); }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); }
.pill.odoo { background: var(--odoo-bg); color: var(--odoo); }
.estado-trabajo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spin { width: 14px; height: 14px; border: 2px solid var(--line2); border-top-color: var(--brand); border-radius: 50%; animation: g 1s linear infinite; flex: none; }
@keyframes g { to { transform: rotate(360deg); } }
.pasos { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 12px; }
.pasos label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; margin: 0; }
.pasos input { width: auto; display: inline; margin: 0; }
.login { max-width: 400px; margin: 80px auto; }
.tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { padding: 8px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); }
details > summary { cursor: pointer; font-weight: 600; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acciones .sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
form.inline { display: inline; }
@media (max-width: 760px) { .wrap { padding: 16px; } .top-in { padding: 8px 14px; } .subnav { order: 9; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; } .subnav a.on::after { bottom: -3px; } }

/* --- Inicio: módulos --- */
.portada { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 8px 0 24px; }
.portada .sal { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.portada h1 { font-size: 34px; font-weight: 300; letter-spacing: -.03em; margin: 4px 0 6px; }
.portada h1 b { font-weight: 800; }
.portada p { color: var(--muted); margin: 0; max-width: 680px; }
.portada .act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
@media (min-width: 1180px) { .mods { grid-template-columns: repeat(3, 1fr); } }
.mod { --acento: var(--brand); position: relative; display: flex; flex-direction: column; min-height: 252px; border-radius: 20px; padding: 22px 22px 18px; overflow: hidden;
  color: var(--ink); isolation: isolate; border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--acento) 16%, transparent), transparent 60%),
    linear-gradient(160deg, var(--card2), var(--card) 55%, var(--bg2));
  box-shadow: var(--sombra), var(--brillo); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; }
.mod::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: linear-gradient(140deg, color-mix(in srgb, var(--acento) 70%, transparent), transparent 35%, transparent 70%, color-mix(in srgb, var(--acento) 35%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; }
.mod::after { content: ""; position: absolute; top: -40%; left: -60%; width: 40%; height: 180%; z-index: -1; pointer-events: none; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); transition: left .8s ease; }
.mod:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--acento) 45%, transparent); box-shadow: 0 30px 60px -30px rgba(0,0,0,.55), var(--brillo); text-decoration: none; }
.mod:hover::after { left: 130%; }
.mod-h { display: flex; align-items: center; gap: 14px; }
.mod-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--acento); flex: none;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--acento) 30%, transparent), color-mix(in srgb, var(--acento) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--acento) 35%, transparent); box-shadow: 0 10px 24px -14px var(--acento); }
.mod-ic svg { width: 24px; height: 24px; }
.mod-t { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.mod-n { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mod-l { color: var(--muted); font-size: 13px; margin: 12px 0 14px; min-height: 38px; }
.mod-kpi { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.mod-kpi b { font-size: 26px; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.mod-kpi span { font-size: 12px; color: var(--muted); }
.mod-kpi.bad b { color: var(--bad); font-weight: 400; } .mod-kpi.ok b { color: var(--ok); } .mod-kpi.warn b { color: var(--warn); }
.mod-m { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.mod-m a { font-size: 12.5px; font-weight: 600; color: var(--ink); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent); }
.mod-m a:hover { border-color: var(--acento); color: var(--acento); text-decoration: none; }
.mod .abrir { position: absolute; top: 22px; right: 20px; color: var(--muted); transition: transform .25s, color .25s; }
.mod:hover .abrir { color: var(--acento); transform: translateX(3px); }
.mod .abrir svg { width: 18px; height: 18px; }
.mod-link { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.mod > *:not(.mod-link):not(.abrir) { position: relative; z-index: 1; pointer-events: none; }
.mod .abrir { z-index: 1; pointer-events: none; }
.mod .mod-m, .mod .mod-m a { pointer-events: auto; }

/* --- Tablero: flujo documentos → banco → Odoo y gráficas --- */
.flujo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 8px 0 14px; }
.bloque { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--brillo); }
.bloque.hero { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 7%, var(--card)), var(--card)); }
.bloque h4 { margin: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; }
.bloque p { margin: 2px 0 10px; font-size: 12.5px; }
dl.cuentas { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; font-variant-numeric: tabular-nums; }
dl.cuentas dt { color: var(--muted); } dl.cuentas dd { margin: 0; text-align: right; font-weight: 600; }
dl.cuentas .sub { font-size: 12px; padding-left: 10px; font-weight: 400; }
dl.cuentas .tot { border-top: 1px solid var(--line); padding-top: 4px; font-weight: 800; }
dl.cuentas .bad { color: var(--bad); } dl.cuentas .warn { color: var(--warn); } dl.cuentas .ok { color: var(--ok); }
.graf { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.graf .g { grid-column: span 6; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--brillo); min-width: 0; }
.graf .g.ancho { grid-column: span 12; } .graf .g.tercio { grid-column: span 4; }
.graf .g h4 { margin: 0 0 2px; font-size: 14px; } .graf .g p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.graf .g .lienzo { position: relative; height: 280px; } .graf .g.ancho .lienzo { height: 320px; }
@media (max-width: 1100px) { .graf .g, .graf .g.tercio { grid-column: span 12; } }
.cifras { display: flex; gap: 24px; flex-wrap: wrap; margin: 0 0 10px; }
.cifras div { display: flex; flex-direction: column; } .cifras b { font-size: 18px; font-variant-numeric: tabular-nums; } .cifras span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }

/* barra de progreso */
.barra { position: relative; height: 14px; background: var(--line); border-radius: 7px; overflow: hidden; margin-top: 10px; }
.barra > div { height: 100%; background: linear-gradient(90deg, var(--brand2), var(--brand)); transition: width .6s ease; }
.barra > span { position: absolute; inset: 0; text-align: center; font-size: 10.5px; line-height: 14px; font-weight: 700; color: var(--ink); }

/* --- tablas (tablas.js v2) --- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
th { background: var(--card2); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; white-space: nowrap; }
tbody tr:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
tfoot td { font-weight: 800; background: var(--card2); }
td.corto { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.dt:not(.dt-lista) tbody tr:nth-child(n+101) { display: none; }      /* antes de que cargue el script: solo 100 filas */
.tabla-wrap { overflow: auto; max-height: calc(100vh - 230px); min-height: 140px; }
.card.flush.tabla-wrap { overflow: auto; }
table.dt thead th { position: sticky; top: 0; z-index: 2; background: var(--card2); box-shadow: inset 0 -1px 0 var(--line2); }
table.dt tfoot td { position: sticky; bottom: 0; z-index: 1; box-shadow: inset 0 1px 0 var(--line2); }
table.dt-fija { table-layout: fixed; width: max-content; min-width: 100%; }
table.dt-fija td, table.dt-fija th { overflow: hidden; text-overflow: ellipsis; }
table.dt-fija td.corto { max-width: none; }
table.dt th.dt-th { cursor: pointer; user-select: none; padding-right: 34px; }
table.dt th.dt-th:hover { color: var(--ink); }
table.dt th[data-orden="asc"]::after { content: " ▲"; color: var(--brand); }
table.dt th[data-orden="desc"]::after { content: " ▼"; color: var(--brand); }
table.dt th.dt-arr { opacity: .45; }
table.dt th.dt-sobre { box-shadow: inset 3px 0 0 var(--brand); }
.dt-fbtn { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 3px; border-radius: 5px; color: var(--muted); cursor: pointer; opacity: .45; display: grid; }
.dt-fbtn svg { width: 12px; height: 12px; }
th:hover .dt-fbtn { opacity: 1; } .dt-fbtn:hover { background: var(--mut-bg); color: var(--brand); }
th.dt-filtrada { color: var(--brand) !important; } th.dt-filtrada .dt-fbtn { opacity: 1; color: var(--brand); background: var(--brand-bg); }
.dt-rs { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; cursor: col-resize; }
.dt-rs:hover, .dt-rs:active { background: color-mix(in srgb, var(--brand) 35%, transparent); }
th.dt-chk, td.dt-chk { width: 36px; text-align: center; padding-left: 6px; padding-right: 6px; }
td.dt-chk input, th.dt-chk input { width: 15px; height: 15px; margin: 0; cursor: pointer; }
tr.dt-on { background: color-mix(in srgb, var(--brand) 10%, transparent) !important; }
tr.dt-on td.dt-chk { box-shadow: inset 3px 0 0 var(--brand); }
tr.dt-grp td { background: var(--brand-bg); cursor: pointer; white-space: nowrap; border-bottom: 1px solid var(--line2); }
tr.dt-grp .dt-flecha { display: inline-block; width: 12px; color: var(--brand); }
tr.dt-tot td { background: var(--card2); font-weight: 800; }
.dt-tot-l { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
td.dt-vacio { text-align: center; color: var(--muted); padding: 28px; }
.dt-barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.dt-buscar { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: var(--card); border-radius: 9px; padding: 0 10px; min-width: 260px; }
.dt-buscar:focus-within { border-color: var(--brand); }
.dt-buscar svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.dt-buscar input { border: 0; background: none; padding: 7px 0; outline: none; width: 100%; }
.dt-l { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.dt-l select { width: auto; margin: 0; padding: 5px 8px; }
.dt-esp { flex: 1; }
.dt-selinfo { display: inline-flex; align-items: center; gap: 10px; padding: 3px 4px 3px 12px; border-radius: 99px; background: var(--brand-bg); color: var(--brand); font-size: 12.5px; }
.dt-selinfo[hidden] { display: none; }
.dt-solo { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-weight: 600; }
.dt-solo input { width: auto; margin: 0; }
.dt-exp { display: inline-flex; gap: 6px; }
.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.dt-chips[hidden] { display: none; }
.dt-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  background: var(--brand-bg); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.dt-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 50%; display: grid; }
.dt-chip button:hover { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.dt-chip svg { width: 12px; height: 12px; }
.dt-pag { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: -8px 0 18px; padding: 8px 2px; font-size: 12.5px; }
.dt-pags { display: inline-flex; gap: 6px; align-items: center; }
.dt-pop { position: absolute; z-index: 50; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.5); }
.dt-pop[hidden] { display: none; }
.dt-colw { position: relative; display: inline-block; }
.dt-colp { top: calc(100% + 6px); left: 0; min-width: 250px; max-height: 380px; overflow: auto; }
.dt-pop label { display: flex; gap: 8px; align-items: center; padding: 4px 2px; font-size: 13px; white-space: nowrap; cursor: pointer; margin: 0; font-weight: 500; }
.dt-pop label input[type=checkbox] { width: auto; margin: 0; flex: none; display: inline; }
.dt-pop label[hidden] { display: none; }
.dt-facc { font-size: 12px; padding: 4px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.dt-facc .muted { margin-left: auto; }
.dt-fpop { width: 320px; }
.dt-fpop-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dt-fpop-h .btn-ico svg { width: 14px; height: 14px; }
.dt-fpop .dt-fq { width: 100%; margin-bottom: 6px; }
.dt-fvals { max-height: 260px; overflow: auto; }
.dt-fvals label span:first-of-type { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.dt-rango { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.dt-rango label { display: block; white-space: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.dt-rango input { width: 100%; margin-top: 3px; }
.dt-fpop-b { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
a.pdf { display: inline-flex; align-items: center; vertical-align: -2px; margin-left: 4px; color: var(--bad); }
a.pdf svg { width: 15px; height: 15px; }
a.pdf:hover { text-decoration: none; filter: brightness(1.2); }
.cp-lista { list-style: none; padding: 0; margin: 0; font-size: 12.5px; }
.cp-lista li { white-space: nowrap; }
@supports (-moz-appearance: none) { .tabla-wrap, .dt-top { scrollbar-width: auto; scrollbar-color: var(--muted) var(--mut-bg); } }
.tabla-wrap::-webkit-scrollbar, .dt-top::-webkit-scrollbar { width: 13px; height: 13px; -webkit-appearance: none; display: block; }
.tabla-wrap::-webkit-scrollbar-track, .dt-top::-webkit-scrollbar-track { background: var(--mut-bg); }
.tabla-wrap::-webkit-scrollbar-thumb, .dt-top::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; border: 3px solid var(--mut-bg); min-height: 40px; min-width: 40px; }
.tabla-wrap::-webkit-scrollbar-thumb:hover, .dt-top::-webkit-scrollbar-thumb:hover { background: var(--brand); }
.tabla-wrap::-webkit-scrollbar-corner { background: var(--mut-bg); }
.dt-top { overflow-x: scroll; overflow-y: hidden; height: 13px; margin: 0 0 4px; border-radius: 7px; }
.dt-top > div { height: 1px; }
.dt-top[hidden] { display: none; }

/* Corregir en Odoo.sh: qué hará cada renglón */
.qh { display: grid; gap: 3px; font-size: 12.5px; min-width: 260px; }
.qh div { display: flex; gap: 6px; align-items: baseline; }
.qh .ic { width: 16px; flex: none; text-align: center; font-weight: 800; }
.qh .borra .ic, .qh .borra { color: var(--bad); } .qh .crea .ic { color: var(--warn); } .qh .concilia .ic { color: var(--ok); } .qh .queda { color: var(--muted); }
.qh .saldo { margin-top: 2px; padding-top: 3px; border-top: 1px dashed var(--line2); color: var(--ink); font-weight: 600; }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }

/* confirmaciones (ui.js) */
dialog.conf { width: min(94vw, 480px); }
.conf-h { display: flex; align-items: center; gap: 12px; padding: 18px 20px 6px; }
.conf-h .ci { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.conf-h .ci svg { width: 21px; height: 21px; }
.conf.borrar .ci { background: var(--bad-bg); color: var(--bad); } .conf.odoo .ci { background: var(--odoo-bg); color: var(--odoo); } .conf.aviso .ci { background: var(--warn-bg); color: var(--warn); }
.conf-h b { font-size: 16px; }
.conf-t { padding: 4px 20px 6px 72px; margin: 0; white-space: pre-line; color: var(--muted); }
.conf-p { padding: 6px 20px 0 72px; margin: 0; }
.conf-p input { width: 100%; margin-top: 4px; }
.conf-b { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px; }

/* --- ventana de Ajustes (diseño de Roles Alabanza) --- */
.btn-ico { border: 0; background: none; color: var(--muted); padding: 6px; border-radius: 8px; cursor: pointer; display: inline-flex; vertical-align: middle; }
.btn-ico svg { width: 19px; height: 19px; }
.btn-ico:hover { background: var(--mut-bg); color: var(--ink); }
dialog { border: 0; border-radius: 14px; padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(10,15,30,.55); backdrop-filter: blur(2px); }
dialog.st-dlg { width: min(96vw, 1000px); max-width: 1000px; }
dialog[open].st-dlg { animation: aj-in .16s ease-out; }
@keyframes aj-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.aj .mh { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 16px; }
.aj .mh .btn-ico { margin-left: auto; }
.aj .mb { padding: 0; max-height: calc(100dvh - 150px); overflow: hidden; display: flex; }
.aj .mf { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 14px 14px; }
.aj .mf .aj-estado { margin-right: auto; }
.st-layout { display: grid; grid-template-columns: 230px 1fr; min-height: 460px; width: 100%; }
.st-nav { background: var(--bg); border-right: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.st-find { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; margin: 0 0 6px; font-weight: 400; }
.st-find svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.st-find input { border: 0; padding: 7px 2px; margin: 0; background: none; outline: none; width: 100%; }
.st-grp { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 10px 4px; }
.st-nav button { border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--muted); display: flex; gap: 10px; align-items: center; font-size: 13.5px; cursor: pointer; }
.st-nav button:hover { background: var(--card); color: var(--ink); }
.st-nav button[aria-selected="true"] { background: var(--card); color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.st-i { width: 20px; height: 20px; display: inline-grid; place-items: center; flex: none; }
.st-i svg { width: 18px; height: 18px; }
.st-body { padding: 20px 24px 28px; overflow: auto; }
.st-sec h3 { font-size: 18px; margin: 0 0 4px; text-transform: none; letter-spacing: 0; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.st-sec h3 .st-i { color: var(--brand); }
.st-desc { margin: 0 0 16px; }
.st-sec .f { margin-bottom: 14px; }
.st-sec .f > label { display: block; font-weight: 600; margin-bottom: 4px; }
.st-sec .f input:not([type=checkbox]), .st-sec .f select, .st-sec .f textarea { width: 100%; }
.st-sec .ayuda { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.st-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; }
.st-card:hover { border-color: var(--brand); text-decoration: none; box-shadow: 0 4px 14px -8px rgba(0,0,0,.3); }
.st-card b { display: flex; align-items: center; gap: 6px; } .st-card svg { width: 16px; height: 16px; }
.sw { position: relative; display: inline-block; width: 42px; height: 24px; margin: 2px 0; }
.sw input { opacity: 0; width: 0; height: 0; }
.sw span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .15s; cursor: pointer; }
.sw span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.sw input:checked + span { background: var(--brand); } .sw input:checked + span::before { transform: translateX(18px); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; background: var(--card); padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.perm-grid { display: grid; gap: 6px; margin: 6px 0 8px; }
.perm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }
.perm-row > span { font-weight: 600; }
.us-lista { display: grid; gap: 6px; }
.us-row { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; color: inherit; cursor: pointer; }
.us-row:hover { border-color: var(--brand); }
.us-av { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-bg); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.us-txt { display: flex; flex-direction: column; } .us-ult { font-size: 12px; }
.chlog { border-left: 3px solid var(--brand); padding: 2px 0 2px 12px; margin-bottom: 12px; } .chlog ul { margin: 4px 0 0; padding-left: 18px; }
table.mini td { font-size: 12.5px; padding: 5px 8px; }
@media (max-width: 820px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .st-nav button { white-space: nowrap; padding: 8px 10px; } .st-grp, .st-find { display: none; }
  .aj .mb { flex-direction: column; } .f2 { grid-template-columns: 1fr; } .us-row { grid-template-columns: 36px 1fr; }
}


/* Diagnóstico (1.9.0) */
.sintomas { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 10px; margin: 6px 0 8px; }
.sintoma { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 12px; padding: 12px 14px; font-size: 13px; display: grid; gap: 6px; }
.sintoma .t { font-weight: 650; font-size: 14px; }
.sintoma .et { display: inline-block; min-width: 84px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sintoma.bad { border-left-color: var(--bad); } .sintoma.warn { border-left-color: var(--warn); }
.sintoma.info { border-left-color: var(--info); } .sintoma.ok { border-left-color: var(--ok); }
.paso { display: grid; grid-template-columns: 38px 1fr; gap: 14px; margin: 14px 0 20px; }
.paso > .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: color-mix(in srgb, var(--brand) 18%, var(--card)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--brand) 50%, transparent); }
.paso h3 { margin: 4px 0 4px; }
.paso .cuerpo { min-width: 0; }
label.chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 4px 0; }
label.chk input { width: auto; margin: 2px 0 0; }

/* Asistente de correcciones (1.21.0) */
.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.checklist li::before { content: "•"; display: inline-block; width: 18px; font-weight: 800; }
.checklist li.ok::before { content: "✓"; color: var(--ok); }
.checklist li.warn::before { content: "!"; color: var(--warn); }
ol.asist { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
ol.asist li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--brillo); }
ol.asist li.sig { border-color: var(--warn); box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 30%, transparent); }
ol.asist li.hecho { opacity: .78; }
ol.asist .a-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--bg); border: 1px solid var(--line); }
ol.asist li.hecho .a-num { background: var(--ok); color: #fff; border-color: var(--ok); }
ol.asist li.sig .a-num { background: var(--warn); color: #fff; border-color: var(--warn); }
ol.asist .a-tit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
ol.asist .a-cuerpo > div { margin-top: 2px; }
@media (max-width: 700px) { ol.asist li { grid-template-columns: 36px 1fr; } ol.asist .a-ir { grid-column: 2; } }

/* 1.24.0 — selector de ambiente (Productivo / Pruebas) y franja de pruebas */
.amb-sel { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--mut-bg); margin-right: 6px; }
.amb-sel a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.amb-sel a:hover { text-decoration: none; color: var(--ink); }
.amb-sel a .pt { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); opacity: .45; }
.amb-sel a.sh .pt { background: var(--odoo); }
.amb-sel a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.amb-sel a.on .pt { opacity: 1; }
.amb-sel a.sh.on { background: var(--odoo); color: var(--odoo-bg); }
.amb-sel a.sh.on .pt { background: var(--odoo-bg); }
body.amb-sh header.top { border-top: 4px solid var(--odoo); }
.amb-banda { background: var(--odoo-bg); color: var(--odoo); border-bottom: 1px solid color-mix(in srgb, var(--odoo) 35%, transparent);
  padding: 7px 24px; font-size: 13px; text-align: center; }
.amb-banda a { color: inherit; text-decoration: underline; font-weight: 700; }
.amb-banda.prod { background: var(--warn-bg); color: var(--warn); border-bottom-color: color-mix(in srgb, var(--warn) 35%, transparent); }
@media (max-width: 760px) { .amb-banda { padding: 7px 14px; text-align: left; } .top-r { white-space: normal; flex-wrap: wrap; } }
/* 1.24.1 — respaldos en el Asistente */
.resp-g { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.resp-g h3 { font-size: 14px; margin: 4px 0 6px; }
.resp-g ol { padding-left: 18px; margin: 0 0 6px; }
.fila-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
@media (max-width: 900px) { .resp-g { grid-template-columns: 1fr; } }
/* 1.24.2 — casillas de ambientes por usuario */
label.ck input[type=checkbox] { width: auto; display: inline-block; margin: 3px 0 0; flex: none; }
.st-sec .us-amb > label.ck, .us-amb .ck { display: flex; font-weight: 400; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; margin-top: 6px; }
.us-amb .ck span { display: grid; gap: 2px; } .us-amb .ck small { font-size: 12px; }
.us-amb .ck.amb-sh { border-left: 4px solid var(--odoo); } .us-amb .ck.amb-prod { border-left: 4px solid var(--bad); }
.us-amb-admin { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line2); border-radius: 9px; font-size: 13px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.us-amb-admin .ck { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
/* 1.25.0 — expediente del proveedor */
.exp-buscar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.exp-q { flex: 1; min-width: 260px; } .exp-q input { width: 100%; }
.exp-cands { margin: 0; padding-left: 18px; columns: 2 320px; } .exp-cands li { margin: 3px 0; break-inside: avoid; }
.exp-titulo { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 18px 0 4px; } .exp-titulo h2 { margin: 0; }
.exp-mon { margin: 14px 0 8px; font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.exp-kpis .kpi .val { font-size: 22px; } .exp-kpis .det .warn { color: var(--warn); }
.exp-tabs { margin: 18px 0 10px; flex-wrap: wrap; }

/* favicon en Ajustes → General (1.27.2) */
.fav-box { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; }
.fav-drop { flex: 1 1 280px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; background: var(--panel, transparent); transition: border-color .15s, background .15s; }
.fav-drop:hover, .fav-drop:focus-visible, .fav-drop.sobre { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); outline: none; }
.fav-drop.cargando { opacity: .6; pointer-events: none; }
.fav-drop img.fav-g { width: 64px; height: 64px; border-radius: 12px; object-fit: contain; flex: none; background: repeating-conic-gradient(color-mix(in srgb, var(--ink) 8%, transparent) 0 25%, transparent 0 50%) 0 0 / 12px 12px; }
.fav-prev { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-content: center; }
.fav-tab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px 8px 0 0; font-size: 12px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-tab img { width: 16px; height: 16px; }
.fav-180 { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.fav-acc { margin-top: 8px; }
.fav-acc label.ck { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 400; white-space: nowrap; width: auto !important; margin: 0; }
.fav-acc label.ck input { width: auto; }
.fav-res.bad { color: var(--bad, #b42318); }

/* 1.28.0 — correcciones en producción */
.amb-banda.prod-on { background: var(--bad); color: #fff; border-bottom-color: var(--bad); }
.amb-banda.prod-on a { color: #fff; }
.prod-card { border: 2px solid var(--bad); background: color-mix(in srgb, var(--bad-bg) 60%, var(--card, transparent)); margin-bottom: 14px; }
.checklist li.bad::before { content: "✕"; color: var(--bad); }

/* ---------- Asistente de correcciones (1.34.0): resumen, pasos con barra, línea de tiempo y panel de avance ---------- */
.as-resumen { padding: 16px 20px; }
.as-res-t { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.as-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.as-num { font-size: 17px; margin: 2px 0; } .as-num b { font-size: 26px; }
.as-sig { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .as-sig.ok b { color: var(--ok); }
.as-barra { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin-top: 14px; }
.as-barra span { height: 8px; border-radius: 99px; background: var(--line); transition: background .4s; }
.as-barra span.ok { background: var(--ok); } .as-barra span.sig { background: linear-gradient(90deg, var(--brand2), var(--brand)); }
.as-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .as-grid { grid-template-columns: minmax(0, 1fr); } }
ol.as-pasos { list-style: none; margin: 0; padding: 0; position: relative; }
.as-paso { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding-bottom: 14px; }
.as-paso::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.as-paso:last-child::before { display: none; }
.as-paso.hecho::before { background: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.p-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; z-index: 1;
  background: var(--card); border: 2px solid var(--line2); color: var(--muted); transition: all .3s; }
.as-paso.hecho .p-num { background: var(--ok); border-color: var(--ok); color: #fff; }
.as-paso.sig .p-num { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.as-paso.corriendo .p-num { border-color: var(--brand); color: var(--brand); animation: pulso 1.2s ease-in-out infinite; }
@keyframes pulso { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 22%, transparent); } }
.p-cuerpo { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--brillo); }
.as-paso.sig .p-cuerpo { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.as-paso.hecho .p-cuerpo { background: color-mix(in srgb, var(--ok) 4%, var(--card)); }
.p-tit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-tit h3 { margin: 0 6px 0 0; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 700; }
.p-tit h3 a { color: inherit; }
.p-avance, .p-vivo { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; }
.p-vivo { color: var(--brand); font-weight: 600; }
.mini { flex: 0 0 180px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.mini > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand2), var(--brand)); transition: width .6s ease; }
.mini.ok > div { background: var(--ok); }
.mini.indef > div { width: 35% !important; animation: indef 1.3s ease-in-out infinite; }
@keyframes indef { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.p-datos { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 4px 14px; margin: 12px 0 0; font-size: 13.5px; }
.p-datos dt { color: var(--muted); font-weight: 700; font-size: 12px; padding-top: 1px; }
.p-datos dd { margin: 0; }
@media (max-width: 700px) { .p-datos { grid-template-columns: minmax(0, 1fr); } .p-datos dd { margin-bottom: 6px; } .mini { flex-basis: 110px; } }
.p-por { margin-top: 8px; font-size: 13px; color: var(--muted); } .p-por summary { cursor: pointer; font-weight: 600; font-size: 12.5px; }
.p-pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; }
.p-acc { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.linea { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
@media (max-width: 1100px) { .linea { position: static; max-height: none; } }
.linea h2 { margin-top: 0; }
ol.lt { list-style: none; margin: 0; padding: 0; }
.lt li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; position: relative; padding-bottom: 12px; font-size: 13px; }
.lt li::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.lt li:last-child::before { display: none; }
.lt-p { width: 14px; height: 14px; border-radius: 50%; margin-top: 2px; background: var(--info); border: 3px solid var(--info-bg); z-index: 1; }
.lt li.aplicado .lt-p { background: var(--ok); border-color: var(--ok-bg); }
.lt-h { display: flex; justify-content: space-between; gap: 8px; } .lt-h .mono { white-space: nowrap; font-size: 11px; }
.lt-t { color: var(--ink); margin-top: 2px; line-height: 1.4; }
/* panel de avance (base.html #tk) */
.tk { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(380px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line2);
  border-radius: 14px; padding: 12px 14px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); cursor: default; }
.tk-h { display: flex; align-items: center; gap: 8px; } .tk-n { flex: 1; font-size: 13.5px; } .tk-t { font-size: 11.5px; color: var(--muted); }
.tk:not(.on) .spin { display: none; }
.tk.fin .tk-h::before { content: "✓"; color: var(--ok); font-weight: 800; } .tk.err .tk-h::before { content: "✕"; color: var(--bad); font-weight: 800; }
.tk.fin, .tk.err { cursor: pointer; }
.tk-m { font-size: 12.5px; color: var(--muted); margin: 6px 0 8px; line-height: 1.35; max-height: 4.1em; overflow: hidden; }
.tk.err .tk-m { color: var(--bad); }
.tk-b { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tk-b > div { height: 100%; background: linear-gradient(90deg, var(--brand2), var(--brand)); transition: width .6s ease; border-radius: 99px; }
.tk.fin .tk-b > div { background: var(--ok); } .tk.err .tk-b > div { background: var(--bad); }
.tk-p { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 5px; font-weight: 600; }
.p-vivo[hidden], .tk[hidden] { display: none; }

/* Renglones vs XML (1.35.0): detalle por factura */
.rg-celda { min-width: 520px; }
.rg-det { overflow-x: auto; max-width: 760px; margin-top: 6px; }
.rg-det table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rg-det th, .rg-det td { padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.rg-det th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rg-det tr.rg-mal td { background: var(--bad-bg); }
.rg-det tr.rg-mal td:nth-child(2) { color: var(--bad); font-weight: 600; }

/* ============================================================================================================================
   PreOfertas GC — lo propio de este portal
   ============================================================================================================================ */
[hidden] { display: none !important; }
h1, .portada h1, .mod-t, .heroe h1, .login-l h2 { font-family: "Montserrat", "Figtree", system-ui, sans-serif; }
h1 { font-weight: 700; }
.portada h1 { font-weight: 600; } .portada h1 b { font-weight: 800; color: var(--brand); }

/* marca en la barra: logotipo horizontal (a color en claro, blanco en oscuro) */
.brand .logo { height: 22px; width: auto; display: block; }
.brand .logo.osc { display: none; }
:root[data-theme="dark"] .brand .logo.cla { display: none; } :root[data-theme="dark"] .brand .logo.osc { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo.cla { display: none; } :root:not([data-theme="light"]) .brand .logo.osc { display: block; } }
.brand .app { padding-left: 12px; border-left: 1px solid var(--line2); font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.btn-ico { position: relative; }
.btn-ico .cnt { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card); }
.subnav a .cnt { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); font-size: 11px; font-weight: 800; text-align: center; }
.rol { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* entrada */
body.entrada { background: var(--navy); }
body.entrada .top, body.entrada .foot { display: none; }
body.entrada .wrap { max-width: none; padding: 0; }
.login-2 { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); }
.login-l { position: relative; overflow: hidden; color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(1200px 700px at 20% 110%, #17507a 0%, transparent 60%), linear-gradient(160deg, #0e2d44, #081c2b); }
.login-l::after { content: ""; position: absolute; right: -180px; bottom: -150px; width: 760px; height: 562px; background: url(marca/gct_iso_linea_celeste.png) center/contain no-repeat; opacity: .14; pointer-events: none; }
.login-l img { height: 34px; width: auto; align-self: flex-start; position: relative; z-index: 1; }
.login-l h2 { font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -.02em; margin: 0 0 16px; max-width: 560px; }
.login-l h2 em { font-style: normal; color: #5fd3b3; }
.login-l p { color: #b9d3e2; font-size: 15.5px; max-width: 470px; margin: 0; }
.login-l .pie { color: #7f9db1; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; position: relative; z-index: 1; }
.login-l > div { position: relative; z-index: 1; }
.login-r { background: var(--bg); display: grid; place-items: center; padding: 40px 28px; }
.login-r form { width: min(380px, 100%); }
.login-r h1 { font-size: 26px; margin-bottom: 6px; }
.login-r .btn.primary { width: 100%; padding: 11px; font-size: 15px; margin-top: 6px; }
.login-r input { padding: 10px 12px; }
@media (max-width: 860px) { .login-2 { grid-template-columns: 1fr; } .login-l { padding: 36px 28px; min-height: 300px; } .login-l h2 { font-size: 30px; } }

/* etiquetas de tecnología y tipo de archivo */
.tec { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
  background: color-mix(in srgb, var(--c, var(--brand)) 13%, transparent); color: color-mix(in srgb, var(--c, var(--brand)) 80%, var(--ink)); }
.tec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--brand)); }
.tecs { display: flex; flex-wrap: wrap; gap: 5px; }
.ft { display: inline-grid; place-items: center; width: 38px; height: 44px; border-radius: 7px 13px 7px 7px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: #7a8b99; flex: none; box-shadow: inset 0 -12px 16px -12px rgba(0,0,0,.35); }
.ft.xlsx, .ft.xls, .ft.xlsm, .ft.csv { background: #1c8a4e; } .ft.docx, .ft.doc { background: #2a62c4; } .ft.pdf { background: #cf3b2e; }
.ft.dwg, .ft.dxf { background: #c47a12; } .ft.pptx, .ft.ppt { background: #cc5a2a; } .ft.png, .ft.jpg, .ft.jpeg { background: #7b61c9; } .ft.zip { background: #5d6b78; }
.ft.s { width: 28px; height: 32px; font-size: 8px; border-radius: 5px 9px 5px 5px; }

/* portada de Inicio */
.dos { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1050px) { .dos, .grid2 { grid-template-columns: 1fr; } }
.lista-pre { display: flex; flex-direction: column; }
.lista-pre a.it { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.lista-pre a.it:last-child { border-bottom: 0; } .lista-pre a.it:hover { background: var(--card2); text-decoration: none; }
.lista-pre .t { font-weight: 700; } .lista-pre .m { color: var(--muted); font-size: 12.5px; grid-column: 1; }
.lista-pre .d { grid-row: span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; justify-content: center; }
.card > h2 .mas { float: right; font-size: 12.5px; font-weight: 600; }
.card.flush > h2 { padding: 16px 18px 12px; margin: 0; border-bottom: 1px solid var(--line); }
.vacio { text-align: center; padding: 34px 20px; color: var(--muted); }
.vacio svg { width: 40px; height: 40px; color: var(--line2); display: block; margin: 0 auto 10px; }
.vacio b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.notis a, .notis div.n { display: flex; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; align-items: flex-start; }
.notis > :last-child { border-bottom: 0; } .notis a:hover { background: var(--card2); text-decoration: none; }
.notis .pt { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex: none; } .notis .leida .pt { background: var(--line2); }
.notis .leida { color: var(--muted); } .notis small { display: block; color: var(--muted); font-size: 11.5px; }

/* ficha de la preoferta */
.heroe { position: relative; overflow: hidden; border-radius: 18px; padding: 26px 30px 22px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(900px 500px at 85% 130%, #1a5a86 0%, transparent 60%), linear-gradient(150deg, #0e2d44, #0a2031); box-shadow: var(--sombra); }
.heroe::after { content: ""; position: absolute; right: -90px; top: -60px; width: 470px; height: 348px; background: url(marca/gct_iso_linea_celeste.png) center/contain no-repeat; opacity: .13; pointer-events: none; }
.heroe > * { position: relative; z-index: 1; }
.heroe .miga { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9fc3d8; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.heroe .miga a { color: #9fc3d8; } .heroe .miga b { color: #5fd3b3; }
.heroe h1 { font-size: 30px; margin: 10px 0 8px; letter-spacing: -.02em; max-width: 900px; }
.heroe .fila { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; color: #c5dcea; font-size: 13.5px; }
.heroe .fila b { color: #fff; }
.heroe .tec { background: rgba(255,255,255,.12); color: #fff; }
.heroe .pill { background: rgba(255,255,255,.16); color: #fff; font-size: 12.5px; padding: 3px 11px; }
.heroe .pill.ok { background: #1f9a6a; } .heroe .pill.warn { background: #c98a14; } .heroe .pill.bad { background: #c2463d; } .heroe .pill.info { background: #2b7cc4; } .heroe .pill.odoo { background: #7458c7; }
.heroe .act { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.heroe .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
.heroe .btn:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.heroe .btn.primary { background: linear-gradient(160deg, #19b08d, #0c8468); border-color: transparent; }
.heroe select { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; } .heroe select option { color: #0e2d44; }
.ruta-nas { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: #9fc3d8; margin-top: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; word-break: break-all; }
.ruta-nas button { background: none; border: 1px solid rgba(255,255,255,.25); color: #c5dcea; border-radius: 6px; font: inherit; font-size: 11px; padding: 1px 8px; cursor: pointer; }

.sec { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; box-shadow: var(--sombra), var(--brillo); overflow: hidden; scroll-margin-top: 80px; }
.sec-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--card2); flex-wrap: wrap; }
.sec-h .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand); flex: none; }
.sec-h .ic svg { width: 19px; height: 19px; }
.sec-h h2 { margin: 0; font-size: 15.5px; } .sec-h .car { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--muted); }
.sec-h .acciones { margin-left: auto; }
.doc { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 4px 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.doc:last-of-type { border-bottom: 0; }
.doc .n { font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.doc .m { color: var(--muted); font-size: 12.5px; }
.rev { border: 1px solid color-mix(in srgb, var(--celeste) 25%, transparent); font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--navy); color: #fff; }
.doc .acc { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.doc details { grid-column: 2 / -1; }
.doc details summary { cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 600; width: max-content; }
.doc details summary:hover { color: var(--brand); }
.hist { margin: 8px 0 2px; border-left: 2px solid var(--line2); padding-left: 14px; display: flex; flex-direction: column; gap: 8px; }
.hist .h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.hist .h .rev { background: var(--mut-bg); color: var(--muted); } .hist .h.act .rev { background: var(--navy); color: #fff; }
.hist .nota { color: var(--muted); font-style: italic; }
.pdf-e { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.suelta { margin: 12px 18px 16px; border: 1.5px dashed var(--line2); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px;
  transition: .15s; cursor: pointer; background: var(--card2); }
.suelta:hover, .suelta.sobre { border-color: var(--brand); background: var(--brand-bg); color: var(--ink); }
.suelta svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.suelta b { color: var(--ink); } .suelta.cargando { opacity: .6; pointer-events: none; }
.sec .nada { padding: 18px 18px 4px; color: var(--muted); font-size: 13px; }
dialog.subir { width: min(94vw, 520px); } dialog.subir form { padding: 20px 22px; } dialog.subir h3 { margin-top: 0; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); }
dialog.subir .lista-arch { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; max-height: 150px; overflow: auto; }
dialog.subir .lista-arch div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; } dialog.subir .lista-arch span { color: var(--muted); white-space: nowrap; }
dialog.subir .seg { margin-bottom: 12px; }
.equipo .p { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.equipo .p .av, .av.g { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; background: var(--brand-bg); color: var(--brand); flex: none; }
.equipo .p small { display: block; color: var(--muted); font-size: 11.5px; }
.linea-t { display: flex; flex-direction: column; gap: 0; }
.linea-t .e { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding-bottom: 14px; position: relative; font-size: 13px; }
.linea-t .e::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line2); margin-top: 5px; box-shadow: 0 0 0 3px var(--card); position: relative; z-index: 1; }
.linea-t .e::after { content: ""; position: absolute; left: 4px; top: 8px; bottom: -6px; width: 1px; background: var(--line); }
.linea-t .e:last-child::after { display: none; }
.linea-t .e.subir::before { background: var(--brand); } .linea-t .e.estatus::before { background: var(--info); } .linea-t .e.solicitud::before, .linea-t .e.eliminar::before, .linea-t .e.retirar::before { background: var(--bad); }
.linea-t .e.crear::before { background: var(--navy); } .linea-t .e.acceso::before { background: #c9973f; }
.linea-t small { color: var(--muted); display: block; font-size: 11.5px; }
.aviso-sol { display: flex; gap: 12px; align-items: center; background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.aviso-sol .acciones { margin-left: auto; }

/* alta de preoferta */
.alta { max-width: 860px; margin: 0 auto; }
.alta .pasoa { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; margin-bottom: 8px; }
.alta .pasoa > .num { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: "Montserrat", sans-serif; }
.alta .pasoa > .cu { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 14px; min-width: 0; }
.alta .pasoa:last-of-type > .cu { border-bottom: 0; }
.alta h2 { margin: 6px 0 4px; font-size: 17px; } .alta .cu > p.muted { margin: 0 0 12px; font-size: 13px; }
.opc2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.opc2 label { margin: 0; border: 1.5px solid var(--line2); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; font-weight: 500; background: var(--card); }
.opc2 label:has(input:checked) { border-color: var(--brand); background: var(--brand-bg); }
.opc2 label input { width: auto; margin: 3px 0 0; display: inline; } .opc2 label b { display: block; } .opc2 label small { color: var(--muted); }
.ac { position: relative; }
.ac-l { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--card); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); max-height: 300px; overflow: auto; padding: 5px; }
.ac-l[hidden] { display: none; }
.ac-l button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; }
.ac-l button:hover, .ac-l button.on { background: var(--mut-bg); } .ac-l button small { color: var(--muted); white-space: nowrap; }
.ac-l .nohay { padding: 10px; color: var(--muted); font-size: 13px; }
.elegido { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--brand-bg); color: var(--ink); font-weight: 700; margin-top: 6px; }
.elegido button { margin-left: auto; }
.asi { font-size: 12.5px; color: var(--muted); margin-top: 5px; } .asi b { color: var(--brand); }
.tec-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.tec-pick label { margin: 0; cursor: pointer; }
.tec-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tec-pick span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 10px; border-radius: 99px; border: 1.5px solid var(--line2); font-weight: 600; font-size: 13px; background: var(--card); }
.tec-pick span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.tec-pick input:checked + span { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--card)); box-shadow: 0 0 0 1px var(--c); }
.tec-pick input:focus-visible + span { outline: 2px solid var(--brand); }
.previas { display: flex; flex-direction: column; gap: 8px; }
.previas label { margin: 0; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 500; }
.previas label:has(input:checked) { border-color: var(--brand); background: var(--brand-bg); } .previas input { width: auto; display: inline; margin: 3px 0 0; }
.vista-carpeta { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--navy); color: #cfe6f3; border-radius: 12px; padding: 14px 16px; line-height: 1.7; overflow-x: auto; white-space: pre; }
.vista-carpeta b { color: #5fd3b3; font-weight: 600; }

/* biblioteca (árbol) */
.arbol details { border-bottom: 1px solid var(--line); }
.arbol details:last-child { border-bottom: 0; }
.arbol summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 11px 18px; font-weight: 700; }
.arbol summary::-webkit-details-marker { display: none; }
.arbol summary:hover { background: var(--card2); }
.arbol summary svg { width: 18px; height: 18px; color: #c9973f; flex: none; }
.arbol summary .n { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12px; }
.arbol summary::before { content: "▸"; color: var(--muted); font-size: 11px; width: 10px; } .arbol details[open] > summary::before { content: "▾"; }
.arbol details details { border: 0; margin-left: 26px; } .arbol details details summary { font-weight: 600; padding: 7px 18px; } .arbol details details summary svg { color: var(--info); }
.arbol .hojas { margin: 0 0 8px 62px; }
.arbol .hojas a { display: flex; gap: 10px; align-items: center; padding: 6px 12px; border-radius: 8px; color: var(--ink); font-size: 13px; flex-wrap: wrap; }
.arbol .hojas a:hover { background: var(--mut-bg); text-decoration: none; }
.arbol .hojas .per { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: var(--muted); }

/* formatos */
.formatos { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.formato { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--sombra), var(--brillo); display: flex; flex-direction: column; gap: 10px; }
.formato .h { display: flex; gap: 14px; align-items: center; } .formato .h b { font-size: 16px; display: block; } .formato p { color: var(--muted); font-size: 13px; margin: 0; flex: 1; }
.formato .pie { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.formato .pie .muted { font-size: 12px; margin-left: auto; }
.como { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.como div { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.como div b { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; } .como div b i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 11.5px; }

/* accesos */
.personas { display: flex; flex-direction: column; gap: 4px; }
.personas a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.personas a:hover { background: var(--mut-bg); text-decoration: none; } .personas a.on { background: var(--brand-bg); }
.personas a small { display: block; color: var(--muted); font-size: 11.5px; } .personas a .pill { margin-left: auto; }
.lado { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .lado { grid-template-columns: 1fr; } .doc { grid-template-columns: 38px 1fr; } .doc .acc { grid-column: 2; justify-content: flex-start; } .opc2 { grid-template-columns: 1fr; } }
.color-pick { display: flex; gap: 6px; flex-wrap: wrap; } .color-pick label { margin: 0; cursor: pointer; } .color-pick input { position: absolute; opacity: 0; }
.color-pick span { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--c); border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line2); }
.color-pick input:checked + span { box-shadow: 0 0 0 2px var(--ink); }
.estado-bib { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 13px; }
.estado-bib.ok { background: var(--ok-bg); color: var(--ok); } .estado-bib.bad { background: var(--bad-bg); color: var(--bad); }
.roles-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.roles-g button { text-align: left; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); border-radius: 10px; padding: 9px 12px; font: inherit; cursor: pointer; }
.roles-g button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-bg); } .roles-g button small { display: block; color: var(--muted); font-size: 11.5px; }

/* ============================================================================================================================
   Oportunidades (2.0): avance, orden, tablero, validación, versiones y visor
   ============================================================================================================================ */
.pill.tipo { background: var(--mut-bg); color: var(--muted); border: 1px dashed var(--line2); }
.pill.tipo.oferta { background: var(--navy); color: #fff; border: 0; } .pill.tipo.nota { background: var(--celeste); color: #0e2d44; border: 0; }
.heroe .pill.tipo { background: transparent; color: #c5dcea; border-color: rgba(255,255,255,.4); } .heroe .pill.tipo.oferta { background: #fff; color: #0e2d44; } .heroe .pill.tipo.nota { background: var(--celeste); color: #0e2d44; }
.seg a { display: inline-flex; align-items: center; gap: 6px; } .seg a svg { width: 15px; height: 15px; }

/* barra de avance: los pasos del proceso */
.avance { display: inline-flex; gap: 3px; vertical-align: middle; }
.avance i { display: block; width: 16px; height: 5px; border-radius: 3px; background: var(--line2); font-style: normal; }
.avance i.ok { background: var(--verde); }
.avance:not(.chica) { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; width: 100%; }
.avance:not(.chica) i { width: auto; height: 6px; position: relative; background: rgba(255,255,255,.18); margin-bottom: 22px; }
.avance:not(.chica) i.ok { background: #35c79f; }
.avance:not(.chica) i b { position: absolute; top: 11px; left: 0; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #86a8bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.avance:not(.chica) i.ok b { color: #dff5ee; } .avance:not(.chica) i.ok b::before { content: "✓ "; color: #35c79f; }
.camino { margin: 18px 0 2px; max-width: 980px; }

/* Inicio: aro de orden y etapas */
.orden-w { display: grid; grid-template-columns: minmax(280px, 1.5fr) repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 1150px) { .orden-w { grid-template-columns: repeat(3, 1fr); } .orden-w .orden { grid-column: 1 / -1; } }
.orden { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--sombra), var(--brillo); }
.orden .aro { --c: #c9973f; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--card) 76%, transparent 77% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); }
.orden.ok .aro { --c: var(--verde); } .orden.mal .aro { --c: var(--bad); }
.orden .aro b { font-family: "Montserrat", sans-serif; font-size: 23px; font-weight: 800; } .orden .aro small { font-size: 12px; font-weight: 700; color: var(--muted); }
.orden .lbl { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.orden .tx { font-family: "Montserrat", sans-serif; font-size: 19px; font-weight: 700; margin: 2px 0; } .orden.ok .tx { color: var(--ok); }
.orden .det { font-size: 12.5px; color: var(--muted); }
.etapa { display: flex; flex-direction: column; justify-content: center; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; color: var(--ink); box-shadow: var(--sombra), var(--brillo); transition: .15s; }
.etapa:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); }
.etapa b { font-family: "Montserrat", sans-serif; font-size: 26px; font-weight: 700; line-height: 1.1; } .etapa span { font-size: 12px; color: var(--muted); font-weight: 600; }
.etapa.gana b { color: var(--ok); }
.tareas { display: flex; flex-direction: column; }
.tarea { display: grid; grid-template-columns: 22px 1fr 18px; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.tarea:last-child { border-bottom: 0; } .tarea:hover { background: var(--card2); text-decoration: none; }
.tarea .caja { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line2); } .tarea:hover .caja { border-color: var(--brand); background: var(--brand-bg); }
.tarea.validar .caja { border-color: #c9973f; } .tarea.base .caja { border-color: var(--info); }
.tarea small { display: block; color: var(--muted); font-size: 12px; } .tarea svg { width: 16px; height: 16px; color: var(--line2); } .tarea:hover svg { color: var(--brand); }
.vacio.listo svg { color: var(--verde); background: var(--brand-bg); border-radius: 50%; padding: 8px; width: 46px; height: 46px; }
.lista-pre a.it .m .avance { margin-top: 2px; }

/* tablero por etapa */
.tablero { display: grid; grid-template-columns: repeat(6, minmax(215px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.tablero .col { background: var(--bg2); border-radius: 14px; padding: 10px; min-height: 140px; border-top: 3px solid var(--line2); }
.tablero .col.pendiente { border-top-color: #c9973f; } .tablero .col.proceso { border-top-color: var(--info); } .tablero .col.enviada { border-top-color: var(--odoo); }
.tablero .col.vendida { border-top-color: var(--verde); } .tablero .col.perdida { border-top-color: var(--bad); }
.tablero h3 { margin: 2px 4px 10px; display: flex; justify-content: space-between; align-items: center; }
.ficha-t { display: flex; flex-direction: column; gap: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; margin-bottom: 8px; color: var(--ink); box-shadow: 0 1px 2px rgba(14,45,68,.06); transition: .12s; }
.ficha-t:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--sombra); }
.ficha-t .f { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); } .ficha-t b { font-size: 13.5px; line-height: 1.3; }
.ficha-t .c { font-size: 12px; color: var(--muted); } .ficha-t .pie { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ficha-t .pie .av { width: 20px; height: 20px; font-size: 10px; } .ficha-t .pie span:last-child { margin-left: auto; } .ficha-t .quieta { color: var(--warn); font-weight: 700; }
.tablero .nada { font-size: 12.5px; text-align: center; padding: 16px 0; margin: 0; }

/* validación de Costeos */
.banda-validar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--warn-bg); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; }
.banda-validar > div:first-child { display: flex; gap: 12px; align-items: center; max-width: 760px; } .banda-validar svg { width: 22px; height: 22px; color: var(--warn); flex: none; }
.banda-validar .btn svg { color: inherit; width: 16px; height: 16px; }
.validar .v-h { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.validar .miga { font-size: 12.5px; color: var(--muted); } .validar h2 { margin: 4px 0 2px; font-size: 19px; } .validar .sub { margin: 0 0 8px; }
.validar .v-a { display: flex; gap: 8px; flex-wrap: wrap; }
.validar .v-b { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; font-size: 13px; }
.docs-mini { display: flex; gap: 8px; flex-wrap: wrap; } .docs-mini a { display: inline-flex; gap: 7px; align-items: center; padding: 4px 10px 4px 5px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--card2); }
.docs-mini a:hover { border-color: var(--brand); text-decoration: none; }

/* secciones: pestañas de versión final / anteriores */
.sec-tabs { display: flex; gap: 4px; padding: 8px 14px 0; border-bottom: 1px solid var(--line); }
.sec-tabs button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 7px 10px 9px; border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; }
.sec-tabs button.on { color: var(--ink); border-bottom-color: var(--brand); } .sec-tabs button:disabled { opacity: .45; cursor: default; }
.doc .n a { color: var(--ink); } .doc .n a:hover { color: var(--brand); }
.ant-doc { display: flex; gap: 10px; align-items: center; padding: 12px 18px 0; } .ant-doc .muted { font-size: 12px; }
.sec [data-panel="anteriores"] .hist { margin: 8px 18px 10px 32px; } .hist .h .acc { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.solo-lectura { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); border-radius: 99px; padding: 3px 10px; }
.sec.fantasma { border-style: dashed; box-shadow: none; opacity: .75; } .sec.fantasma .sec-h { background: none; border: 0; }
.ver-in { display: flex; align-items: center; gap: 0; max-width: 150px; } .ver-in span { padding: 8px 11px; background: var(--navy); color: #fff; border-radius: 9px 0 0 9px; font-weight: 800; font-family: ui-monospace, Consolas, monospace; }
.ver-in input { border-radius: 0 9px 9px 0; font-weight: 700; font-size: 16px; }
.tec-pick.socios span::before { border-radius: 3px; }

/* visor de documentos */
.visor-h { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.visor-h .t { flex: 1; min-width: 240px; } .visor-h .t b { font-size: 17px; } .visor-h .t small { display: block; color: var(--muted); font-size: 12.5px; }
.visor-marco { position: relative; height: calc(100vh - 190px); min-height: 480px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #525659; box-shadow: var(--sombra); }
.visor-marco iframe { width: 100%; height: 100%; border: 0; display: block; }
.visor-marco .cargando { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: #fff; background: #3b4750; z-index: 1; }
.visor-marco .cargando small { color: #b9c7d1; }
.visor-img { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; } .visor-img img { max-width: 100%; height: auto; border-radius: 6px; }
.arbol .hojas { margin-left: 44px; } .arbol details details .hojas { margin-left: 30px; } .arbol details details summary svg { color: var(--muted); }
.arbol .hojas .per { min-width: 118px; }

.vistas { display: inline-flex; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; background: var(--card); }
.vistas a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--muted); }
.vistas a + a { border-left: 1px solid var(--line2); } .vistas a svg { width: 15px; height: 15px; }
.vistas a.on { background: var(--navy); color: #fff; } .vistas a:hover { text-decoration: none; color: var(--ink); } .vistas a.on:hover { color: #fff; }
.ficha-t .f { flex-wrap: wrap; gap: 4px 6px; } .ficha-t .f .mono { font-size: 10.5px; } .ficha-t .f .pill { font-size: 10px; padding: 1px 7px; }

/* entrada: casilla «Recordar mi sesión» */
.login-r label.recordar { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; margin: 2px 0 14px; cursor: pointer; }
.login-r label.recordar input { margin: 0; accent-color: var(--verde, #0f9173); }

/* ---------- Notas internas y Comentarios de la ficha ---------- */
.heroe-tr { position: absolute; top: 20px; right: 24px; display: flex; gap: 8px; z-index: 2; }
.heroe .btn.conv { background: rgba(255,255,255,.14); }
.btn.conv .pill { background: #fff; color: var(--navy); margin-left: 4px; font-weight: 700; }
@media (max-width: 820px) { .heroe-tr { position: static; margin: 0 0 4px; justify-content: flex-start; } .heroe::after { opacity: .07; } }

dialog.conv-dlg { width: min(640px, 94vw); border: none; border-radius: 16px; padding: 0; background: var(--card); color: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,.34); max-height: 90vh; max-width: 94vw; }
dialog.conv-dlg[open] { display: flex; flex-direction: column; }
dialog.conv-dlg::backdrop { background: rgba(6,18,28,.55); }
.conv-top { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.conv-top h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; flex: 1; }
.conv-top h3 svg { width: 20px; height: 20px; color: var(--verde); }
.conv-top .x { background: none; border: none; font-size: 17px; color: var(--muted); cursor: pointer; padding: 4px 9px; border-radius: 8px; }
.conv-top .x:hover { background: var(--card2); color: var(--ink); }
.conv-ayuda { margin: 0; padding: 10px 20px; font-size: 12.5px; color: var(--muted); background: var(--card2); border-bottom: 1px solid var(--line); }
.conv-lista { overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 13px; flex: 1; min-height: 130px; }
.conv-nada { color: var(--muted); text-align: center; padding: 26px 10px; font-size: 13.5px; }

.nota { border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: var(--card2); }
.nota-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.nota-h .av { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.nota-h .muted { font-size: 12px; } .nota-h .nota-del { margin-left: auto; }
.nota-t { margin-top: 8px; white-space: pre-wrap; line-height: 1.5; font-size: 14px; }
.nota-img { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.nota-img img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); }

.conv-lista.chat { gap: 10px; }
.coment { display: flex; } .coment.mio { justify-content: flex-end; }
.coment .burbuja { max-width: 80%; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.coment.mio .burbuja { background: var(--celeste); border-color: transparent; color: var(--navy); }
.coment-h { display: flex; gap: 8px; align-items: baseline; margin-bottom: 2px; }
.coment-h b { font-size: 13px; } .coment-h .rol-min { color: var(--verde); font-weight: 600; font-size: 11px; }
.coment.mio .coment-h .rol-min { color: #0b6e57; } .coment.mio .coment-h .muted { color: #3f6075; }
.coment-h .muted { margin-left: auto; font-size: 11px; }
.coment-t { white-space: pre-wrap; line-height: 1.45; font-size: 14px; }

.conv-form { border-top: 1px solid var(--line); padding: 12px 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.conv-form textarea { width: 100%; resize: vertical; }
.conv-acc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.conv-acc label.btn { cursor: pointer; }
.conv-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.conv-imgs .mini { position: relative; }
.conv-imgs .mini img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line2); display: block; }
.conv-imgs .mini button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: none; background: var(--navy); color: #fff; cursor: pointer; font-size: 11px; line-height: 1; }
