/* Scan2openBIM — Cobalto 3.2 · navegación por plantas y panorámicas */
#demo-shell .tour-controls[hidden],#demo-shell .tour-explorer[hidden],#demo-shell .tour-explorer [hidden],#demo-shell .tour-links-bar[hidden]{display:none!important}
#demo-shell .tour-controls{display:grid;grid-template-columns:minmax(170px,1fr) minmax(220px,1.3fr) auto;gap:18px;align-items:end;padding:18px 24px;background:#102a4a;border-top:1px solid #294768;border-bottom:1px solid #345373;color:#e8f0ff}
#demo-shell .tour-field{min-width:0;display:flex;flex-direction:column;gap:7px}
#demo-shell .tour-field label{font-size:14px;font-weight:600;line-height:1.4;color:#bad1ef}
#demo-shell .tour-field select{width:100%;height:48px;min-height:48px;border:1px solid #5276a0;border-radius:9px;padding:0 34px 0 13px;background:#17365b;color:#f5f8ff;font:inherit;font-size:16px;line-height:1.4;box-sizing:border-box;cursor:pointer;color-scheme:dark}
#demo-shell .tour-floor-count{max-width:230px;align-self:center;margin:17px 0 0;font-size:14px;line-height:1.5;color:#b6d1f0}
#demo-shell.is-plan .demo-stage{height:560px;min-height:420px;position:relative;background:#0b1d34;display:block;overflow:hidden}
#demo-shell.is-plan .demo-stage>#main-scene,#demo-shell.is-plan .demo-properties,#demo-shell.is-plan .demo-tools,#demo-shell.is-plan .demo-label,#demo-shell.is-plan .compare-legend,#demo-shell.is-plan .demo-compass{display:none!important}
#demo-shell .tour-explorer{position:absolute;inset:0;overflow:hidden;background:#0b1d34;color:#eff5ff}
#demo-shell .tour-map-surface{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%,#15314f,#0b1d34);transition:none}
#demo-shell .tour-map-body{position:absolute;inset:42px 65px 40px 25px;touch-action:none;cursor:grab;overflow:hidden;border-radius:8px}
#demo-shell .tour-map-body:active{cursor:grabbing}
#demo-shell .tour-floor-svg{display:block;width:100%;height:100%;position:absolute;inset:0}
#demo-shell .tour-marker-layer{position:absolute;inset:0;pointer-events:none}
#demo-shell .tour-station-dot{position:absolute;pointer-events:auto;transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;padding:0;border:3px solid #cee3ff;border-radius:50%;background:#347af1;box-shadow:0 0 0 6px #4486ed25,0 5px 14px #020e2060;color:#fff;font-size:15px;font-weight:750;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2}
#demo-shell .tour-station-dot:hover,#demo-shell .tour-station-dot:focus-visible{background:#1758c7;box-shadow:0 0 0 8px #76aaff50}
#demo-shell .tour-station-dot.is-selected{background:#fff;color:#184b93;border-color:#fff;box-shadow:0 0 0 6px #77adff55}
#demo-shell .tour-map-heading{position:absolute;left:26px;right:24px;top:16px;display:flex;align-items:center;justify-content:space-between;gap:15px;color:#d4e5fa;font-size:15px;font-weight:600;line-height:1.4;pointer-events:none}
#demo-shell .tour-north{color:#91b6e6;font-size:14px;font-weight:600;white-space:nowrap}
#demo-shell .tour-map-note{position:absolute;left:26px;bottom:17px;font-size:13px;line-height:1.3;color:#98b6d9;pointer-events:none}
#demo-shell .tour-camera-bar{position:absolute;right:16px;top:64px;z-index:9;display:flex;flex-direction:column;gap:8px}
#demo-shell .tour-camera-bar button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;border:1px solid #8aaacf6b;border-radius:10px;background:#122f50eb;color:#f3f8ff;font-size:27px;font-weight:400;padding:0;line-height:1;cursor:pointer;box-shadow:0 2px 10px #020b1940}
#demo-shell .tour-camera-bar button:hover{background:#2c5992}
#demo-shell .tour-panorama{position:absolute;inset:0;background:#0e213a;overflow:hidden}
#demo-shell canvas.tour-panorama-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;outline-offset:-4px;cursor:grab;touch-action:none}
#demo-shell canvas.tour-panorama-canvas.is-dragging{cursor:grabbing}
#demo-shell .tour-hotspots{position:absolute;inset:0;pointer-events:none;z-index:3;overflow:hidden}
#demo-shell .tour-hotspot{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;min-height:48px;width:48px;height:48px;border:2px solid #fff;border-radius:50%;background:#2360bee8;color:white;padding:0;box-shadow:0 4px 18px #08172a4a;cursor:pointer;line-height:1;display:flex;align-items:center;justify-content:center}
#demo-shell .tour-hotspot>span:first-child{font-size:36px;line-height:1;transform:translateY(5px)}
#demo-shell .tour-hotspot-label{display:none;position:absolute;top:53px;left:50%;transform:translateX(-50%);width:max-content;max-width:180px;background:#102b4dec;border-radius:6px;padding:8px 12px;color:#fff;font-size:14px;line-height:1.4;box-shadow:0 3px 12px #0015313f}
#demo-shell .tour-hotspot:hover,#demo-shell .tour-hotspot:focus-visible{background:#10449e}
#demo-shell .tour-hotspot:hover .tour-hotspot-label,#demo-shell .tour-hotspot:focus-visible .tour-hotspot-label{display:block}
#demo-shell .tour-pano-top{position:absolute;left:18px;right:18px;top:16px;z-index:10;display:flex;gap:10px;align-items:center;justify-content:space-between;pointer-events:none}
#demo-shell .tour-pano-top button{pointer-events:auto;border:1px solid #d8e6fb85;background:#0d294bea;color:#fff;min-height:44px;padding:10px 15px;border-radius:10px;font-size:15px;font-weight:650;line-height:1.4;cursor:pointer;box-shadow:0 3px 14px #00172b29}
#demo-shell .tour-pano-top button:hover{background:#26568c}
#demo-shell .tour-back span{font-size:21px;margin-right:7px}
#demo-shell .tour-panorama-caption{position:absolute;bottom:17px;right:20px;left:auto;max-width:calc(100% - 335px);display:flex;gap:12px;align-items:center;background:#102b4dec;color:#fff;padding:13px 18px;border:1px solid #9db7d35e;border-radius:12px;z-index:7;pointer-events:none}
#demo-shell .tour-panorama-caption strong{display:block;font-size:17px;font-weight:600;line-height:1.4}
#demo-shell .tour-panorama-caption span:not(.tour-heading-indicator){display:block;color:#c2d7f2;font-size:13px;line-height:1.6}
#demo-shell .tour-heading-indicator{font-size:25px;width:28px;text-align:center;display:block;color:#94bdff}
#demo-shell .tour-explorer.in-panorama .tour-map-surface{inset:auto;bottom:18px;left:18px;width:275px;height:178px;border:1px solid #88a8d188;border-radius:12px;z-index:8;box-shadow:0 6px 20px #081a3240;background:#0e2542f5}
#demo-shell .tour-explorer.in-panorama .tour-map-heading{top:10px;left:12px;right:12px;font-size:12px;line-height:1.3}
#demo-shell .tour-explorer.in-panorama .tour-map-body{inset:25px 9px 17px}
#demo-shell .tour-explorer.in-panorama .tour-map-note{left:12px;bottom:5px;font-size:10px;line-height:1.2}
#demo-shell .tour-explorer.in-panorama .tour-station-dot{width:29px;height:29px;min-height:29px;font-size:11px;border-width:2px;box-shadow:0 0 0 3px #4486ed25}
#demo-shell .tour-explorer.in-panorama .tour-station-dot::after{content:'';position:absolute;inset:-5px;border-radius:50%}
#demo-shell .tour-links-bar{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:14px 22px;background:#102b4d;border-top:1px solid #5873914d;color:#bcd2ef}
#demo-shell .tour-links-bar>span{font-size:14px;font-weight:600;line-height:1.4}
#demo-shell .tour-link-buttons{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
#demo-shell .tour-link-buttons button{min-height:44px;padding:9px 15px;background:#1c416d;border:1px solid #6384aa;border-radius:8px;color:#f1f6ff;font:inherit;font-size:14px;line-height:1.4;cursor:pointer}
#demo-shell .tour-link-buttons button:hover{background:#2c62a8}
#demo-shell .tour-loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:20;border:1px solid #638bbc;border-radius:12px;background:#10294dec;color:white;padding:20px 26px;font-size:16px;line-height:1.5;text-align:center;max-width:calc(100% - 40px);width:280px;pointer-events:none}
#demo-shell .tour-error{position:absolute;inset:85px 30px auto;max-width:520px;margin:auto;z-index:30;border:1px solid #809bbd;background:#122b4cf5;border-radius:12px;padding:25px;color:#fff;font-size:16px;line-height:1.6}
#demo-shell .tour-error p{font-size:15px;color:#d8e5f5;line-height:1.6}
#demo-shell .tour-error button{background:#3f80e9;color:#fff;border:0;padding:12px 20px;min-height:44px;border-radius:7px;font-size:16px;cursor:pointer}
#demo-shell .tour-sr{position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
#demo-shell :is(.tour-explorer,.tour-controls,.tour-links-bar) :is(button,select):focus-visible{outline:3px solid #a7d1ff;outline-offset:3px}
#demo-shell :is(.tour-map-body,.tour-panorama-canvas):focus-visible{outline:2px solid #91bffc;outline-offset:-3px}
#demo-shell:fullscreen,#demo-shell.tour-expanded{background:#0b1d34;border-radius:0;display:flex;flex-direction:column;margin:0;border:0}
#demo-shell:fullscreen .demo-stage,#demo-shell.tour-expanded .demo-stage{flex:1;min-height:220px;height:auto}
#demo-shell.tour-expanded{position:fixed;inset:0;z-index:99999;width:100%;height:100dvh}
body.tour-lock{overflow:hidden}
@media(max-width:1000px){#demo-shell .tour-controls{grid-template-columns:1fr 1fr;gap:12px 18px}#demo-shell .tour-floor-count{grid-column:1/-1;margin:0;max-width:none}#demo-shell.is-plan .demo-stage{height:515px}}
@media(max-width:680px){
 #demo-shell .tour-controls{grid-template-columns:1fr;padding:16px;gap:12px}
 #demo-shell .tour-field label{font-size:14px}#demo-shell .tour-field select{height:48px;font-size:16px}
 #demo-shell .tour-floor-count{font-size:14px;color:#c0d6ef}
 #demo-shell.is-plan .demo-stage{height:445px;min-height:340px}
 #demo-shell.is-panorama .demo-stage{height:470px}
 #demo-shell .tour-map-body{inset:49px 11px 45px}
 #demo-shell .tour-map-heading{left:15px;right:15px;font-size:14px;top:14px}
 #demo-shell .tour-map-note{left:15px;bottom:18px;font-size:13px;max-width:150px}
 #demo-shell .tour-camera-bar{top:auto;right:12px;bottom:12px;flex-direction:row;gap:6px}
 #demo-shell .tour-camera-bar button{width:44px;height:44px;min-height:44px;border-radius:9px;font-size:26px}
 #demo-shell:not(.is-panorama) .tour-map-note{bottom:71px;max-width:none}
 #demo-shell .tour-pano-top{top:12px;left:10px;right:10px;gap:6px}
 #demo-shell .tour-pano-top button{font-size:14px;padding:8px 10px;min-height:44px}
 #demo-shell .tour-back span{margin-right:3px;font-size:18px}
 #demo-shell .tour-panorama-caption{left:12px;right:12px;bottom:68px;max-width:none;padding:10px 13px;gap:9px}
 #demo-shell .tour-panorama-caption strong{font-size:16px}
 #demo-shell .tour-panorama-caption span:not(.tour-heading-indicator){font-size:13px}
 #demo-shell .tour-explorer.in-panorama .tour-map-surface{top:70px;bottom:auto;left:12px;width:calc(100% - 24px);max-width:305px;height:188px}
 #demo-shell .tour-explorer.in-panorama .tour-map-heading{font-size:13px}
 #demo-shell .tour-explorer.in-panorama .tour-station-dot{width:34px;height:34px;min-height:34px;font-size:12px}
 #demo-shell .tour-explorer.in-panorama .tour-map-note{bottom:6px;font-size:11px}
 #demo-shell .tour-links-bar{padding:16px;align-items:stretch;flex-direction:column;gap:10px}
 #demo-shell .tour-link-buttons{display:grid;grid-template-columns:1fr;gap:8px}
 #demo-shell .tour-link-buttons button{text-align:left;min-height:46px;font-size:15px}
 #demo-shell .tour-error{inset:80px 12px auto;padding:18px}
 #demo-shell:fullscreen .tour-controls,#demo-shell.tour-expanded .tour-controls{grid-template-columns:1fr 1fr;padding:10px 12px;gap:7px 12px}
 #demo-shell:fullscreen .tour-floor-count,#demo-shell.tour-expanded .tour-floor-count{display:none}
 #demo-shell:fullscreen .tour-links-bar,#demo-shell.tour-expanded .tour-links-bar{display:none}
}
@media(prefers-reduced-motion:reduce){#demo-shell .tour-explorer *{scroll-behavior:auto;transition:none}}
