/* Fiscalización Copacabana — expediente de trabajo con la marca de la Alcaldía.
   Colores del escudo: verde (principal), amarillo, rojo y azul (uno por programa). */
:root {
  --bg: #f5f7f3;
  --surface: #ffffff;
  --surface-2: #ebf0e8;
  --ink: #18241f;
  --ink-2: #4c5c55;
  --line: #d5ddd0;
  --accent: #23772f;
  --accent-ink: #ffffff;
  --accent-soft: #dcefd9;
  --omisos: #d4a300;
  --sancionables: #cc1f1f;
  --inexactos: #0a7fc4;
  --otros: #7b8a84;
  --marca-verde: #48a818;
  --marca-amarillo: #f0d800;
  --marca-rojo: #d80000;
  --marca-azul: #0090d8;
  --warn-bg: #fff4dc;
  --warn-ink: #7a4b00;
  --ok-bg: #e2f3df;
  --ok-ink: #1d5a25;
  --err-bg: #fde4e4;
  --err-ink: #8a1414;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 6px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 14px; line-height: 1.5; }
a { color: var(--accent); }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Encabezado */
header.band { background: var(--surface); border-bottom: 1px solid var(--line); }
.franja { height: 5px; display: grid; grid-template-columns: 3fr 1fr 1fr 1fr; }
.franja i:nth-child(1) { background: var(--marca-verde); } .franja i:nth-child(2) { background: var(--marca-amarillo); }
.franja i:nth-child(3) { background: var(--marca-rojo); } .franja i:nth-child(4) { background: var(--marca-azul); }
.cabecera { padding-block: 14px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.marca { display: flex; align-items: center; gap: 18px; min-width: 0; text-decoration: none; color: inherit; }
.marca img { height: 52px; width: auto; max-width: 100%; display: block; }
.marca .sep { width: 1px; align-self: stretch; background: var(--line); }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
h1 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); line-height: 1.1; margin: 2px 0 0; text-wrap: balance; }
h2 { font-family: var(--font-display); font-size: 19px; margin: 0; text-wrap: balance; }
h3 { font-size: 13px; margin: 0; font-weight: 700; }
.usuario { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.usuario form { margin: 0; }
@media (max-width: 640px) { .marca .sep, .marca .titulos { display: none; } }

nav.tabs { display: flex; gap: 2px; overflow-x: auto; }
nav.tabs a { text-decoration: none; color: var(--ink-2); padding: 10px 14px; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; font-size: 13.5px; }
nav.tabs a:hover { color: var(--ink); }
nav.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.vivo { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--ink-2); padding-block: 8px; }
.vivo #vivo-texto { min-width: 0; overflow-wrap: anywhere; }
.vivo .luz { transform: translateY(1px); }
.vivo .luz { width: 9px; height: 9px; border-radius: 50%; background: var(--otros); flex: none; }
.vivo .luz.ok { background: var(--marca-verde); box-shadow: 0 0 0 3px var(--accent-soft); }
.vivo .luz.trabajando { background: var(--omisos); }
@media (prefers-reduced-motion: no-preference) { .vivo .luz.trabajando { animation: pulso 1.2s ease-in-out infinite; } }
@keyframes pulso { 50% { opacity: .35; } }

main.wrap { padding-block: 18px 56px; display: grid; gap: 18px; }

/* Componentes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.card > header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 3px; border-top: 3px solid var(--c, var(--accent)); }
.kpi .n { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .v { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--ink-2); }
.t-OMISOS { --c: var(--omisos); } .t-SANCIONABLES { --c: var(--sancionables); } .t-INEXACTOS { --c: var(--inexactos); }
.small { font-size: 12px; color: var(--ink-2); }
.aviso { border-radius: var(--r); padding: 10px 14px; font-size: 13px; background: var(--warn-bg); color: var(--warn-ink); }
.aviso.success, .aviso.ok { background: var(--ok-bg); color: var(--ok-ink); }
.aviso.error { background: var(--err-bg); color: var(--err-ink); }
.aviso.info { background: var(--surface-2); color: var(--ink); }
.vacio { text-align: center; padding: 48px 16px; display: grid; gap: 10px; justify-items: center; }
.vacio img { width: 72px; }

.chart { position: relative; height: 280px; }
.chart.alto { height: 360px; }

button, .btn { font: inherit; font-weight: 600; font-size: 13px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 7px 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button:hover, .btn:hover { border-color: var(--accent); }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.link { border: 0; background: none; color: var(--accent); padding: 0; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="text"], input[type="search"], input[type="password"], input[type="url"], select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 7px 10px; min-width: 0; width: 100%; }
textarea { resize: vertical; }
textarea.sql { font-family: var(--font-mono); font-size: 12.5px; }
.campo { display: grid; gap: 5px; }
.campo label, .lbl { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.fila { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.fila > .crece { flex: 1 1 220px; }
.codigo-ms { font-family: var(--font-mono); font-size: 26px; letter-spacing: .12em; background: var(--surface-2); padding: 8px 14px; border-radius: var(--r); display: inline-block; }

.tablebox { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); max-height: 560px; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th, td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: top; }
th { position: sticky; top: 0; background: var(--surface-2); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); z-index: 1; }
td.num, th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
td.mono { font-family: var(--font-mono); }
tbody tr:hover td { background: var(--surface-2); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--otros)); }
.paginas { display: flex; gap: 8px; align-items: center; justify-content: flex-end; font-size: 13px; }
pre.esquema { font-family: var(--font-mono); font-size: 12px; white-space: pre-wrap; background: var(--surface-2); padding: 10px; border-radius: var(--r); margin: 0; }
.barra-calidad { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 12px; }
.barra-calidad .track { height: 10px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.barra-calidad .track i { display: block; height: 100%; background: var(--sancionables); }
.barra-calidad .num { text-align: right; font-family: var(--font-mono); }

/* Agente */
.sugerencias { display: flex; gap: 8px; flex-wrap: wrap; }
.sugerencias button { font-weight: 500; background: var(--surface-2); text-align: left; }
.mensajes { display: grid; gap: 14px; }
.msg { display: grid; gap: 8px; min-width: 0; }
.msg.user { justify-self: end; max-width: 80%; background: var(--accent-soft); padding: 10px 14px; border-radius: var(--r); white-space: pre-wrap; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.msg .quien { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.md { min-width: 0; overflow-wrap: anywhere; }
.md > * + * { margin-top: .6em; }
.md h1, .md h2, .md h3, .md h4 { font-family: var(--font-display); font-size: 16px; margin-bottom: 0; }
.md p { margin: 0; max-width: 80ch; }
.md table { width: auto; }
.md code { font-family: var(--font-mono); font-size: 12px; background: var(--surface-2); padding: 1px 4px; border-radius: 3px; }
.md pre { background: var(--surface-2); padding: 10px; border-radius: var(--r); overflow-x: auto; }
.pasos { font-size: 12px; color: var(--ink-2); display: grid; gap: 4px; }
.pasos details { border-left: 2px solid var(--line); padding-left: 8px; }
.pasos summary { cursor: pointer; }
.pasos pre { font-family: var(--font-mono); font-size: 11.5px; white-space: pre-wrap; background: var(--surface-2); padding: 6px 8px; border-radius: 4px; margin: 4px 0; }
.compositor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.pensando { color: var(--ink-2); font-style: italic; }
@media (prefers-reduced-motion: no-preference) { .pensando { animation: pulso 1.4s ease-in-out infinite; } }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login .card { width: min(420px, 100%); gap: 16px; }
.login .card img { width: 100%; max-width: 320px; justify-self: center; }

/* ═════════════════════════════════════════════════════════════════
   Capa GOBS · Key Visual Maestro, igual que Cierre fiscal y las demás apps del ecosistema.
   Principales #508DFB, #FFFFFF, #000000 · complementarios #88B0FF, #6CD3A5, gris #EDEEEF.
   Títulos Georgia, texto Montserrat, formas escalonadas (esquina de la G); negro para acciones.
   Los colores de los tres programas se conservan (identifican datos) y los del escudo de
   Copacabana quedan en la franja bajo el logo del cliente. Las gráficas leen estos tokens.
   ═════════════════════════════════════════════════════════════════ */
:root {
  --bg: #F7F7F8; --surface: #FFFFFF; --surface-2: #EDEEEF; --gris: #EDEEEF;
  --ink: #000000; --ink-2: #3A3A3D; --ink-3: #6B6C70; --line: #E3E4E7; --line-soft: #ECEDEE;
  --accent: #508DFB; --accent-2: #88B0FF; --verde: #6CD3A5; --accent-ink: #ffffff; --accent-soft: #EAF1FF; --link: #1F55C9;
  --omisos: #E0A800; --sancionables: #D03B3B; --inexactos: #508DFB; --otros: #6B6C70;
  --warn-bg: #FBF1D9; --warn-ink: #7A4B00; --ok-bg: #E3F4EA; --ok-ink: #1E6B3C; --err-bg: #FBE5E5; --err-ink: #8A1414;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px;
  --sombra-1: 0 1px 2px rgba(10,20,45,.05), 0 2px 8px -2px rgba(10,20,45,.06);
  --sombra-2: 0 1px 2px rgba(10,20,45,.05), 0 14px 32px -14px rgba(30,60,130,.28);
  --sombra-3: 0 2px 4px rgba(10,20,45,.06), 0 24px 48px -18px rgba(30,60,130,.35);
  --ease: cubic-bezier(.2,.8,.2,1);
  --forma: polygon(0 0,100% 0,100% 100%,58% 100%,58% 42%,0 42%);
}
body { font-weight: 500; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420'%3E%3Cpath d='M0 0H360V420H200V150H0Z' fill='%23508DFB' fill-opacity='.045'/%3E%3Cpath d='M120 90H520V330H380V200H120Z' fill='%236CD3A5' fill-opacity='.05'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='380'%3E%3Cpath d='M0 0H300V380H170V140H0Z' fill='%23000' fill-opacity='.025'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right -120px top 260px, left -90px bottom -60px; background-attachment: fixed; }
body > main.wrap, body > .vivo { width: 100%; }
body > main.wrap { flex: 1 0 auto; align-content: start; }
a { color: var(--link); text-decoration-color: var(--accent); text-underline-offset: 3px; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; }
main h2 { display: flex; align-items: flex-start; gap: 10px; }
main .card > header h2::before { content: ""; flex: none; width: 13px; height: 13px; margin-top: .32em; background: var(--accent); clip-path: var(--forma);
  animation: gEsquina .7s var(--ease) both .2s; }
.eyebrow { color: var(--ink-3); font-weight: 700; }

/* ---------- membrete ---------- */
header.brandbar { position: relative; background: #fff; overflow: hidden; border-bottom: 5px solid var(--accent); box-shadow: 0 6px 24px -18px rgba(30,60,130,.5); }
header.brandbar .cabecera { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 26px; padding-block: 14px;
  padding-right: max(16px, calc(min(300px,24%) - 40px)); }
header.brandbar .marca img.gobs { height: 38px; width: auto; transition: transform .3s var(--ease); }
header.brandbar .marca:hover img.gobs { transform: translateY(-2px); }
header.brandbar .vsep { width: 1px; align-self: stretch; background: var(--line); }
header.brandbar .titulos { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; animation: gFadeUp .6s var(--ease) both .05s; }
header.brandbar h1 { font-size: 28px; margin: 0; letter-spacing: -.01em; }
header.brandbar .sub { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
header.brandbar .sub em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-right: 4px; }
header.brandbar .cliente { margin-left: auto; position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .08em; }
.chip { position: relative; display: flex; align-items: center; background: #fff; padding: 7px 12px 10px; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--sombra-1); overflow: hidden; }
.chip img { height: 40px; width: auto; display: block; }
.chip .franja { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
header.brandbar .formas { position: absolute; right: 0; top: 0; bottom: 0; width: min(300px,24%); pointer-events: none; z-index: 0; }
.formas i { position: absolute; display: block; clip-path: var(--forma); mix-blend-mode: multiply; animation: gFormaIn .9s var(--ease) both; }
.formas .f1 { left: 0; top: -40px; width: 150px; height: 130px; background: var(--gris); animation-delay: .05s; }
.formas .f2 { left: 70px; top: 30px; width: 120px; height: 100px; background: rgba(80,141,251,.16); animation-delay: .18s; }
.formas .f3 { left: 150px; top: -10px; width: 90px; height: 90px; background: rgba(108,211,165,.22); animation-delay: .3s; }

/* ---------- navegación ---------- */
nav.mainnav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
nav.mainnav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-block: 8px; }
nav.mainnav .tabs { display: flex; gap: 4px; flex-wrap: wrap; }
nav.mainnav .tabs a { padding: 7px 12px; border-radius: 4px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 13px; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
nav.mainnav .tabs a:not([aria-current]):hover { background: var(--gris); color: #000; transform: translateY(-1px); }
nav.mainnav .tabs a[aria-current="page"] { background: #000; color: #fff; box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); }
.usuario { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; background: #000; color: #fff; font-weight: 800; font-size: 12px; box-shadow: inset -6px -6px 0 0 var(--accent); flex: none; }
.u-txt { display: flex; flex-direction: column; line-height: 1.15; }
.u-txt b { font-size: 13px; }
.u-txt small { font-size: 11px; color: var(--ink-3); }
.u-txt small a { color: var(--ink-3); }
.salir { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 4px; }
.salir:hover { background: #000; color: #fff; border-color: #000; }
.vivo { padding-block: 10px 0; }
.vivo .luz.ok { background: var(--verde); box-shadow: 0 0 0 3px rgba(108,211,165,.25); }

/* ---------- superficies ---------- */
.card { border-color: var(--line); box-shadow: var(--sombra-1); animation: gFadeUp .5s var(--ease) both; }
.kpi { position: relative; overflow: hidden; border-color: var(--line); border-top-width: 3px; box-shadow: var(--sombra-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); animation: gFadeUp .5s var(--ease) both; }
.kpi::after { content: ""; position: absolute; right: -12px; top: -12px; width: 44px; height: 44px; background: var(--c, var(--accent)); opacity: .14;
  clip-path: var(--forma); transition: opacity .25s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sombra-2); }
.kpi:hover::after { opacity: .85; }
.kpi .n { font-weight: 800; }
.kpi .v, td.num, th.num, .barra-calidad .num { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.kpis > .kpi:nth-child(2) { animation-delay: .05s; } .kpis > .kpi:nth-child(3) { animation-delay: .1s; } .kpis > .kpi:nth-child(4) { animation-delay: .15s; }
.aviso { border-radius: 4px; border-left: 4px solid currentColor; box-shadow: var(--sombra-1); }
th { background: var(--gris); font-weight: 700; color: var(--ink-2); }
tbody tr:hover td { background: #F2F6FF; }
.tablebox { box-shadow: var(--sombra-1); background: #fff; }

/* ---------- botones y campos ---------- */
button, .btn { border-radius: 4px; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s, transform .2s var(--ease), box-shadow .2s var(--ease); }
button:hover, .btn:hover { border-color: #000; transform: translateY(-1px); box-shadow: 0 8px 16px -10px rgba(30,60,130,.6); }
button:disabled:hover { transform: none; box-shadow: none; }
button.primary, .btn.primary { background: #000; border-color: #000; color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--accent); border-color: var(--accent); }
button.link { color: var(--link); }
button.link:hover { transform: none; box-shadow: none; }
.sugerencias button { background: #fff; border-color: var(--line); }
.sugerencias button:hover { border-color: var(--accent); background: var(--accent-soft); }
input[type="text"], input[type="search"], input[type="password"], input[type="url"], select, textarea { border-radius: 4px; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(80,141,251,.22); }
:focus-visible { outline-color: var(--accent); }
.msg.user { background: #000; color: #fff; box-shadow: inset -6px 0 0 0 var(--accent); }
.msg.bot { box-shadow: var(--sombra-1); border-left: 3px solid var(--accent); }
.msg .quien { color: var(--accent); }

/* ---------- pie ---------- */
footer.foot { position: relative; overflow: hidden; background: #000; color: #d9d9db; margin-top: 24px; }
footer.foot::after { content: ""; position: absolute; right: 40px; top: -20px; width: 120px; height: 100px; background: var(--accent); opacity: .85; clip-path: var(--forma); }
footer.foot .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding-block: 22px; padding-right: max(16px, 180px); font-size: 12px; }
footer.foot img { height: 26px; width: auto; display: block; }

/* ---------- movimiento ---------- */
@keyframes gFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes gFormaIn { from { opacity: 0; transform: translate(40px,-14px); } to { opacity: 1; transform: none; } }
@keyframes gEsquina { from { opacity: 0; transform: translate(-8px,8px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes gFlotar { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  header.brandbar .formas, header.brandbar .vsep { display: none; }
  header.brandbar .cabecera { padding-right: 16px; gap: 10px 16px; }
  header.brandbar .marca img.gobs { height: 30px; }
  header.brandbar h1 { font-size: 22px; }
  header.brandbar .cliente { margin-left: 0; }
  header.brandbar .cliente > span:first-child { display: none; }
  .chip img { height: 30px; }
  nav.mainnav { backdrop-filter: none; background: #fff; }
  nav.mainnav .tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .u-txt { display: none; }
  footer.foot .wrap { padding-right: 16px; }
}
/* la regla anterior ocultaba el título en celular; el membrete lo muestra siempre */
@media (max-width: 640px) { header.brandbar .titulos { display: flex; } }

/* ═════════ ingreso: pantalla dividida, como Cierre fiscal ═════════ */
body.pagina-login { background: #fff; background-image: none; display: block; }
.lg { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); min-height: 100vh; min-height: 100dvh; }
.lg-arte { position: relative; overflow: hidden; background: #000; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  gap: 28px; padding: 44px max(28px,4vw); isolation: isolate; }
.lg-formas { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lg-formas i { position: absolute; display: block; clip-path: var(--forma); mix-blend-mode: screen; animation: gFormaIn 1.2s var(--ease) both, gFlotar 12s ease-in-out infinite 1.4s; }
.lg-formas .a1 { width: 44%; aspect-ratio: 1.15; right: -10%; top: -6%; background: #508DFB; opacity: .92; }
.lg-formas .a2 { width: 26%; aspect-ratio: 1.15; right: 6%; top: 40%; background: #88B0FF; opacity: .4; animation-delay: .15s, 1.8s; }
.lg-formas .a3 { width: 34%; aspect-ratio: 1.1; right: -8%; bottom: -8%; background: #6CD3A5; opacity: .6; animation-delay: .3s, 2.3s; }
.lg-logo { width: 176px; height: auto; animation: gFadeUp .7s var(--ease) both .1s; }
.lg-mensaje { max-width: 440px; position: relative; z-index: 1; animation: gFadeUp .8s var(--ease) both .25s; }
.lg-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #88B0FF; margin-bottom: 14px; }
.lg-mensaje h1 { font-size: clamp(36px,4.4vw,60px); line-height: 1; letter-spacing: -.02em; margin: 0 0 18px; color: #fff; }
.lg-mensaje p { font-size: 15px; line-height: 1.6; color: #C9CBD1; margin: 0 0 28px; max-width: 46ch; }
.lg-puntos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lg-puntos li { display: flex; gap: 14px; align-items: flex-start; }
.lg-puntos svg { width: 22px; height: 22px; flex: none; color: #508DFB; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.lg-puntos b { display: block; color: #fff; font-size: 14px; }
.lg-puntos span { font-size: 13px; color: #AEB1B8; }
.lg-cliente { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #AEB1B8; animation: gFadeUp .8s var(--ease) both .4s; }
.lg-cliente .chip { border: 0; box-shadow: none; }
.lg-cliente .chip img { height: 34px; }
.lg-form { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; background: #fff; position: relative; }
.lg-caja { width: min(400px,100%); min-width: 0; animation: gFadeUp .7s var(--ease) both .2s; }
.lg-simbolo { width: 44px; height: 44px; margin-bottom: 22px; animation: gEsquina .8s var(--ease) both .35s; }
.lg-caja h2 { font-size: 36px; line-height: 1.04; margin: 0 0 6px; }
.lg-caja > .muted { margin: 0 0 24px; font-size: 14px; color: var(--ink-3); }
.lg-campos { display: flex; flex-direction: column; gap: 8px; }
.lg-campos label { font-size: 13px; font-weight: 600; margin-top: 6px; }
.campo-i { position: relative; display: flex; align-items: center; }
.campo-i > svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; transition: color .2s; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.campo-i input { height: 46px; padding: 0 44px 0 40px; font-size: 14px; background: #FAFAFB; }
.campo-i input:focus { background: #fff; }
.campo-i:focus-within > svg { color: var(--accent); }
.campo-i .ver { position: absolute; right: 6px; width: 34px; height: 34px; padding: 0; border: 0; background: none; color: var(--ink-3); border-radius: 4px; display: grid; place-items: center; }
.campo-i .ver:hover, .campo-i .ver[aria-pressed="true"] { color: #000; background: var(--gris); transform: none; box-shadow: none; }
.campo-i .ver svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lg-btn { margin-top: 14px; height: 48px; border: 0; background: #000; color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; }
.lg-btn:hover { background: var(--accent); }
.lg-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; transition: transform .25s var(--ease); }
.lg-btn:hover svg { transform: translateX(4px); }
.lg-ayuda { font-size: 12px; color: var(--ink-3); margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.lg-pie { position: absolute; bottom: 20px; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; margin: 0; }
@media (max-width: 900px) {
  .lg { grid-template-columns: minmax(0,1fr); }
  .lg-arte { padding: 24px 20px 22px; gap: 18px; }
  .lg-formas .a1 { width: 46%; right: -14%; top: -30%; }
  .lg-formas .a2, .lg-formas .a3, .lg-puntos, .lg-mensaje p, .lg-cliente > span:last-child { display: none; }
  .lg-logo { width: 120px; }
  .lg-mensaje h1 { font-size: 30px; margin: 0; }
  .lg-form { padding: 28px 20px; align-items: stretch; }
  .lg-caja { width: 100%; }
  .lg-caja h2 { font-size: 30px; }
  .lg-pie { position: static; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
