/* GOA-000.003 — ambiente y cierre de escritorio en FLUJO (tableta, móvil, pantallas fuera de 4:3–21:9). Solo sobrescribe; no redefine cajas (000.007).
   (1) Continuidad de color: el fondo fijo .nw-scene pierde el paisaje vectorial inventado (escena.svg, ríos, marcos) y pasa a un degradado MEDIDO de los
       bordes izquierdo/derecho de A (media por franjas de 72 px: #5f6f4f arriba, #3b6a4f, #2f5a52 en el centro, #455f45, #4a7f7a junto a la mesa), oscureciendo hacia el pie de página (#04141a, el color de la web).
       La cabecera (cabecera-a) se funde a los lados con máscara para que no se vea el corte en pantallas muy anchas.
   (2) Cierre de escritorio: franja de la mesa de A (mesa-a.*: x 170–1430, y 612–766 de A 1536x864; portátil, teclado, bolígrafo, ratón y taza; sin peanas ni losas pintadas),
       píxeles originales a <=0,72x (tope 1,3x: 1640 px), al final del bloque de la portada (.nw-app::after, detrás del contenido). Solo bajo html:not([data-lite="1"]); en lite no hay petición alguna.
   No toca el modo stage (placa propia) ni las páginas secundarias (escritorio-mesa.webp intacto). */
html[data-division="inicio"][data-hz-mode="flow"]:not([data-lite="1"]){--mesa-w:min(100vw,1640px);--mesa-h:calc(var(--mesa-w)*154/1260);--desk-h:0px}
html[data-division="inicio"][data-hz-mode="flow"]:not([data-lite="1"]) .nw-scene{
 background:linear-gradient(180deg,#5f6f4f 0,#3b6a4f 9%,#2f5a52 28%,#2f5e50 50%,#4a6a62 68%,#547873 78%,#2c5a58 90%,#04141a 100%);}
html[data-division="inicio"][data-hz-mode="flow"]:not([data-lite="1"]) .nw-scene :is(.nw-river,.nw-pane,.nw-sill,.nw-desk){display:none}
/* Fusión lateral de la cabecera cuando el lienzo no llena el ancho (>1404 px) */
@media (min-width:1405px){
 html[data-division="inicio"][data-hz-mode="flow"]:not([data-lite="1"]) .nw-plate{
  -webkit-mask:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(#000 80%,transparent);-webkit-mask-composite:source-in;
  mask:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(#000 80%,transparent);mask-composite:intersect}
}
html[data-division="inicio"][data-hz-mode="flow"]:not([data-lite="1"]) .nw-app{padding-bottom:max(calc(84px + env(safe-area-inset-bottom)),calc(var(--mesa-h)*1.05))}
html[data-division="inicio"][data-hz-mode="flow"]:not([data-lite="1"]) .nw-app::after{content:"";position:absolute;z-index:-1;pointer-events:none;bottom:0;left:50%;transform:translateX(-50%);
 width:var(--mesa-w);height:var(--mesa-h);opacity:.9;
 background:image-set(url(/assets/networks/portada/ambiente/mesa-a.avif) type("image/avif"),url(/assets/networks/portada/ambiente/mesa-a.webp) type("image/webp")) center bottom/100% 100% no-repeat;
 -webkit-mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent),linear-gradient(180deg,transparent,#000 38%);-webkit-mask-composite:source-in;
 mask:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent),linear-gradient(180deg,transparent,#000 38%);mask-composite:intersect}
/* Móvil: ventana centrada en teclado y ratón a 0,71x (no se encoge a una cinta ilegible) */
@media (max-width:600px){
 html[data-division="inicio"][data-hz-mode="flow"]:not([data-lite="1"]) .nw-app::after{width:100%;height:calc(900px*154/1260);background-size:900px auto;background-position:58% bottom}
 html[data-division="inicio"][data-hz-mode="flow"]:not([data-lite="1"]){--mesa-h:calc(900px*154/1260)}
}
