#visita { scroll-margin-top: 6rem; }
.tour-layout { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr); gap: 1.15rem; align-items: start; }
.tour-sidebar { min-width: 0; border: 1px solid var(--risk-border); border-radius: .8rem; padding: 1rem; background: var(--risk-paper); }
.tour-sidebar h2 { font-size: 1.45rem; }
.tour-floor-nav { display: grid; gap: .36rem; }
.tour-floor-nav a { display: flex; align-items: center; gap: .55rem; min-height: 2.7rem; border: 1px solid var(--risk-border); border-radius: .5rem; padding: .36rem .45rem; color: var(--risk-ink); background: var(--risk-bg); font-size: .88rem; font-weight: 680; text-decoration: none; }
.tour-floor-nav a:hover, .tour-floor-nav a[aria-current] { border-color: var(--risk-link); color: var(--risk-link); }
.tour-floor-nav a[aria-current] { box-shadow: inset 0 0 0 1px var(--risk-link); }
.tour-level { flex: 0 0 1.5rem; text-align: center; background: #d7eff2; color: #0e435f; border-radius: .35rem; font-variant-numeric: tabular-nums; }
.tour-rooms { min-width: 0; }
.guardian-tour .tour-current-floor { color: var(--risk-link); font-size: .86rem; font-weight: 720; margin-bottom: .48rem; }
.tour-room { border: 1px solid var(--risk-border); border-radius: .8rem; overflow: hidden; background: var(--risk-paper); }
.tour-scene { position: relative; overflow: hidden; background: #102535; aspect-ratio: 2.12; }
.tour-scene img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05) translate(var(--scene-x, 0), var(--scene-y, 0)); transition: transform .18s ease-out; }
.tour-restricted { position: absolute; inset: .7rem .75rem auto auto; padding: .4rem .7rem; border: 1px solid #ffc8a7; border-radius: .4rem; background: #512e25; color: #ffede2; font-size: .82rem; font-weight: 700; }
.tour-room-copy { padding: clamp(.85rem, 3vw, 1.55rem); }
.tour-room-copy .tour-specialists { color: var(--risk-link); font-weight: 720; margin-bottom: .25rem; }
.tour-secondary { padding: .55rem .65rem; }
.guardian-tour .tour-scene-note { margin-top: .55rem; color: var(--risk-muted); font-size: .78rem; }
.tour-model { display: grid; align-items: end; justify-items: center; min-height: 13.5rem; padding: 0 0 1.7rem; overflow: hidden; border: 1px solid #2b536e; border-radius: .62rem; background: radial-gradient(ellipse at 48% 35%, #22516a, #102637 75%); perspective: 740px; cursor: grab; touch-action: pan-y; user-select: none; }
.tour-model[hidden], .tour-room[hidden] { display: none; }
.tour-model.is-dragging { cursor: grabbing; }
.tour-model:focus-visible { outline: 2px solid #4fadda; outline-offset: 3px; }
.tour-stack { position: relative; width: 7.5rem; height: 5.3rem; transform: rotateX(var(--tour-tilt, 57deg)) rotateZ(var(--tour-turn, -36deg)); transform-style: preserve-3d; }
.tour-slab { position: absolute; inset: 0; border: 1px solid #a2d8e6; border-radius: .14rem; background: repeating-linear-gradient(90deg, #27546d 0 25%, #24465b 25% 27%); transform: translateZ(calc(var(--level) * 21px)); transform-style: preserve-3d; }
.tour-slab::before, .tour-slab::after { content: ''; position: absolute; background: repeating-linear-gradient(90deg, #5794aa 0 8px, #20485e 8px 11px); border: 1px solid #769eaf; }
.tour-slab::before { width: 100%; height: 10px; left: 0; bottom: 0; transform-origin: bottom; transform: rotateX(90deg); }
.tour-slab::after { width: 10px; height: 100%; right: 0; top: 0; transform-origin: right; transform: rotateY(-90deg); }
.tour-slab[data-current] { border-color: #b0fbe4; background: #439282; box-shadow: 0 0 11px 1px #8cf0d8c0; }
.guardian-tour .tour-model-help { color: var(--risk-muted); font-size: .74rem; margin: .4rem 0 .6rem; }
@media (max-width: 760px) {
  .tour-layout { grid-template-columns: 1fr; }
  .tour-floor-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-model { min-height: 11rem; padding-bottom: .9rem; }
  .tour-room-copy :is(h2, .tour-specialists) { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .tour-scene img { transform: none; transition: none; } }
.guardian-tour {
  --tour-night: #091b2b;
  --tour-glass: #122e45ec;
  --tour-signal: #8df8d3;
}
.tour-cinematic { border-color: #3c657e; }
.tour-zone[hidden], .tour-badge-form[hidden] { display: none; }
.tour-cinematic .tour-scene { isolation: isolate; aspect-ratio: 1.94; perspective: 700px; }
.tour-cinematic .tour-scene::after { content: ''; pointer-events: none; z-index: 1; position: absolute; inset: 0; background: linear-gradient(180deg,#06152271 0,transparent 30%,transparent 65%,#071523bc); }
.tour-cinematic .tour-scene img { transform: scale(1.09) translate(var(--scene-x, 0), var(--scene-y, 0)); }
.tour-zone.is-arriving .tour-scene img { animation: tour-walk-in .45s cubic-bezier(.2,.72,.26,1); }
@keyframes tour-walk-in { from { opacity: .46; transform: scale(1.18) translateY(3%); } to { opacity: 1; } }
.tour-scene:focus-visible { outline: 2px solid #9bf7e3; outline-offset: -3px; }
.tour-wayfinding { position: absolute; z-index: 2; inset: .72rem auto auto .85rem; padding: .38rem .62rem; border: 1px solid #91c6df83; border-radius: .4rem; background: #0b2338e8; color: #e8f7ff; font-size: .83rem; font-weight: 720; }
.tour-door-marker {
  --door-signal: #8df8d3;
  position: absolute; z-index: 3; inset: auto auto .8rem 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: .6rem; width: max-content; max-width: 90%; padding: .55rem .72rem;
  border: 1px solid var(--door-signal); border-radius: .5rem; background: #0b2338f2;
  color: #f0f9ff !important; text-decoration: none; box-shadow: 0 0 18px #122c4090;
}
.tour-door-marker strong, .tour-door-marker small { display: block; }
.tour-door-marker strong { font-size: .95rem; }
.tour-door-marker small { font-size: .74rem; color: var(--door-signal); }
.tour-door-marker:hover, .tour-door-marker:focus-visible { background: #193d56; }
.tour-door-badge { --door-signal: #ffd68f; }
.tour-door-locked { --door-signal: #ffa8a8; background: #251e2cf5; }
.tour-access-light { width: .56rem; height: .56rem; flex-shrink: 0; border-radius: 50%; background: var(--door-signal); box-shadow: 0 0 9px var(--door-signal); }
.tour-door-locked .tour-access-light { animation: tour-lock-pulse 2.3s ease-in-out infinite; }
@keyframes tour-lock-pulse { 50% { box-shadow: 0 0 13px 4px #ff5e6688; } }
.tour-lock { position: relative; width: .88rem; height: .65rem; border: 1px solid var(--door-signal); border-radius: .16rem; align-self: center; margin-inline-start: .2rem; }
.tour-lock::before { content: ''; position: absolute; width: .47rem; height: .41rem; inset: -.44rem auto auto .12rem; border: 1px solid var(--door-signal); border-bottom: 0; border-radius: .35rem .35rem 0 0; }
.tour-badge-station { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: .65rem; margin-top: .65rem; }
.tour-demo-badge, .tour-reader { background: linear-gradient(145deg,#193a52,#071a29); border: 1px solid #4482a0; border-radius: .65rem; padding: .74rem; color: #eaf5fe; }
.tour-demo-badge { display: grid; align-content: center; gap: .2rem; min-height: 7rem; }
.tour-demo-badge code { width: fit-content; color: #abfce1; letter-spacing: .14em; }
.tour-reader { display: grid; gap: .4rem; }
.tour-reader-screen { display: block; color: #a7fce0; background: #071824; border: 1px solid #275d75; border-radius: .3rem; padding: .34rem .5rem; font: .82rem ui-monospace, monospace; }
.tour-reader label { color: #eaf5fe; }
.tour-reader input { color: #effbff; background: #091925; border: 1px solid #587b8f; border-radius: .3rem; max-width: 9rem; }
.tour-button { justify-self: start; color: #def9ff; background: #174259; border: 1px solid #70bac9; border-radius: .35rem; padding: .28rem .55rem; font: inherit; cursor: pointer; }
.tour-button:disabled { opacity: .5; cursor: default; }
.tour-reader-disabled { width: min(100%,16rem); margin-block: .6rem; }
.tour-reader-disabled .tour-reader-screen { color: #ffc0c0; }
.tour-key-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; width: 3.8rem; }
.tour-key-grid i { height: .55rem; background: #254759; border: 1px solid #487085; border-radius: .12rem; }
.tour-floor-agents { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: .7rem; }
.tour-floor-agents a { display: inline-flex; gap: .58rem; align-items: center; padding: .35rem .54rem .35rem .35rem; text-decoration: none; border: 1px solid var(--risk-border); border-radius: .5rem; }
.tour-floor-agents img { width: 3.2rem; height: 3.2rem; object-fit: cover; border-radius: .32rem; }
.tour-floor-agents small { display: block; color: var(--risk-muted); }
@media (max-width: 620px) { .tour-cinematic .tour-scene { min-height: 13.7rem; } .tour-floor-agents { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .tour-zone.is-arriving .tour-scene img, .tour-door-locked .tour-access-light { animation: none; } }
.guardian-tour .tour-year { display: block; color: var(--risk-link); font-size: .79rem; letter-spacing: .16em; font-weight: 780; margin-bottom: .48rem; }
.tour-cinema { margin: 0 0 .58rem; }
.tour-cinema[hidden] { display: none; }
.tour-layout:fullscreen { max-width: none; width: 100%; overflow: auto; padding: 1.15rem; background: #0a1929; }
.tour-cinematic .tour-interior:has(.tour-reception-image) { container-type: size; }
.tour-reception-image {
  position: absolute;
  inset: 50% auto auto 50%;
  width: max(100%, calc(100cqh * 2.2814));
  aspect-ratio: 762 / 334;
  transform: translate(-50%, -50%) scale(1.09) translate(var(--scene-x, 0), var(--scene-y, 0));
  transition: transform .18s ease-out;
}
.tour-cinematic .tour-scene .tour-reception-image img { transform: none; animation: none; }
.tour-zone.is-arriving .tour-reception-image { animation: tour-reception-entry .45s cubic-bezier(.2,.72,.26,1); }
@keyframes tour-reception-entry { from { opacity: .46; transform: translate(-50%, -50%) scale(1.18); } to { opacity: 1; } }
.tour-lift-shaft {
  position: absolute;
  inset: 15.7% auto auto 60%;
  width: 4.5%;
  height: 50%;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 14%, #b6e2d71a 17% 22%, transparent 25% 77%, #b6e2d71a 80% 84%, transparent 87%);
}
.tour-lift-car {
  position: absolute;
  inset: 78% 12% auto;
  height: 17%;
  border: 1px solid #759b99;
  border-top: 2px solid #edcd8b;
  border-radius: 2px;
  background: linear-gradient(90deg,#203238b5 49%,#779b8cd9 50%,#263d3bb5 54%),linear-gradient(180deg,#b1d5bc8a,#283f42be);
  box-shadow: inset 0 0 3px #f0dfab6e, 0 0 3px #f0d78860;
  animation: tour-lift-rise 15s ease-in-out infinite;
}
.tour-lift-shaft::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(109deg, transparent 26%, #d2e7d624 34%, transparent 46%);
}
@keyframes tour-lift-rise {
  0%, 12% { top: 78%; opacity: .55; }
  21% { opacity: .86; }
  76%, 83% { top: 7%; opacity: .85; }
  91%, 100% { top: 7%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-zone.is-arriving .tour-reception-image, .tour-lift-car { animation: none; }
  .tour-reception-image { transform: translate(-50%, -50%); transition: none; }
}
