/* ── PO5 · Los tres a la vez (producto) · estilos (16-10). Tres ventanas tipo SAP Fiori (letra del sistema, como hero-masa) sobre
      el fondo gris claro de las escenas del hero. Las cifras y los códigos de Talky en Martian Mono. Sin will-change: las ventanas
      se rasterizan a su escala final y se ven nítidas ── */
:root {
  --tinta: #1D2D3E; --gris: #556B82; --gris2: #8396A8; --linea: #E5E5E5; --linea2: #EEEEEE; --azul: #0064D9;
  --marino: #16224F; --naranja: #F87444; --rosa: #FCDCE4; --aro: #B9C2CC;
  --sis: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #D8DADF; overflow: hidden; }
body { position: relative; font-family: var(--sis); color: var(--tinta); -webkit-font-smoothing: antialiased; }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; overflow: hidden;
  background: radial-gradient(95% 85% at 50% 40%, #F5F6F8 0%, #E5E7EB 50%, #CCCFD6 100%); }
#mundo { position: absolute; inset: 0; }
.vig { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 40%, rgba(16, 25, 56, 0) 58%, rgba(16, 25, 56, .14) 100%); }
#guia { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed #F3572F; display: none; }

/* ── la ventana (560 × 470) ── */
.win { position: absolute; left: 0; top: 0; width: 560px; height: 470px; border-radius: 14px; overflow: hidden; background: #fff; transform-origin: 0 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 40px 90px -40px rgba(16, 25, 56, .55), 0 6px 16px -8px rgba(16, 25, 56, .18); }
.shell { height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 18px; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.shell .sap { height: 22px; width: auto; display: block; }
/* 16-10: el sello de los tres ERP (SAP · Oracle · Dynamics 365), con las proporciones de hero-masa */
.shell .erp3 { display: flex; align-items: center; gap: 11px; min-width: 0; }
.shell .erp3 img { display: block; width: auto; flex: none; }
.shell .erp3 img.s { height: 21px; } .shell .erp3 img.o { height: 11px; }
.shell .erp3 i { width: 1px; height: 18px; flex: none; background: rgba(16, 25, 56, .14); }
.shell .erp3 .ms { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--sis); color: #5E6377; white-space: nowrap; }
.shell .erp3 .ms img { height: 14px; }
.shell .t { font: 600 15px var(--sis); color: var(--tinta); }
.shell .tk { margin-left: auto; height: 17px; width: auto; display: block; }
.cab { position: relative; height: 80px; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.cab h1 { position: absolute; left: 22px; right: 22px; top: 15px; margin: 0; display: flex; align-items: baseline; font: 600 20px var(--sis); letter-spacing: -.01em; }
.cab h1 .n { margin-left: 6px; font-variant-numeric: tabular-nums; }
.cab h1 .cta { margin-left: auto; font: 500 15px var(--mono); color: var(--tinta); }
.cab h1 .cta small { font-size: 13px; color: var(--gris); }
.cab .sub, .cab .fin { position: absolute; left: 22px; top: 49px; height: 20px; display: flex; align-items: center; gap: 8px; font: 400 13.5px var(--sis); color: var(--gris); }
.cab .fin { color: var(--marino); font-weight: 600; font-size: 14px; opacity: 0; }
.cab .barra { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.cab .barra i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--marino); transform-origin: 0 0; transform: scaleX(0); }
.th { position: relative; height: 34px; border-bottom: 1px solid var(--linea); font: 600 12.5px var(--sis); color: var(--gris); white-space: nowrap; }
.th span { position: absolute; top: 9px; }
.velo { position: absolute; inset: 0; background: #E6E8EC; opacity: 0; pointer-events: none; z-index: 5; }
.cuerpo { position: absolute; left: 0; right: 0; top: 166px; bottom: 0; overflow: hidden; }

/* el check marino y el aro de lo pendiente */
.ok { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--marino); display: grid; place-items: center; }
.ok svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.aro { width: 16px; height: 16px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--aro); }

/* ── las filas ── */
.fi { position: absolute; left: 0; right: 0; top: 0; border-bottom: 1px solid var(--linea2); background: #fff; white-space: nowrap; }
.fi .luz { position: absolute; inset: 0; background: var(--rosa); opacity: 0; }
.fi .mar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--naranja); opacity: 0; }
.fi .ln { position: absolute; left: 22px; right: 22px; height: 20px; display: flex; align-items: center; gap: 12px; }
.fi .mono { font: 400 12.5px var(--mono); }
.fi .doc { color: var(--azul); }
.fi .txt { font: 500 15px var(--sis); color: var(--tinta); overflow: hidden; text-overflow: ellipsis; }
.fi .txt small { font: 400 14px var(--sis); color: var(--gris); }
.fi .imp { margin-left: auto; font: 600 15px var(--sis); font-variant-numeric: tabular-nums; }
.fi .cods { display: flex; gap: 9px; font: 400 11.5px var(--mono); }
.fi .cods b { font-weight: 400; opacity: 0; }
.fi .st { position: relative; margin-left: auto; width: 172px; height: 20px; flex: none; }
.fi .st > span { position: absolute; right: 0; top: 0; height: 20px; display: flex; align-items: center; gap: 7px; font: 600 13px var(--sis); }
.fi .st .p { color: var(--gris2); font-weight: 500; }
.fi .st .d { color: var(--marino); opacity: 0; }
.fi .st .d em { font: 400 11.5px var(--mono); color: var(--gris); font-style: normal; }

/* cobros: el caso con sus tres facturas */
.fi .it { position: absolute; left: 44px; width: 290px; height: 22px; display: flex; align-items: center; gap: 10px; }
.fi .it .c { position: relative; width: 18px; height: 18px; flex: none; }
.fi .it .c > * { position: absolute; left: 0; top: 0; }
.fi .it .c .aro { left: 1px; top: 1px; }
.fi .it .c .ok { opacity: 0; }
.fi .it .mono { font-size: 13px; }
.fi .it .v { margin-left: auto; font: 500 14.5px var(--sis); font-variant-numeric: tabular-nums; }
.fi .resto { font: 400 13.5px var(--sis); color: var(--gris); font-variant-numeric: tabular-nums; }

/* conciliación: una línea por movimiento */
.fc .cel { position: absolute; top: 12px; height: 20px; display: flex; align-items: center; }
.fc .fe { left: 22px; font: 400 12px var(--mono); color: var(--gris); }
.fc .de { left: 86px; width: 150px; font: 500 14.5px var(--sis); overflow: hidden; }
.fc .im { left: 236px; width: 110px; justify-content: flex-end; font: 600 14.5px var(--sis); font-variant-numeric: tabular-nums; }
.fc .ma { left: 368px; font: 400 12px var(--mono); }
.fc .ma.t { font: 500 13.5px var(--sis); }
.fc .co { left: 452px; font: 400 11.5px var(--mono); }
.fc .ck { right: 22px; width: 18px; justify-content: center; }
.fc .ck > * { position: absolute; }
.fc .ck .ok { opacity: 0; }

/* 16-10 (Héctor): vidrio líquido. Cada ventana es un bloque de cristal que pinta la capa de vidrio (../vidrio/vidrio.js) debajo;
   aquí la ventana y sus filas quedan transparentes, las barras de cristal claro. El velo de la ventana apagada, un poco traslúcido */
.win { background: none; box-shadow: none; }
.fi { background: none; }
.shell { background: rgba(255, 255, 255, .38); border-bottom-color: rgba(16, 25, 56, .07); }
.cab { background: rgba(255, 255, 255, .18); border-bottom-color: rgba(16, 25, 56, .07); }
.th { border-bottom-color: rgba(16, 25, 56, .07); }
.fi { border-bottom-color: rgba(16, 25, 56, .055); }
.velo { background: rgba(230, 232, 237, .9); }
.sin-gl .win { background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .6), 0 40px 90px -40px rgba(16, 25, 56, .55); }

/* 20-10 (Héctor: «que las animaciones no se recorten en el móvil»; luego «que la mejores y que funcione mejor»): en vertical
   (body.v) cada ventana es una tarjeta compacta de 331 de ancho (las medidas las pone tres.js): la barra con el sello de los
   tres ERP y Talky más pequeña, el título con su contador, una o dos filas en dos líneas cortas y, al acabar, el cierre en el
   sitio de las filas. Sin subtítulo ni cabecera de tabla. A escala 1 nada baja de 11 px */
.v .win { border-radius: 12px; }
.v .shell { height: 30px; gap: 10px; padding: 0 12px; }
.v .shell .erp3 { gap: 8px; }
.v .shell .erp3 img.s { height: 15px; } .v .shell .erp3 img.o { height: 8.5px; }
.v .shell .erp3 i { height: 13px; }
.v .shell .erp3 .ms { gap: 5px; font-size: 11px; } .v .shell .erp3 .ms img { height: 11px; }
.v .shell .tk { height: 13px; }
.v .cab { height: 30px; }
.v .cab h1 { left: 12px; right: 12px; top: 6px; font-size: 15px; }
.v .cab h1 .cta { font-size: 13px; } .v .cab h1 .cta small { font-size: 11px; }
.v .cab .sub, .v .th { display: none; }
.v .cab .fin { left: 12px; z-index: 2; font-size: 13px; }
.v .cab .fin .ok { width: 16px; height: 16px; }
.v .cuerpo { top: 60px; bottom: 4px; }
.v .fi .ln { left: 12px; right: 12px; gap: 8px; }
.v .fi .l1 { top: 6px; }
.v .fi .l2 { top: 27px; height: 16px; }
.v .fi .txt { font-size: 14px; } .v .fi .txt small { display: none; }
.v .fi .imp { font-size: 14px; }
.v .fi .mono, .v .fi .cods { font-size: 11px; }
.v .fi .cods { gap: 7px; }
.v .fi .nf { font: 400 12px var(--sis); }
.v .fi .resto { font-size: 12px; }
.v .fi .st { width: 58px; height: 16px; } .v .wB .fi .st { width: 62px; }
.v .fi .st > span { height: 16px; gap: 5px; font-size: 12px; }
.v .fi .ok { width: 15px; height: 15px; } .v .fi .ok svg { width: 9px; height: 9px; }
.v .fi .aro { width: 14px; height: 14px; }
/* conciliación: la segunda línea, debajo del concepto */
.v .fc .l2 { left: 58px; }
.v .fc .ma { font: 400 11px var(--mono); } .v .fc .ma.t { font: 500 12px var(--sis); }
.v .fc .co { font: 400 11px var(--mono); }
.v .fc .ck { position: relative; margin-left: auto; width: 15px; height: 15px; flex: none; }
.v .fc .ck > * { left: 0; top: 0; }
.v .fc .ck .aro { left: .5px; top: .5px; }
