/* v38: browser chrome follows MISANA where supported; the OS retains final control. */
html{background:#101b22}
body{touch-action:manipulation}
input,textarea,select{font-size:max(16px,1em)}
.dialog-toolbar{position:sticky;top:-36px;display:flex;justify-content:flex-end;z-index:6;background:#fff;margin:-36px -36px 18px;padding:6px 12px;border-bottom:1px solid #d8e0e4}
.dialog-toolbar .close{position:static;min-width:88px;min-height:44px;font-size:16px;font-weight:600;line-height:1.2;color:#15252e;background:#fff;border:1px solid #c2ccd2;padding:8px 12px}
@media(max-width:760px),(hover:none) and (pointer:coarse){
 html{scroll-snap-type:none!important;scroll-behavior:auto;overscroll-behavior-y:auto}
 body{overflow:visible}
 main>section{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;overscroll-behavior-y:auto;scroll-snap-align:none;scroll-snap-stop:normal;justify-content:flex-start;gap:24px}
 main>.hero{min-height:calc(100svh - var(--header-height,72px))!important}
 #proceso,#capacidades,#diseno3d,#towerwind,#productos,#tienda,#empresa,#contacto{height:auto!important;max-height:none!important;overflow:visible!important}
 #diseno3d{grid-template-rows:auto!important}
 #productos .project-grid,#tienda .catalog{flex:none;grid-template-rows:auto;min-height:0}
 #contacto{min-height:calc(100svh - var(--header-height,72px))!important;padding-bottom:0}
 #contacto .contact-main{flex:none;padding-bottom:36px}
 #contacto footer{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
 .cart-dock{bottom:calc(10px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 24px)}
 .screen-position{display:none}
 dialog{max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
 .dialog-toolbar{top:-30px;margin:-30px -22px 18px}
 .cart-row{display:grid;grid-template-columns:48px minmax(0,1fr) 68px;gap:10px;align-items:center}
 .cart-row img{width:48px;max-height:64px;object-fit:contain}
 .cart-row input{width:68px;min-width:0}
 .cart-row>button{grid-column:2/-1;justify-self:start;min-height:44px}
 dialog .actions{flex-wrap:wrap;gap:12px}
 dialog .actions button{min-height:44px}
}
