/* Pantallas de producto (v4). Se dibujan a tamaño real dentro de .lienzo y se escalan.
   Imitan programas de verdad: barra con dirección, barra lateral, buscador, tablas densas,
   gráficas con ejes y estados con punto. */

/* ---------- Marco de aplicación ---------- */
.app {
  --a-fondo: #FFFFFF; --a-lado: #F6F8F9; --a-raya: #E6ECEF; --a-raya-2: #F0F4F5; --a-texto: #13303B; --a-suave: #67818B; --a-tenue: #9DB0B8;
  --a-prim: #073349; --a-acento: #0891B2; --a-hover: #EEF3F5; --a-barra: #F3F6F7;
  width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px;
  background: var(--a-fondo); color: var(--a-texto); font: 400 12.5px/1.4 var(--f-texto); letter-spacing: -.005em;
  box-shadow: 0 0 0 1px rgba(7, 51, 73, .1), 0 1px 0 rgba(255,255,255,.5) inset, 0 50px 100px -40px rgba(2, 16, 26, .7), 0 20px 40px -20px rgba(2, 16, 26, .45);
  font-variant-numeric: tabular-nums;
}
.app--oscura {
  --a-fondo: #0A1A22; --a-lado: #0C1F29; --a-raya: rgba(255,255,255,.08); --a-raya-2: rgba(255,255,255,.05); --a-texto: #E4EFF3; --a-suave: #84A1AC; --a-tenue: #57717C;
  --a-prim: #22D3EE; --a-hover: rgba(255,255,255,.05); --a-barra: #0E222C;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 100px -40px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(34, 211, 238, .25);
}
.app--attendea { --a-prim: #0A0A0A; --a-acento: #0A0A0A; --a-lado: #FAFAFA; --a-raya: #EAEAEA; --a-raya-2: #F3F3F3; --a-texto: #111; --a-suave: #6B6B6B; --a-tenue: #A3A3A3; --a-hover: #F4F4F5; --a-barra: #FAFAFA; }
.app svg.i { width: 15px; height: 15px; flex: none; }
.app svg.i.suave { color: var(--a-tenue); width: 13px; height: 13px; }
.app b { font-weight: 600; }
.app small { font-size: 11px; color: var(--a-suave); }
.app .suave { color: var(--a-suave); }
.app .mono { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0; }
.app .num { text-align: right; font-variant-numeric: tabular-nums; }
.app h5 { margin: 0; font: 600 19px/1.15 var(--f-titulo); letter-spacing: -.03em; color: var(--a-texto); }

.app-barra { flex: none; height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: var(--a-barra); box-shadow: 0 1px 0 var(--a-raya); }
.semaforo { display: flex; gap: 6px; }
.semaforo i { width: 10px; height: 10px; border-radius: 50%; background: #D7DFE3; }
.app--oscura .semaforo i { background: #24404D; }
.app-url { display: inline-flex; align-items: center; gap: 6px; margin-inline: auto; padding: 4px 12px; border-radius: 8px; background: var(--a-fondo); box-shadow: 0 0 0 1px var(--a-raya); font: 400 11.5px/1.2 var(--f-mono); color: var(--a-suave); min-width: 260px; justify-content: center; }
.app-url svg.i { width: 11px; height: 11px; }
.app-barra-der { display: flex; align-items: center; gap: 8px; min-width: 70px; justify-content: flex-end; }
.app-cuerpo { flex: 1; min-height: 0; display: flex; position: relative; }
.vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--a-suave); white-space: nowrap; }
.vivo i { width: 7px; height: 7px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.js-mov .visto .vivo i, .js-mov .activa .vivo i { animation: latido 2s ease-in-out infinite; }
@keyframes latido { 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); } }

/* Piezas comunes */
.av { --c: #0E7490; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c); font: 600 9.5px/1 var(--f-texto); letter-spacing: 0; box-shadow: 0 0 0 1.5px var(--a-fondo, #fff); }
.app--oscura .av { background: color-mix(in srgb, var(--c) 30%, #0A1A22); color: color-mix(in srgb, var(--c) 40%, #fff); }
.av.pila + .av.pila, .pila-av .av + .av { margin-left: -7px; }
.pila-av { display: inline-flex; }
.est { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; background: #F1F4F5; color: #4B6470; box-shadow: inset 0 0 0 1px rgba(7, 51, 73, .06); }
.est i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.est--ok { background: #EEFBF2; color: #15803D; }
.est--aviso { background: #FFF7E8; color: #B45309; }
.est--info { background: #ECFAFD; color: #0E7490; }
.est--nuevo { background: #F3EFFE; color: #6D28D9; }
.est--rojo { background: #FFF0F2; color: #BE123C; }
.app--oscura .est { background: rgba(255,255,255,.06); color: #B7CDD5; box-shadow: none; }
.app--oscura .est--ok { background: rgba(34, 197, 94, .12); color: #4ADE80; }
.app--oscura .est--aviso { background: rgba(250, 204, 21, .12); color: #FACC15; }
kbd { font: 500 10px/1 var(--f-mono); padding: 3px 5px; border-radius: 5px; background: var(--a-fondo, #fff); box-shadow: 0 0 0 1px var(--a-raya, #E6ECEF), 0 1px 0 var(--a-raya, #E6ECEF); color: var(--a-suave); margin-left: auto; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 8px; font-weight: 500; font-size: 12px; white-space: nowrap; background: var(--a-fondo); box-shadow: 0 0 0 1px var(--a-raya), 0 1px 2px rgba(7, 51, 73, .06); color: var(--a-texto); }
.btn--prim { background: var(--a-prim); color: #fff; box-shadow: 0 1px 2px rgba(7, 51, 73, .3), inset 0 1px 0 rgba(255,255,255,.12); }
.btn--negro { background: #0A0A0A; color: #fff; box-shadow: none; }
.btn svg.i { width: 13px; height: 13px; }
.segmento { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--a-hover); gap: 2px; font-size: 11.5px; color: var(--a-suave); }
.segmento span { padding: 4px 10px; border-radius: 6px; }
.segmento .act { background: var(--a-fondo); color: var(--a-texto); font-weight: 500; box-shadow: 0 1px 2px rgba(7, 51, 73, .12); }
.espacio-logo { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; flex: none; background: linear-gradient(135deg, #0F5A77, #073349); color: #fff; font: 600 10px/1 var(--f-texto); letter-spacing: .02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.app--attendea .espacio-logo { background: linear-gradient(135deg, #3B3B3B, #0A0A0A); }

/* Barra lateral */
.app-lado { flex: none; width: 188px; background: var(--a-lado); box-shadow: 1px 0 0 var(--a-raya); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.espacio { display: flex; align-items: center; gap: 9px; padding: 4px 6px 10px; }
.espacio b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buscar { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; padding: 6px 8px; border-radius: 8px; background: var(--a-fondo); box-shadow: 0 0 0 1px var(--a-raya); color: var(--a-tenue); font-size: 11.5px; }
.buscar svg.i { width: 13px; height: 13px; }
.lado-item { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: var(--a-suave); font-weight: 450; }
.lado-item em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--a-tenue); }
.lado-item.act { background: var(--a-fondo); color: var(--a-texto); font-weight: 500; box-shadow: 0 0 0 1px var(--a-raya), 0 1px 2px rgba(7, 51, 73, .06); }
.lado-item.act svg.i { color: var(--a-acento); }
.app--oscura .lado-item.act { background: rgba(255,255,255,.06); box-shadow: none; }
.lado-grupo { margin: 14px 8px 4px; font-size: 10.5px; color: var(--a-tenue); font-weight: 500; }
.lado-item--sub { font-size: 12px; }
.lado-punto { width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex: none; margin-inline: 3px; }
.lado-pie { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 6px 2px; box-shadow: 0 -1px 0 var(--a-raya); }
.lado-pie div { display: grid; line-height: 1.2; flex: 1; }
.lado-pie b { font-size: 12px; }

/* Zona principal */
.principal { flex: 1; min-width: 0; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.cab-app { display: flex; align-items: center; gap: 10px; }
.cab-app > div:first-child { margin-right: auto; }
.miga-app { font-size: 11px; color: var(--a-tenue); margin-bottom: 3px; }
.miga-app span { margin-inline: 3px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.kpi { position: relative; padding: 11px 12px; border-radius: 10px; background: var(--a-fondo); box-shadow: 0 0 0 1px var(--a-raya), 0 1px 2px rgba(7, 51, 73, .04); display: grid; gap: 2px; overflow: hidden; }
.kpi b { font: 600 20px/1.1 var(--f-titulo); letter-spacing: -.03em; }
.kpi span { font-size: 11px; }
.kpi .sube { color: #15803D; font-weight: 500; }
.kpi .spark { position: absolute; right: 10px; bottom: 10px; width: 64px; height: 24px; }
.spark polygon { fill: color-mix(in srgb, var(--a-acento) 12%, transparent); }
.spark polyline { fill: none; stroke: var(--a-acento); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.app--oscura .spark polyline { stroke: #22D3EE; }
.filtros-app { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
.filtro { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px; box-shadow: 0 0 0 1px var(--a-raya); color: var(--a-suave); }
.filtro svg.i { width: 12px; height: 12px; }
.tabla { border-radius: 10px; box-shadow: 0 0 0 1px var(--a-raya); overflow: hidden; }
.tabla .tr { display: grid; grid-template-columns: 18px 50px 1.55fr 1.35fr .55fr .95fr .72fr; gap: 10px; align-items: center; padding: 0 12px; height: 36px; box-shadow: 0 1px 0 var(--a-raya-2); white-space: nowrap; }
.tabla .tr > span { overflow: hidden; text-overflow: ellipsis; }
.tabla .tr.th { height: 30px; background: var(--a-lado); font-size: 11px; color: var(--a-suave); font-weight: 500; box-shadow: 0 1px 0 var(--a-raya); }
.tabla .tr:last-child { box-shadow: none; }
.casilla { width: 13px; height: 13px; border-radius: 4px; box-shadow: inset 0 0 0 1.3px #C9D5DA; }
.cli { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.tabla .tr.resaltada { background: #FFFBEA; box-shadow: inset 2px 0 0 var(--amarillo), 0 1px 0 var(--a-raya-2); }
.estado-entrega .entregado { display: none; }
.s2 .estado-entrega .en-ruta, .activa .estado-entrega.cambia .en-ruta { display: none; }
.s2 .estado-entrega .entregado, .activa .estado-entrega.cambia .entregado { display: inline-flex; }
.fila-app { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.panel-app { border-radius: 12px; background: var(--a-fondo); box-shadow: 0 0 0 1px var(--a-raya), 0 1px 2px rgba(7, 51, 73, .04); padding: 12px 14px; min-width: 0; }
.panel-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.barra-p { display: block; height: 6px; border-radius: 99px; background: var(--a-hover); overflow: hidden; flex: 1; }
.barra-p i { display: block; height: 100%; width: calc(var(--w) * 1%); border-radius: inherit; background: var(--a-acento); }
.js-mov .barra-p i { transition: width 1.2s var(--curva) .3s; }
.js-mov .marco:not(.visto):not(.activa *) .barra-p i { width: 0; }

/* ---------- ERP ---------- */
.erp .kpi .spark { width: 56px; }

/* ---------- Teléfono ---------- */
.telefono { width: 100%; height: 100%; border-radius: 46px; padding: 9px; background: linear-gradient(145deg, #2A3B44, #0B151B); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), 0 50px 90px -30px rgba(2, 16, 26, .8), 0 20px 40px -20px rgba(2, 16, 26, .5); }
.telefono-pantalla { --a-fondo: #fff; --a-raya: #E6ECEF; --a-suave: #67818B; --a-texto: #13303B; --a-acento: #0891B2; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #F5F8F9; color: var(--a-texto); display: flex; flex-direction: column; font: 400 12.5px/1.35 var(--f-texto); position: relative; }
.telefono-pantalla small { font-size: 11px; color: var(--a-suave); }
.telefono-pantalla h5 { margin: 0; font: 600 21px/1.1 var(--f-titulo); letter-spacing: -.03em; }
.telefono svg.i { width: 15px; height: 15px; }
.tel-estado { display: flex; align-items: center; justify-content: space-between; padding: 14px 26px 6px; font-size: 13px; }
.isla { width: 84px; height: 24px; border-radius: 20px; background: #0B151B; }
.tel-iconos { display: flex; gap: 5px; align-items: center; }
.tel-iconos .barras { width: 15px; height: 9px; background: linear-gradient(90deg, #13303B 0 2px, transparent 2px 4px, #13303B 4px 6px, transparent 6px 8px, #13303B 8px 10px, transparent 10px 12px, #CBD5DA 12px); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.tel-iconos .bat { width: 21px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1.2px #13303B; background: linear-gradient(90deg, #13303B 0 70%, transparent 70%) 2px 2px / 15px 6px no-repeat; }
.tel-cab { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 10px; }
.tel-cab .av { width: 32px; height: 32px; font-size: 11px; }
.movil-red { margin: 0 14px 8px; padding: 8px 10px; border-radius: 10px; font-size: 11.5px; font-weight: 500; background: #FFF7E8; color: #B45309; box-shadow: inset 0 0 0 1px rgba(180, 83, 9, .12); }
.movil-red span { display: inline-flex; gap: 6px; align-items: center; }
.movil-red .ok { display: none; }
.s1 .movil-red, .activa .movil-red.vuelve { background: #EEFBF2; color: #15803D; box-shadow: inset 0 0 0 1px rgba(21, 128, 61, .14); }
.s1 .movil-red .no, .activa .movil-red.vuelve .no { display: none; }
.s1 .movil-red .ok, .activa .movil-red.vuelve .ok { display: inline-flex; }
.tel-mapa { margin: 0 14px 8px; height: 86px; border-radius: 14px; background: #E9F0F2; flex: none; width: calc(100% - 28px); }
.tel-mapa .calle { fill: none; stroke: #fff; stroke-width: 5.5; }
.tel-mapa .calle.fina { stroke-width: 2.2; }
.tel-mapa .calle.media, .mini-mapa--calles .calle.media { stroke-width: 3.4; }
.tel-mapa .calle, .mini-mapa--calles .calle { stroke-linecap: round; stroke-linejoin: round; }
.tel-mapa .parque, .mini-mapa--calles .parque { fill: #D6E8DC; }
.tel-mapa .agua, .mini-mapa--calles .agua { fill: #BCD9EE; }
.mini-mapa--calles { display: block; width: 100%; background: #E9F0F2; }
.mini-mapa--calles .calle { fill: none; stroke: #fff; stroke-width: 5; }
.mini-mapa--calles .calle.fina { stroke-width: 2.2; }
.mini-mapa--calles .ruta { fill: none; stroke: #0891B2; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.mini-mapa--calles .pt { fill: #fff; stroke: #0891B2; stroke-width: 3; }
.mini-mapa--calles .camion { fill: var(--amarillo, #F5B700); stroke: #073349; stroke-width: 2.5; }
.tel-mapa .ruta { fill: none; stroke: #0891B2; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1 0; }
.tel-mapa .pt { fill: #fff; stroke: #0891B2; stroke-width: 3; }
.tel-mapa .pt.hecho { fill: #0891B2; }
.tel-mapa .pt.ahora { fill: var(--amarillo); stroke: #073349; }
.paradas { padding: 0 14px; display: grid; gap: 6px; }
.parada { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 8px 10px; box-shadow: 0 0 0 1px var(--a-raya); }
.parada i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--f-texto); font-style: normal; background: #F1F4F5; color: var(--a-suave); }
.parada.hecha i { background: #0891B2; color: #fff; }
.parada.hecha i svg.i { width: 13px; height: 13px; }
.parada div { display: grid; line-height: 1.25; }
.parada b { font-size: 12.5px; }
.parada .hora { font-size: 11px; color: var(--a-suave); }
.parada.ahora { box-shadow: 0 0 0 1.5px #0891B2, 0 8px 18px -10px rgba(8, 145, 178, .5); }
.parada.ahora i { background: var(--amarillo); color: #073349; }
.parada.ahora .hora { color: #0891B2; font-weight: 600; }
.firma { margin: 8px 14px 0; background: #fff; border-radius: 12px; padding: 8px 10px 4px; box-shadow: 0 0 0 1px var(--a-raya); }
.firma svg { width: 100%; height: 44px; }
.firma path, .firmas path { fill: none; stroke: #13303B; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 0; }
.js-mov .firma path { stroke-dashoffset: 600; }
.js-mov :is(.visto, .activa) .firma path { animation: firmar 1.6s ease forwards .5s; }
@keyframes firmar { to { stroke-dashoffset: 0; } }
.tel-boton { margin: auto 14px 16px; padding: 12px; border-radius: 14px; background: #073349; color: #fff; font-weight: 600; display: flex; gap: 8px; align-items: center; justify-content: center; }
.tel-boton svg.i { color: var(--amarillo); }

/* Fichaje */
.fichaje .reloj-f { position: relative; width: 150px; height: 150px; margin: 4px auto 12px; display: grid; place-items: center; }
.reloj-f svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.reloj-f circle { fill: none; stroke-width: 9; }
.reloj-f .fondo { stroke: #E3EBEE; }
.reloj-f .avance { stroke: #0891B2; stroke-linecap: round; stroke-dasharray: 52.5 100; }
.js-mov .reloj-f .avance { stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s var(--curva) .3s; }
.js-mov :is(.visto, .activa) .reloj-f .avance { stroke-dasharray: 52.5 100; }
.reloj-f div { display: grid; text-align: center; line-height: 1.15; }
.reloj-f b { font: 600 28px/1.1 var(--f-titulo); letter-spacing: -.04em; }
.boton-fichar { margin: 0 14px; padding: 12px; border-radius: 14px; background: var(--amarillo); color: #073349; font-weight: 600; display: flex; gap: 8px; align-items: center; justify-content: center; box-shadow: 0 10px 20px -12px rgba(250, 204, 21, .9); }
.tl-fich { margin: 12px 18px 4px; display: grid; gap: 8px; }
.fich { display: grid; grid-template-columns: 40px 10px 1fr; gap: 8px; align-items: center; }
.fich i { width: 8px; height: 8px; border-radius: 50%; background: #0891B2; box-shadow: 0 0 0 3px rgba(8, 145, 178, .15); }
.fich div { display: flex; gap: 8px; align-items: baseline; }
.semana { margin: 6px 14px 0; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 0 0 1px var(--a-raya); }
.semana-cab { display: flex; justify-content: space-between; margin-bottom: 8px; }
.dias { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dia { display: grid; justify-items: center; gap: 4px; }
.dia .b { width: 100%; height: 40px; border-radius: 6px; background: #EEF3F5; display: flex; align-items: end; overflow: hidden; }
.dia .b i { width: 100%; height: calc(var(--h) * 1%); background: #0891B2; border-radius: 6px; }
.dia.hoy .b i { background: var(--amarillo); }
.tel-pie { margin: auto 0 14px; text-align: center; font-size: 11px; color: var(--a-suave); display: flex; gap: 5px; justify-content: center; align-items: center; }

/* ---------- Documentos (factura y transporte) ---------- */
.documento { --a-fondo: #fff; --a-raya: #E6ECEF; --a-suave: #67818B; --a-texto: #13303B; width: 100%; height: 100%; border-radius: 12px; background: #fff; color: var(--a-texto); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 16px; font: 400 12.5px/1.4 var(--f-texto); box-shadow: 0 0 0 1px rgba(7, 51, 73, .08), 0 50px 90px -40px rgba(2, 16, 26, .65), 0 18px 36px -18px rgba(2, 16, 26, .4); position: relative; overflow: hidden; }
.documento::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #073349, #0891B2); }
.documento small { font-size: 10.5px; color: var(--a-suave); display: block; }
.documento b { font-weight: 600; }
.documento .mono { font-family: var(--f-mono); }
.documento svg.i { width: 13px; height: 13px; }
.doc-cab { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.doc-emisor { display: flex; gap: 10px; align-items: center; }
.doc-emisor div { display: grid; line-height: 1.25; }
.doc-emisor .espacio-logo { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.doc-num { text-align: right; }
.doc-num b { font-size: 15px; }
.doc-meta { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #F6F8F9; }
.doc-lineas .fl { display: grid; grid-template-columns: 1fr 48px 52px 70px; gap: 8px; padding: 8px 0; box-shadow: 0 1px 0 #EEF2F4; }
.doc-lineas .fl.th { font-size: 10.5px; color: var(--a-suave); padding-top: 0; }
.documento .num { text-align: right; }
.documento .suave { color: var(--a-suave); }
.doc-totales { display: grid; gap: 6px; margin-left: 40%; }
.doc-totales div { display: flex; justify-content: space-between; }
.doc-totales span { color: var(--a-suave); }
.doc-totales .total { padding-top: 8px; box-shadow: 0 -1px 0 var(--a-raya); }
.doc-totales .total span { color: var(--a-texto); font-weight: 600; }
.doc-totales .total b { font: 600 19px/1 var(--f-titulo); letter-spacing: -.03em; color: #073349; }
.doc-verifactu { margin-top: auto; display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--a-raya); }
.doc-verifactu div:last-child { display: grid; gap: 4px; justify-items: start; }
.doc-verifactu b { letter-spacing: .04em; }
.qr { background: #fff; padding: 4px; }
.qr svg { width: 100%; height: auto; }
.huella { font-size: 10px; }
.doc-num-l b { font-size: 15px; }
.tramo { position: relative; display: grid; gap: 14px; padding-left: 4px; }
.tramo::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 30px; width: 2px; background: repeating-linear-gradient(#0891B2 0 4px, transparent 4px 8px); }
.punto-t { display: flex; gap: 12px; align-items: start; }
.punto-t > i { width: 12px; height: 12px; border-radius: 50%; margin-top: 3px; background: #fff; box-shadow: inset 0 0 0 3px #0891B2; flex: none; position: relative; }
.punto-t.fin > i { background: #0891B2; }
.punto-t div { display: grid; line-height: 1.3; }
.carga { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 12px; border-radius: 10px; background: #F6F8F9; }
.firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.firmas > div { border-radius: 10px; padding: 8px 10px; box-shadow: inset 0 0 0 1px var(--a-raya); }
.firmas svg { width: 100%; height: 40px; }
.doc-pie { margin-top: auto; display: flex; justify-content: space-between; font-size: 11px; color: var(--a-suave); }
.doc-pie span { display: inline-flex; gap: 5px; align-items: center; }

/* ---------- Chat de Attendea ---------- */
.chat-app .app-cuerpo { flex-direction: column; background: #FAFAFA; }
.chat-cab { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; box-shadow: 0 1px 0 var(--a-raya); }
.chat-conexiones { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--a-suave); }
.chat-conexiones i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chat-conexiones i:last-of-type { margin-right: 4px; }
.chat { flex: 1; min-height: 0; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.burbuja { max-width: 86%; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.burbuja--yo { align-self: flex-end; background: #0A0A0A; color: #fff; border-bottom-right-radius: 5px; }
.burbuja--c2 { align-self: flex-start; background: #fff; box-shadow: 0 0 0 1px var(--a-raya), 0 2px 6px -3px rgba(0,0,0,.08); border-bottom-left-radius: 5px; }
.burbuja--c2 b { font-weight: 600; }
.quien-a { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; margin-bottom: 4px; color: #0A0A0A; }
.a-marca { width: 15px; height: 15px; color: #0A0A0A; }
.fuentes-a { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.fuente-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 6px; background: #F4F4F5; font-size: 10.5px; color: #52525B; }
.fuente-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.js-mov .chat .burbuja { opacity: 0; translate: 0 8px; transition: opacity .4s, translate .4s var(--curva); }
.js-mov .chat .burbuja.dicha { opacity: 1; translate: 0 0; }
.escribiendo { display: none; gap: 4px; }
.escribiendo.dicha { display: inline-flex; }
.escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: #A1A1AA; animation: saltito 1s infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; } .escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes saltito { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -4px; } }
.chat-entrada { margin: 0 12px 12px; display: flex; align-items: center; gap: 8px; padding: 9px 9px 9px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--a-raya), 0 6px 16px -10px rgba(0,0,0,.2); color: #A1A1AA; font-size: 12.5px; }
.chat-entrada span:first-child { flex: 1; }
.chat-entrada .enviar { width: 26px; height: 26px; border-radius: 8px; background: #0A0A0A; color: #fff; display: grid; place-items: center; }
.chat-entrada .enviar svg.i { width: 13px; height: 13px; rotate: -90deg; }

/* ---------- Automatización ---------- */
.flujo-rej { display: grid; grid-template-columns: 1fr 1.05fr .95fr; gap: 12px; align-items: start; }
.flujo-correo, .flujo-resultado { border-radius: 12px; padding: 12px; background: var(--a-fondo); box-shadow: 0 0 0 1px var(--a-raya), 0 8px 20px -14px rgba(7, 51, 73, .3); display: grid; gap: 8px; }
.correo-cab { display: flex; gap: 8px; align-items: center; }
.correo-cab div { display: grid; line-height: 1.2; }
.flujo-correo p { margin: 0; color: var(--a-suave); font-size: 12px; line-height: 1.45; }
.adjunto { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 8px; background: #FFF4F4; color: #B42318; font-size: 11.5px; font-weight: 500; }
.adjunto small { margin-left: auto; color: #D9A3A0; }
.flujo-pasos { position: relative; display: grid; gap: 8px; }
.flujo-pasos::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: linear-gradient(var(--a-acento), var(--a-acento)) 0 0 / 100% var(--prog, 100%) no-repeat, var(--a-raya); }
.paso-f { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px 6px 0; }
.paso-f div { display: grid; line-height: 1.25; }
.paso-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--a-fondo); box-shadow: 0 0 0 1px var(--a-raya); color: var(--a-acento); position: relative; z-index: 1; }
.paso-f:last-child .paso-ico { background: #073349; color: var(--amarillo); box-shadow: none; }
.js-mov .paso-f { opacity: .35; transition: opacity .4s; }
.js-mov :is(.visto, .activa) .paso-f { opacity: 1; transition-delay: calc(var(--n) * 350ms + 200ms); }
.campo { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; box-shadow: 0 1px 0 var(--a-raya-2); font-size: 12px; }
.campo span { color: var(--a-suave); }
.ejecuciones { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--a-lado); }
.barritas { flex: 1; display: flex; gap: 3px; height: 22px; }
.barritas i { flex: 1; border-radius: 3px; background: #22C55E; opacity: .85; }
.barritas i.no { background: #F59E0B; }

/* ---------- Conexiones ---------- */
.conectores-app .app-cuerpo { flex-direction: column; background: radial-gradient(circle at 50% 50%, #F2F8FA, #fff 70%); }
.conectores { position: relative; flex: 1; min-height: 0; margin: 8px 30px 0; background-image: radial-gradient(rgba(7, 51, 73, .12) 1px, transparent 1.2px); background-size: 16px 16px; }
.conectores .lineas { position: absolute; inset: 0; width: 100%; height: 100%; }
.conectores .linea { fill: none; stroke: #C9DCE2; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 4 4; }
.conectores .pulso { fill: none; stroke: #0891B2; stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: .08 1; stroke-dashoffset: 1.08; opacity: 0; }
.js-mov :is(.visto, .activa) .conectores .pulso { animation: pulso 3.2s linear infinite; }
@keyframes pulso { 0% { stroke-dashoffset: 1.08; opacity: 1; } 70% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.nodo-c { position: absolute; translate: -50% -50%; display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 7px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--a-raya), 0 10px 24px -14px rgba(7, 51, 73, .45); white-space: nowrap; }
.nodo-c div { display: grid; line-height: 1.15; }
.nodo-c b { font-size: 12px; }
.nodo-c small { font-size: 10.5px; }
.logo-c { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 12px/1 var(--f-texto); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.ok-c { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 2.5px rgba(34, 197, 94, .2); margin-left: 4px; }
.nodo-c--centro { padding: 12px 16px 12px 12px; background: #073349; color: #fff; box-shadow: 0 0 0 6px rgba(8, 145, 178, .12), 0 20px 40px -16px rgba(7, 51, 73, .7); }
.nodo-c--centro small { color: #8FB3C0; }
.nodo-c--centro .espacio-logo { width: 30px; height: 30px; background: var(--amarillo); color: #073349; }
.registro { flex: none; margin: 10px 16px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--a-raya); padding: 8px 12px; display: grid; gap: 2px; }
.registro-cab { display: flex; justify-content: space-between; padding-bottom: 4px; }
.reg { display: grid; grid-template-columns: 40px 1fr 14px 70px auto; gap: 8px; align-items: center; padding: 4px 0; box-shadow: 0 -1px 0 var(--a-raya-2); font-size: 12px; }
.reg svg.i { width: 12px; height: 12px; color: var(--a-tenue); }

/* ---------- Gráficas ---------- */
.grafico { position: relative; }
.grafico svg { width: 100%; height: auto; display: block; overflow: visible; }
.rejilla line { stroke: var(--a-raya-2); stroke-width: 1; }
.eje { font: 400 9.5px var(--f-texto); fill: var(--a-tenue); }
.area.a1 { fill: url(#none); fill: color-mix(in srgb, #0891B2 14%, transparent); }
.area.a2 { fill: none; }
.trazo { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trazo.a1 { stroke: #0891B2; }
.trazo.a2 { stroke: #B6C6CC; stroke-dasharray: 4 4; stroke-width: 1.5; }
.js-mov .trazo.a1 { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js-mov :is(.visto, .activa) .trazo.a1 { animation: trazar-g 1.6s var(--curva) forwards .3s; }
@keyframes trazar-g { to { stroke-dashoffset: 0; } }
line.guia { stroke: #0891B2; stroke-dasharray: 3 3; opacity: .5; }
.foco { fill: #fff; stroke: #0891B2; stroke-width: 2.5; }
.globo-g { position: absolute; translate: -100% -120%; display: grid; padding: 6px 9px; border-radius: 8px; background: #073349; color: #fff; font-size: 11px; white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(7, 51, 73, .6); }
.globo-g b { font-size: 12.5px; }
.globo-g small { color: #9DC3CF; font-size: 10px; }
.leyenda { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--a-suave); }
.leyenda i { width: 10px; height: 3px; border-radius: 2px; background: #0891B2; margin-left: 6px; }
.leyenda i.a2 { background: #B6C6CC; }
.rejilla-datos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; flex: 1; min-height: 0; }
.familias { display: grid; gap: 11px; }
.fam { display: grid; grid-template-columns: 1fr 60px 36px; gap: 8px; align-items: center; font-size: 12px; }
.fam-barra { height: 7px; border-radius: 9px; background: var(--a-hover); overflow: hidden; }
.fam-barra i { display: block; height: 100%; width: calc(var(--w) * 2.9%); background: var(--c); border-radius: inherit; }

/* ---------- Sistemas (oscuro) ---------- */
.sistemas { background: radial-gradient(120% 80% at 100% 0%, rgba(34, 211, 238, .08), transparent 60%); }
.sistemas .kpi { background: rgba(255,255,255,.03); box-shadow: 0 0 0 1px var(--a-raya); }
.sistemas .panel-app { background: rgba(255,255,255,.03); box-shadow: 0 0 0 1px var(--a-raya); }
.sistemas .kpi .sube { color: #4ADE80; }
.srv { display: grid; grid-template-columns: 150px 1fr 84px; gap: 12px; align-items: center; padding: 5px 0; }
.srv .est { background: none; padding: 0; color: var(--a-texto); font-size: 12px; box-shadow: none; }
.srv .est i { background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.uptime { display: flex; gap: 2px; height: 18px; }
.uptime i { flex: 1; border-radius: 2px; background: #22C55E; opacity: .75; }
.uptime i.m { background: #F59E0B; }
.terminal { border-radius: 10px; background: #050F14; padding: 12px 14px; font: 400 11.5px/1.7 var(--f-mono); color: #9FB6BF; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.terminal .ci { color: #E4EFF3; }
.terminal .ok { color: #4ADE80; }
.terminal .am { color: var(--amarillo); margin-top: 2px; }
.js-mov .terminal > div { opacity: 0; }
.js-mov :is(.visto, .activa) .terminal > div { animation: aparecer .01s forwards; animation-delay: calc(var(--n) * 420ms + 400ms); }

/* ---------- Mapa de procesos ---------- */
.mapa-app .app-cuerpo { background: #FBFCFC; background-image: radial-gradient(rgba(7, 51, 73, .13) 1px, transparent 1.2px); background-size: 18px 18px; }
.lienzo-mapa { position: relative; flex: 1; margin: 18px 18px 18px 64px; }
.carril-m { position: absolute; left: -46px; right: 0; height: 33.33%; box-shadow: 0 1px 0 rgba(7, 51, 73, .1); }
.carril-m span { position: absolute; left: 0; top: 50%; translate: 0 -50%; writing-mode: vertical-rl; rotate: 180deg; font-size: 11px; color: var(--a-suave); font-weight: 500; }
.lienzo-mapa .lineas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lienzo-mapa .linea { fill: none; stroke: #8FB0BB; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.nodo-m { position: absolute; translate: -50% -50%; display: grid; gap: 1px; min-width: 120px; padding: 8px 11px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--a-raya), 0 6px 14px -10px rgba(7, 51, 73, .4); text-align: center; }
.nodo-m b { font-size: 12px; }
.nodo-m.problema { box-shadow: 0 0 0 1.5px #E11D48, 0 6px 14px -8px rgba(225, 29, 72, .4); }
.nodo-m.problema small { color: #E11D48; }
.marca-p { position: absolute; translate: -50% -50%; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #E11D48; color: #fff; font: 600 11px/1 var(--f-texto); box-shadow: 0 0 0 5px rgba(225, 29, 72, .15); }
.nota-m { position: absolute; right: -4px; bottom: 30%; width: 200px; padding: 12px; background: #FEF3A0; color: #3D3200; border-radius: 4px; display: grid; gap: 4px; font-size: 11.5px; rotate: 2deg; box-shadow: 0 14px 24px -14px rgba(61, 50, 0, .5); }
.nota-m .autor { display: flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 10.5px; opacity: .8; }
.cursor-m { position: absolute; display: flex; align-items: start; }
.cursor-m svg { width: 16px; height: 16px; }
.cursor-m path { fill: #7C3AED; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.cursor-m span { margin: 12px 0 0 -2px; padding: 2px 7px; border-radius: 6px; background: #7C3AED; color: #fff; font-size: 10.5px; font-weight: 500; }
.js-mov :is(.visto, .activa) .cursor-m { animation: deriva 6s ease-in-out infinite; }
@keyframes deriva { 50% { translate: 40px 24px; } }
.herramientas-m { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; display: flex; gap: 2px; align-items: center; padding: 5px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--a-raya), 0 10px 24px -12px rgba(7, 51, 73, .4); }
.herramientas-m > span { width: 30px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--a-suave); }
.herramientas-m > span.act { background: #073349; color: #fff; }
.herramientas-m > span.sep { width: 1px; height: 20px; background: var(--a-raya); }
.herramientas-m > span:last-child { width: auto; padding: 0 6px; display: flex; }
.herramientas-m .av + .av { margin-left: -6px; }

/* ---------- Tablero ---------- */
.progreso-p { display: flex; align-items: center; gap: 10px; }
.progreso-p .barra-p { max-width: 380px; }
.tablero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; min-height: 0; }
.columna-t { background: var(--a-lado); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 7px; }
.columna-cab { display: flex; align-items: center; gap: 7px; padding: 2px 4px 4px; font-size: 12px; }
.columna-cab i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--c); }
.tarea { background: #fff; border-radius: 9px; padding: 9px 10px; display: grid; gap: 6px; box-shadow: 0 0 0 1px var(--a-raya), 0 1px 2px rgba(7, 51, 73, .05); }
.tarea b { font-size: 12px; line-height: 1.3; font-weight: 500; }
.tarea-cab { display: flex; justify-content: space-between; align-items: center; }
.prio { font-size: 10px; font-weight: 600; color: #C2410C; background: #FFF4ED; padding: 1px 6px; border-radius: 5px; }
.pie-t { display: flex; justify-content: space-between; align-items: center; }
.js-mov :is(.visto, .activa) .tarea.mueve { animation: mover 5s var(--curva) infinite 1s; }
@keyframes mover { 0%, 30% { translate: 0 0; rotate: 0deg; } 45% { translate: 24px -8px; rotate: 2.5deg; box-shadow: 0 0 0 1px var(--a-raya), 0 20px 30px -12px rgba(7, 51, 73, .4); } 60%, 100% { translate: 0 0; rotate: 0deg; } }

/* ---------- Formación ---------- */
.temario { flex: none; width: 236px; background: var(--a-lado); box-shadow: 1px 0 0 var(--a-raya); padding: 14px 12px; display: grid; align-content: start; gap: 4px; }
.temario-cab { display: grid; gap: 4px; padding: 0 4px 10px; }
.temario-cab b { font-size: 14px; }
.tema { display: grid; grid-template-columns: 22px 1fr auto; gap: 9px; align-items: center; padding: 8px 6px; border-radius: 8px; color: var(--a-suave); }
.tema i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 10px/1 var(--f-texto); font-style: normal; box-shadow: inset 0 0 0 1.4px #C9D5DA; }
.tema.hecho i { background: #0891B2; color: #fff; box-shadow: none; }
.tema.hecho i svg.i { width: 12px; height: 12px; }
.tema.act { background: #fff; color: var(--a-texto); font-weight: 500; box-shadow: 0 0 0 1px var(--a-raya); }
.tema.act i { background: var(--amarillo); color: #073349; box-shadow: none; }
.leccion { gap: 12px; }
.diapositiva { flex: 1; border-radius: 14px; padding: 18px; background: linear-gradient(90deg, #082535, #044060); color: #fff; display: grid; align-content: start; gap: 12px; }
.diapositiva small { color: #8FB3C0; }
.diapositiva h5 { color: #fff; font-size: 20px; }
.prompt, .respuesta { border-radius: 12px; padding: 10px 12px; display: grid; gap: 5px; font-size: 12.5px; line-height: 1.45; }
.prompt { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.prompt .adjunto { justify-self: start; background: rgba(255,255,255,.1); color: #fff; }
.respuesta { background: #fff; color: var(--a-texto); }
.prompt-quien { display: flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 600; color: #8FB3C0; }
.respuesta .prompt-quien { color: var(--a-acento); }
.respuesta .mal { background: #FFF7E8; color: #92400E; border-radius: 6px; padding: 2px 6px; margin-inline: -6px; }
.leccion-pie { display: flex; align-items: center; gap: 10px; }
.leccion-pie .est { margin-left: auto; }

/* ---------- Portal de clientes ---------- */
.portal-app .app-cuerpo { flex-direction: column; background: #F6F8F9; }
.portal-nav { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: #fff; box-shadow: 0 1px 0 var(--a-raya); }
.portal-links { display: flex; gap: 4px; margin-left: 20px; margin-right: auto; color: var(--a-suave); }
.portal-links span { padding: 5px 10px; border-radius: 7px; }
.portal-links .act { background: var(--a-hover); color: var(--a-texto); font-weight: 500; }
.portal-cuerpo { padding: 18px; display: grid; gap: 14px; flex: 1; }
.portal-hola { display: flex; align-items: baseline; gap: 12px; }
.portal-rej { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: start; }
.doc-fila { display: grid; grid-template-columns: 30px 1fr auto 14px; gap: 10px; align-items: center; padding: 8px 0; box-shadow: 0 -1px 0 var(--a-raya-2); }
.doc-fila div { display: grid; line-height: 1.25; }
.doc-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #ECFAFD; color: #0891B2; }
.seguimiento { display: grid; gap: 0; }
.seg { display: grid; grid-template-columns: 18px 1fr; gap: 10px; position: relative; padding-bottom: 12px; }
.seg i { width: 12px; height: 12px; border-radius: 50%; margin-top: 3px; box-shadow: inset 0 0 0 2px #C9D5DA; background: #fff; position: relative; z-index: 1; }
.seg::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: #E3EBEE; }
.seg:last-child::before { display: none; }
.seg.hecho i { background: #0891B2; box-shadow: none; }
.seg.hecho::before { background: #0891B2; }
.seg.ahora i { background: var(--amarillo); box-shadow: 0 0 0 4px rgba(250, 204, 21, .3); }
.seg div { display: grid; line-height: 1.25; }
.mini-mapa { height: 70px; border-radius: 10px; background: #E9F0F2 radial-gradient(circle at 62% 48%, #0891B2 4px, rgba(8, 145, 178, .25) 5px, transparent 14px); background-image: radial-gradient(circle at 62% 48%, #0891B2 4px, rgba(8, 145, 178, .2) 5px, transparent 16px), linear-gradient(115deg, transparent 45%, #fff 45% 48%, transparent 48%), linear-gradient(20deg, transparent 60%, #fff 60% 63%, transparent 63%); }

/* ---------- Diseño de producto ---------- */
.diseno-app .app-cuerpo { background: #EEF2F4; }
.capas, .inspector { flex: none; width: 170px; background: #fff; padding: 12px 10px; display: grid; align-content: start; gap: 3px; box-shadow: 1px 0 0 var(--a-raya); }
.inspector { width: 180px; box-shadow: -1px 0 0 var(--a-raya); gap: 6px; }
.capas small, .inspector small { font-weight: 500; margin: 4px 4px 2px; }
.capa-d { display: flex; gap: 7px; align-items: center; padding: 5px 6px 5px calc(6px + var(--p) * 14px); border-radius: 6px; font-size: 11.5px; color: var(--a-suave); }
.capa-d.act { background: #EEF6FF; color: #1D4ED8; font-weight: 500; }
.capa-d svg.i { width: 12px; height: 12px; }
.lienzo-d { flex: 1; position: relative; display: flex; justify-content: center; align-items: center; gap: 28px; background-image: radial-gradient(rgba(7, 51, 73, .12) 1px, transparent 1.2px); background-size: 16px 16px; }
.marco-d { position: relative; width: 168px; height: 330px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--a-raya), 0 20px 40px -24px rgba(7, 51, 73, .5); padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.et-d { position: absolute; left: 2px; top: -18px; font-size: 10.5px; color: var(--a-suave); }
.boceto i { display: block; height: 10px; border-radius: 4px; background: #E3EAED; }
.boceto i.t { height: 18px; width: 60%; }
.boceto i.c { height: 46px; border-radius: 10px; }
.boceto i.b { margin-top: auto; height: 36px; border-radius: 10px; background: #D3DEE3; }
.pf-cab { display: grid; }
.pf-cab b { font: 600 17px/1.1 var(--f-titulo); letter-spacing: -.03em; color: #073349; }
.pf-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pf-kpi div { display: grid; padding: 8px; border-radius: 10px; background: #F1F6F8; }
.pf-kpi b { font: 600 16px/1.1 var(--f-titulo); color: #073349; }
.pf-lista { display: grid; gap: 4px; font-size: 11px; }
.pf-lista span { display: flex; justify-content: space-between; padding: 5px 0; box-shadow: 0 1px 0 #EEF2F4; }
.pf-boton { position: relative; margin-top: auto; padding: 11px; border-radius: 12px; background: var(--amarillo); color: #073349; text-align: center; font-weight: 600; font-size: 12px; }
.pf-boton.seleccionado { outline: 1.5px solid #2563EB; outline-offset: 3px; }
.medida { position: absolute; left: 50%; bottom: -26px; translate: -50% 0; padding: 1px 5px; border-radius: 4px; background: #2563EB; color: #fff; font-size: 9.5px; font-weight: 500; }
.comentario-d { position: absolute; display: flex; align-items: center; gap: 6px; padding: 5px 9px 5px 5px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 8px 18px -10px rgba(7, 51, 73, .5); font-size: 11px; max-width: 170px; }
.prop { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 6px; align-items: center; font-size: 11px; padding: 0 4px; }
.prop span { color: var(--a-tenue); }
.prop b { padding: 3px 6px; border-radius: 5px; background: var(--a-hover); font-weight: 500; }
.prop--1 { grid-template-columns: auto 1fr; }
.muestras { display: flex; gap: 6px; padding: 0 4px; }
.muestras i { width: 24px; height: 24px; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.muestras i.act { outline: 2px solid #2563EB; outline-offset: 2px; }

/* ---------- Attendea: las apps ---------- */
.app--attendea .app-cuerpo { flex-direction: column; }
.att-app-punto { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.att-top { display: flex; align-items: center; gap: 8px; padding: 9px 14px; box-shadow: 0 1px 0 var(--a-raya); }
.tabs-a { margin-left: auto; display: flex; padding: 3px; gap: 2px; border-radius: 9px; background: #F4F4F5; font-size: 11.5px; color: #71717A; }
.tabs-a span { padding: 4px 10px; border-radius: 6px; }
.tabs-a .act { background: #fff; color: #0A0A0A; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.app--attendea .principal { padding: 14px 16px; }
.app--attendea .kpi .sube { color: #15803D; }

/* Panel */
.panel-rej { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px 1fr; }
.conv-a { padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 1px 0 0 var(--a-raya); background: #FAFAFA; }
.msg-a { padding: 8px 11px; border-radius: 12px; font-size: 12px; line-height: 1.4; }
.msg-a.yo { align-self: flex-end; background: #0A0A0A; color: #fff; border-bottom-right-radius: 4px; max-width: 92%; }
.paso-a { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #52525B; }
.paso-a svg.i { width: 13px; height: 13px; color: #16A34A; }
.paso-a.ahora { color: #0A0A0A; font-weight: 500; }
.girando { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #E4E4E7; border-top-color: #0A0A0A; animation: girar-a 1s linear infinite; }
@keyframes girar-a { to { rotate: 360deg; } }
.aviso-a { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #15803D; font-weight: 500; }
.aviso-a svg.i { width: 13px; height: 13px; }
.entrada-a { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 11px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--a-raya); color: #A1A1AA; font-size: 12px; }
.entrada-a span { width: 22px; height: 22px; border-radius: 7px; background: #0A0A0A; color: #fff; display: grid; place-items: center; }
.entrada-a svg.i { width: 12px; height: 12px; rotate: -90deg; }
.nav-a { display: flex; flex-direction: column; min-width: 0; }
.nav-a-barra { display: flex; gap: 14px; padding: 9px 14px 0; font-size: 11.5px; color: #71717A; box-shadow: 0 1px 0 var(--a-raya); }
.nav-a-barra span { padding-bottom: 8px; }
.nav-a-barra .act { color: #0A0A0A; font-weight: 500; box-shadow: inset 0 -2px 0 #0A0A0A; }
.nav-a-url { display: flex; align-items: center; gap: 6px; margin: 10px 14px 0; padding: 5px 10px; border-radius: 8px; background: #F4F4F5; font: 400 11px/1 var(--f-mono); color: #52525B; }
.nav-a-url svg.i { width: 11px; height: 11px; }
.nav-a-url .vivo { margin-left: auto; font-family: var(--f-texto); }
.web-a { margin: 10px 14px 0; border-radius: 10px; box-shadow: 0 0 0 1px var(--a-raya); overflow: hidden; }
.web-a-nav { display: flex; align-items: center; gap: 12px; padding: 8px 12px; font-size: 11px; color: #52525B; box-shadow: 0 1px 0 var(--a-raya); }
.web-a-nav b { color: #073349; margin-right: auto; font-size: 12px; }
.web-a-nav .btn { padding: 4px 9px; font-size: 10.5px; }
.web-a-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; padding: 14px 12px; background: linear-gradient(90deg, #F2F8FA, #fff); align-items: center; }
.web-a-hero div:first-child { display: grid; gap: 6px; justify-items: start; }
.web-a-hero b { font: 600 18px/1.1 var(--f-titulo); letter-spacing: -.03em; color: #073349; }
.web-a-hero .btn { padding: 5px 10px; font-size: 11px; }
.web-a-foto { height: 92px; border-radius: 10px; background: linear-gradient(160deg, rgba(4, 64, 96, .1), rgba(4, 64, 96, .35)), repeating-linear-gradient(90deg, #D9D2C4 0 22px, #CFC6B6 22px 24px), #D9D2C4; position: relative; overflow: hidden; }
.web-a-foto::after { content: ""; position: absolute; left: 18%; bottom: 0; width: 42%; height: 64%; background: linear-gradient(#ECEFF1, #C8D1D6); box-shadow: 30px 10px 0 -6px #B9C4CA; }
.web-a-cat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 12px 12px; background: #fff; }
.web-a-cat span { display: grid; gap: 4px; font-size: 10.5px; color: #52525B; }
.web-a-cat i { height: 34px; border-radius: 8px; background: #F1F4F5; }
.kanban-a { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 14px 14px; flex: 1; }
.kanban-a > div { border-radius: 9px; background: #FAFAFA; padding: 6px; display: grid; align-content: start; gap: 5px; box-shadow: 0 0 0 1px var(--a-raya-2); }
.kanban-a > div span { height: 16px; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px var(--a-raya); }
.aprobar-a { position: absolute; right: 8px; bottom: 8px; width: 220px; padding: 10px; border-radius: 12px; background: #fff; display: grid; gap: 4px; box-shadow: 0 0 0 1px var(--a-raya), 0 18px 34px -14px rgba(0,0,0,.35); }
.aprobar-a .btn { justify-content: center; margin-top: 4px; }

/* MTK */
.mtk-rej { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.barras-v { display: flex; align-items: end; gap: 5px; height: 92px; }
.barras-v i { flex: 1; height: calc(var(--h) * 1%); border-radius: 4px 4px 2px 2px; background: #E4E4E7; }
.barras-v i:last-child { background: #D8664F; }
.js-mov .barras-v i { scale: 1 0; transform-origin: bottom; transition: scale .8s var(--curva); }
.js-mov :is(.visto, .activa) .barras-v i { scale: 1 1; }
.telegram { align-self: start; border-radius: 14px; background: #1C1C1E; color: #fff; padding: 12px; display: grid; gap: 8px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); rotate: -1.5deg; }
.tg-cab { display: flex; align-items: center; gap: 7px; }
.tg-cab small { color: #8E8E93; margin-left: auto; }
.tg-ico { width: 20px; height: 20px; border-radius: 6px; background: #D8664F; }
.telegram p { margin: 0; font-size: 12px; line-height: 1.45; color: #E5E5EA; }
.tg-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tg-botones span { padding: 6px; border-radius: 8px; background: #2C2C2E; text-align: center; font-size: 11.5px; color: #64D2FF; }
.tabla--mtk .tr { grid-template-columns: 1.6fr .7fr .7fr .7fr .8fr; }

/* ASIR */
.srv-cab { display: flex; align-items: center; gap: 10px; }
.srv-cab b { font-size: 14px; }
.srv-cab .est { margin-left: auto; }
.asir-rej { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; flex: 1; min-height: 0; }
.checks { display: grid; gap: 2px; }
.chk { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px; box-shadow: 0 1px 0 var(--a-raya-2); font-size: 12px; }
.chk svg.i { width: 14px; height: 14px; color: #16A34A; }
.chk em { font-style: normal; font-size: 11px; font-weight: 600; color: #B45309; background: #FFF7E8; padding: 1px 6px; border-radius: 5px; }
.propuesta { display: grid; gap: 9px; align-content: start; }
.propuesta .panel-cab { margin-bottom: 0; }
.propuesta p { margin: 0; font-size: 12px; line-height: 1.45; color: #3F3F46; }
.cmd { padding: 8px 10px; border-radius: 8px; background: #0A0A0A; color: #E4E4E7; }
.cmd::before { content: "$ "; color: #71717A; }
.disco { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.app--attendea .barra-p i { background: #7A8DB8; }
.politica { display: grid; gap: 3px; padding: 8px 10px; border-radius: 10px; background: #FAFAFA; box-shadow: inset 0 0 0 1px var(--a-raya); }
.politica div { display: flex; justify-content: space-between; font-size: 11px; }
.politica span { color: #71717A; }
.botones-a { display: flex; justify-content: flex-end; gap: 6px; }

/* Vídeo */
.video-rej { flex: 1; min-height: 0; display: grid; grid-template-columns: 120px 1fr 190px; }
.herr-v { padding: 12px 10px; display: grid; align-content: start; gap: 4px; box-shadow: 1px 0 0 var(--a-raya); }
.herr-v span { display: flex; gap: 7px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: 11.5px; color: #52525B; }
.herr-v .act { background: #F4F4F5; color: #0A0A0A; font-weight: 500; }
.herr-v svg.i { width: 13px; height: 13px; }
.vista-v { display: grid; place-items: center; background: #F4F4F5; background-image: radial-gradient(rgba(0,0,0,.06) 1px, transparent 1.2px); background-size: 14px 14px; }
.vertical-v { position: relative; width: 150px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; padding: 12px; display: flex; flex-direction: column; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.65)), linear-gradient(160deg, #3B6A7E, #0F2A36 70%); box-shadow: 0 20px 40px -18px rgba(0,0,0,.5); }
.cab-v { display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 500; }
.cab-v i { width: 14px; height: 14px; border-radius: 50%; background: var(--amarillo); }
.titular-v { margin-top: auto; font: 600 17px/1.05 var(--f-titulo); letter-spacing: -.03em; }
.sub-v { margin-top: 6px; font-size: 10.5px; font-weight: 600; }
.sub-v em { font-style: normal; background: var(--amarillo); color: #0A0A0A; padding: 0 3px; border-radius: 3px; }
.tiempo-v { margin-top: 8px; font: 400 9px/1 var(--f-mono); opacity: .7; }
.ajustes-v { padding: 12px; display: grid; align-content: start; gap: 6px; box-shadow: -1px 0 0 var(--a-raya); }
.chips-v { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.chips-v span { padding: 4px 8px; border-radius: 7px; font-size: 11px; box-shadow: 0 0 0 1px var(--a-raya); color: #52525B; }
.chips-v .act { background: #0A0A0A; color: #fff; box-shadow: none; }
.linea-tiempo { position: relative; flex: none; padding: 8px 14px 12px; box-shadow: 0 -1px 0 var(--a-raya); display: grid; gap: 4px; background: #FCFCFC; }
.regla { position: relative; height: 14px; margin-left: 64px; font: 400 9px/1 var(--f-mono); color: #A1A1AA; }
.regla span { position: absolute; translate: -50% 0; }
.regla span:first-child { translate: 0 0; }
.pista-v { display: grid; grid-template-columns: 64px 1fr; align-items: center; }
.pista-v small { font-size: 10.5px; }
.pista-l { position: relative; height: 16px; }
.pista-l i { position: absolute; left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1% - 2px); top: 0; bottom: 0; border-radius: 4px; background: var(--c); color: #fff; font: 500 9.5px/16px var(--f-texto); font-style: normal; padding-left: 6px; overflow: hidden; }
.cabezal { position: absolute; top: 6px; bottom: 8px; width: 2px; background: #E11D48; }
.cabezal::before { content: ""; position: absolute; left: -4px; top: 0; width: 10px; height: 10px; border-radius: 2px 2px 50% 50%; background: #E11D48; }
.js-mov :is(.visto, .activa) .cabezal { animation: avanzar 8s linear infinite; }
@keyframes avanzar { from { left: 64px; } to { left: calc(100% - 16px); } }

/* Pantallas en movimiento: se paran si se pide menos movimiento */
.sin-mov .app *, .sin-mov .telefono *, .sin-mov .documento * { animation: none !important; transition: none !important; }
/* Juego (isla en isométrica) */
.juego { position: relative; width: 100%; height: 100%; }
.juego svg.isla { width: 100%; height: 100%; overflow: visible; }
.juego .agua { animation: ola 4s ease-in-out infinite; }
@keyframes ola { 50% { translate: 0 3px; } }
.juego .avatar { animation: botar 1.4s ease-in-out infinite; transform-box: fill-box; }
@keyframes botar { 50% { translate: 0 -8px; } }
.juego .moneda { animation: girar 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.juego .moneda:nth-of-type(2n) { animation-delay: .5s; }
@keyframes girar { 0%, 100% { scale: 1 1; } 50% { scale: .25 1; } }
.hud { position: absolute; display: flex; gap: 8px; align-items: center; background: rgba(5, 27, 39, .78); color: #fff; border-radius: 12px; padding: 8px 12px; font: 700 13px/1 var(--f-texto); backdrop-filter: blur(6px); box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); }
.hud b { color: var(--amarillo); font-size: 15px; font-variant-numeric: tabular-nums; }
.hud--a { left: 4%; top: 4%; }
.hud--b { right: 4%; top: 4%; }
.hud--c { left: 50%; bottom: 3%; translate: -50% 0; background: var(--amarillo); color: var(--marino); }
.mas10 { position: absolute; left: 56%; top: 30%; font: 800 18px/1 var(--f-titulo); color: var(--amarillo); text-shadow: 0 2px 0 rgba(0,0,0,.3); opacity: 0; }
.js-mov :is(.visto, .activa) .mas10 { animation: subir 2.4s ease-out infinite 1s; }
@keyframes subir { 0% { opacity: 0; translate: 0 10px; } 20% { opacity: 1; } 70% { opacity: 1; translate: 0 -30px; } 100% { opacity: 0; translate: 0 -40px; } }
.sin-mov .juego * { animation: none !important; }


/* Odoo (Attendea) */
.odoo-rej { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px 1fr; }
.resp-a { align-self: flex-start; display: grid; gap: 5px; padding: 9px 11px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--a-raya); font-size: 12px; max-width: 95%; }
.reg-a { display: grid; grid-template-columns: 54px 1fr auto; gap: 6px; padding: 5px 7px; border-radius: 7px; background: #F7F2F6; font-size: 11.5px; }
.reg-a b { color: #714B67; }
.reg-a em { font-style: normal; }
.cambio-a { align-self: stretch; display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1.5px #0A0A0A, 0 14px 28px -16px rgba(0,0,0,.4); }
.cambio-cab { display: flex; justify-content: space-between; align-items: center; }
.diff { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 11.5px; padding: 6px 8px; border-radius: 8px; background: #FAFAFA; }
.diff s { color: #B42318; }
.diff b { color: #0A6B52; background: #E3F8F1; padding: 1px 6px; border-radius: 5px; }
.js-mov :is(.visto, .activa) .cambio-a .btn--negro { animation: halo-a 1.6s ease-in-out infinite 1s; }
@keyframes halo-a { 50% { box-shadow: 0 0 0 5px rgba(10, 10, 10, .12); } }
.odoo-ficha { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.odoo-barra { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.odoo-logo { width: 20px; height: 20px; border-radius: 6px; background: #714B67; }
.odoo-estado { display: flex; justify-content: flex-end; }
.odoo-estado span { padding: 4px 12px 4px 16px; font-size: 11px; color: var(--a-suave); background: #F4F4F5; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%); margin-left: -4px; }
.odoo-estado span.ult { background: #714B67; color: #fff; }
.odoo-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.odoo-campos div { display: grid; gap: 2px; padding-bottom: 6px; box-shadow: 0 1px 0 var(--a-raya-2); }
.odoo-campos b { display: flex; gap: 6px; align-items: center; font-weight: 500; }
.odoo-ficha .tabla .tr { grid-template-columns: 1.6fr .5fr .6fr .8fr; }
.odoo-total { display: flex; justify-content: flex-end; gap: 18px; align-items: baseline; }
.odoo-total b { font: 600 18px/1 var(--f-titulo); letter-spacing: -.03em; }

/* ---------- Planta: cuadrante de turnos ---------- */
.cuadrante { border-radius: 10px; box-shadow: 0 0 0 1px var(--a-raya); overflow: hidden; }
.cuad-fila { display: grid; grid-template-columns: 1.05fr repeat(3, 1fr); align-items: stretch; min-height: 38px; box-shadow: 0 1px 0 var(--a-raya-2); }
.cuad-fila:last-child { box-shadow: none; }
.cuad-fila > span { padding: 6px 10px; min-width: 0; }
.cuad-fila > span + span { box-shadow: -1px 0 0 var(--a-raya-2); }
.cuad-cab { min-height: 0; background: var(--a-lado); font-size: 11px; color: var(--a-suave); font-weight: 500; box-shadow: 0 1px 0 var(--a-raya); }
.cuad-puesto { display: grid; align-content: center; line-height: 1.2; }
.cuad-puesto small { font-size: 10.5px; }
.turno { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.turno b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.turno .av { width: 22px; height: 22px; font-size: 9.5px; }
.turno--vacio { color: var(--a-tenue); font-size: 11px; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--a-raya-2) 6px 7px); }
.cuad-fila > .turno--hueco { display: grid; gap: 3px; align-content: center; background: #FFFBEA; box-shadow: inset 2px 0 0 var(--amarillo); }
.hueco-a { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #B45309; font-weight: 500; }
.hueco-a svg.i { width: 11px; height: 11px; }
.hueco-b { display: flex; align-items: center; gap: 6px; }
.hueco-b .av { width: 20px; height: 20px; font-size: 9px; }
.hueco-b b { font-weight: 600; }
.hueco-b em { font-style: normal; font-size: 10px; color: #6D28D9; background: #F3EFFE; padding: 1px 6px; border-radius: 5px; }
.sugerencia-p { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--a-lado); box-shadow: 0 0 0 1px var(--a-raya); font-size: 12px; }
.sugerencia-p > svg.i { color: #B45309; }
.sugerencia-p > span:nth-child(2) { flex: 1; min-width: 0; }
.js-mov :is(.visto, .activa) .hueco-b { animation: propone 6s var(--curva) infinite 1.2s; }
@keyframes propone { 0%, 12% { opacity: 0; translate: 0 4px; } 22%, 100% { opacity: 1; translate: 0 0; } }
.sin-mov .hueco-b { animation: none; }

/* ---------- Registro de viajeros ---------- */
.rv { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rv-top { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; box-shadow: 0 1px 0 var(--a-raya); flex: none; }
.rv-top > b { font-size: 13px; margin-right: 10px; }
.rv-top nav { display: flex; gap: 4px; }
.rv-top nav span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: var(--a-suave); }
.rv-top nav span.act { background: var(--a-hover); color: var(--a-texto); font-weight: 500; }
.rv-top nav svg.i { width: 13px; height: 13px; }
.rv-aloj { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.rv-cuerpo { flex: 1; min-height: 0; display: flex; }
.rv-tabla .tr { grid-template-columns: 18px 1.9fr .5fr 1fr .6fr 1.5fr; height: 44px; }
.rv-nom { display: grid; line-height: 1.2; min-width: 0; }
.rv-nom b, .rv-nom small { overflow: hidden; text-overflow: ellipsis; }
.rv-lado { width: 240px; flex: none; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--a-lado); box-shadow: -1px 0 0 var(--a-raya); }
.rv-lado h6 { margin: 0; font: 600 13px/1.2 var(--f-texto); }
.rv-resumen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rv-resumen div { display: grid; padding: 8px; border-radius: 8px; background: var(--a-fondo); box-shadow: 0 0 0 1px var(--a-raya); }
.rv-resumen b { font: 600 17px/1.1 var(--f-titulo); }
.rv-barra { display: flex; height: 6px; border-radius: 99px; overflow: hidden; gap: 2px; }
.rv-barra i { width: calc(var(--w) * 1%); background: var(--c); }
.rv-lote { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 9px 10px; border-radius: 9px; background: var(--a-fondo); box-shadow: 0 0 0 1px var(--a-raya); }
.rv-lote > div { display: contents; }
.rv-lote small { grid-column: 1 / -1; grid-row: 2; }
.rv-tabla .tr > .est { justify-self: start; }
.rv-lote .mono { font-size: 11px; }
.rv-lote .est { font-size: 10.5px; padding: 2px 7px 2px 6px; }
.rv-corregir { justify-content: center; color: #BE123C; margin-top: auto; }

/* ---------- Horeca: pantalla de cocina ---------- */
.kds { display: flex; flex-direction: column; flex: 1; min-width: 0; background: var(--a-lado); }
.kds-top { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; background: var(--a-fondo); box-shadow: 0 1px 0 var(--a-raya); flex: none; }
.kds-logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #FFF7E8; color: #B45309; }
.kds-top > div { display: grid; line-height: 1.2; }
.kds-top > div b { font: 600 15px/1.1 var(--f-titulo); letter-spacing: -.02em; }
.kds-cont { display: flex; gap: 6px; margin-right: auto; margin-left: 8px; }
.kds-cont span { font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 6px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, white); }
.kds-stock { color: #B45309; background: #FFF7E8; box-shadow: none; }
.kds-hora { font-size: 13px; color: var(--a-texto); }
.kds-rej { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr) 200px; gap: 10px; padding: 12px; }
.kds-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kds-comanda { border-radius: 10px; background: var(--a-fondo); box-shadow: 0 0 0 1px var(--a-raya), 0 2px 6px rgba(7, 51, 73, .06); overflow: hidden; }
.kds-cab { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; padding: 8px 10px; background: var(--c); color: #fff; }
.kds-cab b { font: 600 13px/1.2 var(--f-mono); }
.kds-cab span { font-weight: 600; }
.kds-cab small { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; }
.kds-cab small svg.i { width: 11px; height: 11px; }
.kds-alerta { display: flex; align-items: center; gap: 5px; padding: 5px 10px; background: #FFF0F2; color: #BE123C; font-size: 10.5px; font-weight: 600; }
.kds-alerta svg.i { width: 11px; height: 11px; }
.kds-grupo { padding: 6px 10px 2px; font-size: 10px; font-weight: 600; color: var(--a-tenue); letter-spacing: .02em; }
.kds-item { display: flex; align-items: flex-start; gap: 7px; padding: 4px 10px; }
.kds-item b { min-width: 12px; }
.kds-item > span:not(.kds-nuevo) { display: grid; flex: 1; }
.kds-item em { font-style: normal; font-size: 10.5px; color: #BE123C; }
.kds-check { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--a-tenue); flex: none; margin-top: 2px; }
.kds-item.hecho { color: var(--a-tenue); }
.kds-item.hecho span { text-decoration: line-through; }
.kds-item.hecho .kds-check { background: #16A34A; box-shadow: none; }
.kds-nuevo { font-size: 9.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #FEF3C7; color: #92400E; }
.kds-pie { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 10px 10px; padding: 6px; border-radius: 7px; background: var(--a-hover); font-size: 11px; font-weight: 500; color: var(--a-suave); }
.kds-comanda--hecha { opacity: .75; }
.kds-comanda--hecha .kds-pie { background: #EEFBF2; color: #15803D; }
.kds-prod { border-radius: 10px; background: var(--a-fondo); box-shadow: 0 0 0 1px var(--a-raya); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.kds-buscar { display: flex; align-items: center; gap: 6px; margin: 6px 0; padding: 6px 8px; border-radius: 7px; box-shadow: 0 0 0 1px var(--a-raya); color: var(--a-tenue); font-size: 11px; }
.kds-buscar svg.i { width: 12px; height: 12px; }
.kds-prod-f { display: flex; gap: 10px; padding: 5px 2px; box-shadow: 0 1px 0 var(--a-raya-2); }
.kds-prod-f b { color: #EA580C; min-width: 12px; }
.js-mov :is(.visto, .activa) .kds-comanda:first-child { animation: kds-entra 7s var(--curva) infinite 1s; }
@keyframes kds-entra { 0%, 6% { opacity: 0; translate: 0 -10px; } 14%, 100% { opacity: 1; translate: 0 0; } }

/* ---------- Belcita: agenda ---------- */
.ag { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 10px; box-shadow: 0 0 0 1px var(--a-raya); overflow: hidden; }
.ag-cab { display: grid; grid-template-columns: 44px repeat(6, 1fr); background: var(--a-lado); box-shadow: 0 1px 0 var(--a-raya); font-size: 11px; color: var(--a-suave); font-weight: 500; }
.ag-cab span { padding: 7px 8px; }
.ag-cab .hoy { color: var(--a-prim); font-weight: 600; box-shadow: inset 0 -2px 0 var(--a-prim); }
.ag-cuerpo { flex: 1; display: grid; grid-template-columns: 44px 1fr; min-height: 0; }
.ag-horas { display: grid; grid-template-rows: repeat(7, 1fr); font-size: 10px; color: var(--a-tenue); }
.ag-horas span { padding: 2px 6px; }
.ag-rej { position: relative; background-image: linear-gradient(var(--a-raya-2) 1px, transparent 1px), linear-gradient(90deg, var(--a-raya-2) 1px, transparent 1px); background-size: calc(100% / 6) calc(100% / 7); }
.ag-cita { position: absolute; left: calc(var(--d) * 100% / 6 + 3px); width: calc(100% / 6 - 6px); top: calc(var(--h) * 100% / 7 + 2px); height: calc(var(--dur) * 100% / 7 - 4px);
  border-radius: 7px; padding: 4px 7px; display: grid; align-content: start; gap: 0; overflow: hidden; line-height: 1.25;
  background: color-mix(in srgb, var(--c) 11%, white); box-shadow: inset 2px 0 0 var(--c); color: color-mix(in srgb, var(--c) 70%, black); }
.ag-cita b { font-size: 10px; font-weight: 600; }
.ag-cita span { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-cita small { font-size: 10px; color: inherit; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-cita--prevista { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 8%, white) 0 6px, white 6px 12px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, white); }
.ag-ahora { position: absolute; left: calc(3 * 100% / 6); width: calc(100% / 6); top: calc(3.4 * 100% / 7); height: 2px; background: #E11D48; }
.ag-ahora::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #E11D48; }
.ag-aviso { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #EEFBF2; font-size: 12px; }
.ag-aviso > svg.i { color: #15803D; }
.ag-aviso > span:not(.est) { flex: 1; }

/* ---------- Red Raíz: embudo ---------- */
.inmo-tablero { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inmo-tablero .tarea { min-width: 0; }
.lead .pie-t .mono { white-space: nowrap; }
.lead { gap: 7px; }
.lead .cli { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.lead .cli b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead .av { width: 20px; height: 20px; font-size: 9px; }
.lead-origen { font-size: 9.5px; color: var(--a-suave); background: var(--a-hover); padding: 1px 5px; border-radius: 4px; flex: none; }
.lead-inm { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--a-suave); line-height: 1.3; }
.lead-inm svg.i { width: 12px; height: 12px; }
.lead .pie-t .mono { font-size: 11px; color: var(--a-texto); font-weight: 500; }
.lead .est { font-size: 10px; padding: 1px 6px; }
.lead-ia { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 500; color: #6D28D9; background: #F3EFFE; padding: 3px 7px; border-radius: 6px; justify-self: start; }
.lead-ia svg.i { width: 11px; height: 11px; }

/* ---------- El «antes»: hoja de cálculo compartida, con correos y un pósit ---------- */
.hoja-app .app-cuerpo { display: block; position: relative; background: #fff; }
.hoja { position: relative; height: 100%; font-size: 12.5px; color: #1F2937; }
.hoja-menu { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-bottom: 1px solid #E5E7EB; background: #F3F6F4; color: #4B5563; }
.hoja-menu b { color: #14532D; font-weight: 600; margin-right: 8px; }
.hoja-aviso { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #B45309; }
.hoja-aviso .i { width: 14px; height: 14px; }
.hoja-formula { display: flex; gap: 10px; align-items: center; padding: 6px 14px; border-bottom: 1px solid #E5E7EB; color: #6B7280; }
.hoja-celda { border: 1px solid #D1D5DB; padding: 1px 8px; color: #111827; }
.hoja-fx { color: #111827; font-variant-numeric: tabular-nums; }
.hoja-rejilla { display: grid; }
.hoja-fila { display: grid; grid-template-columns: 34px 62px 150px 140px 70px 80px 1fr; border-bottom: 1px solid #E5E7EB; }
.hoja-fila > span { padding: 7px 8px; border-right: 1px solid #E5E7EB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.hoja-fila > span:first-child { background: #F3F4F6; color: #6B7280; text-align: center; }
.hoja-fila--cols > span { background: #F3F4F6; color: #6B7280; text-align: center; padding: 4px; }
.hoja-fila--cab > span:not(:first-child) { font-weight: 600; background: #ECFDF5; }
.hoja-fila--amarilla > span:not(:first-child) { background: #FEF9C3; }
.hoja-fila--repe > span:not(:first-child) { background: #FEE2E2; }
.hoja-fila--error > span:nth-child(5) { color: #B91C1C; font-weight: 600; }
.hoja-fila--error > span:nth-child(7) { color: #fff; background: #DC2626; font-weight: 600; }
.hoja-pestanas { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 2px; padding: 0 10px; background: #F3F4F6; border-top: 1px solid #E5E7EB; }
.hoja-pestanas span { padding: 7px 14px; color: #6B7280; }
.hoja-pestanas .act { background: #fff; color: #14532D; font-weight: 600; box-shadow: inset 0 2px 0 #16A34A; }
.hoja-nota { position: absolute; right: 26px; bottom: 58px; width: 190px; padding: 14px 14px 18px; background: #FDE68A; color: #3F3A1D; font: 500 14px/1.35 var(--f-texto, system-ui); rotate: 3deg; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .35); }
.hoja-correo { position: absolute; right: 18px; top: 92px; display: flex; gap: 10px; align-items: flex-start; width: 250px; padding: 12px 14px; background: #fff; border-radius: 10px; box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15, 23, 42, .06); }
.hoja-correo .i { width: 18px; height: 18px; color: #2563EB; flex: none; margin-top: 2px; }
.hoja-correo b { display: block; font-weight: 600; } .hoja-correo small { color: #6B7280; }
.hoja-comentario { position: absolute; left: 470px; top: 318px; width: 180px; padding: 9px 11px; background: #fff; border-left: 3px solid #F59E0B; border-radius: 4px; box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .3); color: #374151; }
.hoja-comentario b { display: block; color: #92400E; font-weight: 600; font-size: 11.5px; }
.mini-mapa.mini-mapa--calles { background: #E9F0F2; height: 70px; }

/* ---------- PsicoGestión: ficha del paciente ---------- */
.ps-app { --a-acento: #2F88A5; }
.ps-app .cab-app h5 { display: flex; align-items: center; gap: 8px; }
.ps-app .cab-app h5 .av { width: 26px; height: 26px; font-size: 10px; }
.ps-tabs { margin: 12px 0 10px; width: max-content; }
.ps-linea { display: grid; gap: 8px; position: relative; }
.ps-linea::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--a-raya); }
.ps-l { position: relative; display: grid; grid-template-columns: 16px 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px 9px 0; border-radius: 10px; }
.ps-l > i { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #2F88A5; z-index: 1; }
.ps-l--fact > i { box-shadow: inset 0 0 0 3px #16A34A; }
.ps-l--cuest > i { box-shadow: inset 0 0 0 3px #C4623F; }
.ps-l--cita > i { background: #2F88A5; }
.ps-l b { display: block; font-weight: 600; }
.ps-l small { color: var(--a-suave); }
.ps-l > span:last-child, .ps-l > .est { justify-self: end; display: inline-flex; gap: 5px; align-items: center; font-size: 11px; color: var(--a-suave); }
.ps-l--sesion { background: #F2F8FA; box-shadow: inset 0 0 0 1px #D5E7EE; }

/* ---------- Dictaparte: el móvil del técnico ---------- */
.dictado { background: #F4F4F2; }
.dp-preg { margin: 6px 14px 0; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--a-raya); }
.dp-preg small { display: block; color: var(--a-suave); font-size: 10.5px; }
.dp-preg b { font-size: 14px; }
.dp-onda { display: flex; align-items: center; justify-content: center; gap: 3px; height: 54px; margin: 12px 18px 0; }
.dp-onda i { width: 4px; height: calc(var(--h) * 1%); border-radius: 4px; background: #F2B705; }
.js-mov .visto .dp-onda i, .js-mov .activa .dp-onda i { animation: dp-onda 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--h) * -12ms); }
@keyframes dp-onda { to { scale: 1 .35; } }
.dp-tiempo { text-align: center; font-size: 12px; color: var(--a-suave); margin-top: 4px; }
.dp-grabar { margin: 10px auto 0; width: 92px; height: 92px; border-radius: 50%; background: #F2B705; color: #1F2429; display: grid; place-items: center; align-content: center; gap: 2px; font-weight: 600; font-size: 11px; box-shadow: 0 0 0 8px rgba(242, 183, 5, .22), 0 12px 24px -10px rgba(120, 90, 0, .6); }
.dp-grabar svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dp-pasos { display: grid; gap: 5px; margin: 14px 18px 0; }
.dp-paso { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--a-suave); }
.dp-paso i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px #C9CFD3; }
.dp-paso i svg { width: 10px; height: 10px; }
.dp-paso.hecho { color: var(--a-texto); }
.dp-paso.hecho i { background: #2F6DB5; color: #fff; box-shadow: none; }
.dp-paso.ahora { color: var(--a-texto); font-weight: 600; }
.dp-paso.ahora i { box-shadow: inset 0 0 0 4px #F2B705; }
.dp-parte { margin: 12px 14px 0; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--a-raya); display: grid; gap: 4px; font-size: 11.5px; }
.dp-parte div { display: flex; justify-content: space-between; color: var(--a-suave); }

/* ---------- Vídeo para clubes: la app de tele ---------- */
.ott { width: 100%; height: 100%; display: flex; border-radius: 14px; overflow: hidden; background: #0B1830; color: #DDE6F5; font: 400 12.5px/1.35 var(--f-texto); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -30px rgba(0,0,0,.7); }
.ott-lado { width: 64px; flex: none; display: grid; align-content: start; justify-items: center; gap: 18px; padding-top: 18px; background: #08122A; }
.ott-lado > span { color: #6F82A6; }
.ott-lado > span.act { color: #fff; }
.ott-lado .i { width: 18px; height: 18px; }
.ott-escudo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #22C55E, #15803D); color: #fff; font-weight: 700; font-size: 11px; }
.ott-cuerpo { flex: 1; min-width: 0; padding: 22px 0 18px 26px; display: grid; gap: 16px; align-content: start; }
.ott-dest { padding: 18px 20px; margin-right: 26px; border-radius: 14px; min-height: 170px; display: grid; align-content: end; gap: 6px; background: linear-gradient(90deg, rgba(8, 18, 42, .95) 30%, rgba(8, 18, 42, .2)), radial-gradient(80% 120% at 85% 30%, #2C6E49, #0D2A4E 60%); }
.ott-dest h5 { font: 700 22px/1.05 var(--f-texto); text-transform: uppercase; letter-spacing: .01em; color: #fff; max-width: 70%; }
.ott-dest p { color: #A9B8D3; max-width: 60%; }
.ott-vivo { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 3px 9px; border-radius: 99px; background: #DC2626; color: #fff; font-weight: 600; font-size: 10.5px; }
.ott-vivo i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ott-botones { display: flex; gap: 8px; margin-top: 6px; }
.ott-b { padding: 7px 14px; border-radius: 8px; background: rgba(255,255,255,.1); font-weight: 600; font-size: 11.5px; }
.ott-b--prim { background: #fff; color: #0B1830; box-shadow: 0 0 0 3px #22C55E; }
.ott-fila h6 { font-weight: 600; font-size: 12.5px; color: #fff; margin-bottom: 8px; }
.ott-carril { display: flex; gap: 10px; overflow: hidden; }
.ott-t { flex: none; width: 190px; aspect-ratio: 16 / 9; border-radius: 10px; padding: 10px; display: grid; align-content: end; gap: 2px; background: linear-gradient(180deg, transparent 35%, rgba(5, 12, 28, .9)), linear-gradient(calc(120deg + var(--k) * 40deg), #1E4D7A, #123156 60%, #2A5F45); }
.ott-t b { color: #fff; font-size: 11.5px; }
.ott-t small { color: #9FB0CC; font-size: 10.5px; }
.ott-eti { width: max-content; padding: 2px 7px; border-radius: 5px; background: rgba(255,255,255,.14); font-size: 9.5px; margin-bottom: auto; }

/* ---------- Incognito: la papeleta del amigo invisible ---------- */
.sorteo { background: #FBF7F2; }
.so-cab { margin: 6px 18px 0; display: grid; gap: 2px; }
.so-cab small { color: var(--a-suave); font-size: 10.5px; }
.so-cab b { font-size: 15px; }
.so-cab span { color: var(--a-suave); font-size: 11px; }
.so-papeleta { position: relative; margin: 14px 14px 0; padding: 18px 16px; border-radius: 16px; text-align: center; display: grid; gap: 4px; background: #fff; box-shadow: 0 0 0 1px #EFE4D6, 0 14px 28px -16px rgba(120, 70, 20, .45); }
.so-papeleta::before, .so-papeleta::after { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #FBF7F2; box-shadow: inset 0 0 0 1px #EFE4D6; }
.so-papeleta::before { left: -8px; } .so-papeleta::after { right: -8px; }
.so-papeleta small { color: var(--a-suave); }
.so-papeleta b { font-size: 30px; line-height: 1.1; color: #B4232F; }
.so-tope { width: max-content; margin: 4px auto 0; padding: 3px 10px; border-radius: 99px; background: #FDECEC; color: #B4232F; font-size: 11px; font-weight: 600; }
.so-deseos { margin: 14px 18px 0; display: grid; gap: 8px; }
.so-deseos ul { display: grid; gap: 6px; }
.so-deseos li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #EFE4D6; }
.so-deseos .i { color: #B4232F; }
.so-abiertas { margin: 14px 18px 0; display: grid; gap: 5px; font-size: 11px; color: var(--a-suave); }
.so-barra { height: 6px; border-radius: 6px; background: #EFE4D6; overflow: hidden; }
.so-barra i { display: block; width: calc(var(--w) * 1%); height: 100%; background: #B4232F; }
.so-boton { background: #B4232F; }
.ps-candado { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #236D88; font-weight: 600; }
