/* ONE virtual visit: full-screen official scenes, destinations, elevator floor selector, floor plans. */
body.is-tour { background: var(--ink); }
.tour { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); color: #fff; }
.tour__stage { position: absolute; inset: 0; }
.tour__img, .tour__clip, .tour__loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour__img { transition: opacity .7s ease; }
.tour__img.is-entering { opacity: 0; }
.tour__img.is-drift { animation: drift 14s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes drift { from { transform: scale(1.07); } to { transform: none; } }
.is-motion-paused .tour__img { animation-play-state: paused; }
.tour__loop, .tour__clip { opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
/* Layers: still/loop/clip (0) < shade (1) < interface (2) < elevator doors (4). */
.tour__stage, .tour__clip { z-index: 0; }
.tour__shade { z-index: 1; }
.tour__ui { z-index: 2; }
.tour__loop.is-playing, .tour__clip.is-playing { opacity: 1; }
.tour__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 48%, rgba(0,0,0,.82) 100%), linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 50%); }
.tour__ui { position: absolute; inset: var(--top) 0 0; display: grid; grid-template-rows: auto 1fr auto; padding: 14px var(--pad) 22px; pointer-events: none; }
.tour__ui > * { pointer-events: auto; }
.tour__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tour__back { font-size: 14px; text-decoration: none; opacity: .86; }
.tour__back:hover { opacity: 1; text-decoration: underline; }
.tour__tools { display: flex; gap: 8px; align-items: center; }
.tbtn { min-height: 42px; padding: 0 18px; border-radius: 99px; background: rgba(11,11,12,.55); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 14px; font-weight: 500; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tbtn:hover { background: rgba(11,11,12,.8); border-color: rgba(255,255,255,.5); }
.tbtn--lift { background: #fff; color: var(--ink); border-color: #fff; }
.tbtn--lift:hover { background: var(--bone); }
.seg { display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(11,11,12,.55); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); }
.seg button { min-height: 34px; padding: 0 14px; border-radius: 99px; font-size: 13px; color: rgba(255,255,255,.8); }
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); }
.tour__caption { align-self: end; max-width: 620px; display: grid; gap: 8px; padding-bottom: 18px; }
.tour__place { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze-l); }
.tour__title { font: 400 clamp(36px, 4.6vw, 72px)/.98 var(--serif); letter-spacing: -.02em; }
.tour__text { font-size: clamp(15px, 1.2vw, 18px); color: rgba(255,255,255,.88); }
.tour__more { display: flex; gap: 8px; margin-top: 8px; }
.tour__more button { width: 64px; height: 44px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,.3); }
.tour__more button[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.tour__more img { width: 100%; height: 100%; object-fit: cover; }
.tour__go { display: flex; gap: 10px; min-height: 58px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tour__go::-webkit-scrollbar { display: none; }
.go { flex: 0 0 auto; display: grid; grid-template-columns: 56px auto; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 14px; background: rgba(11,11,12,.6); border: 1px solid rgba(255,255,255,.18); color: #fff; text-align: left; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.go:hover { background: rgba(11,11,12,.85); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.go img, .go i { width: 56px; height: 44px; border-radius: 9px; object-fit: cover; }
.go i { display: grid; place-items: center; background: #fff; color: var(--ink); font: 400 20px var(--serif); font-style: normal; }
.go span { display: grid; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.go small { font-size: 11.5px; font-weight: 400; color: rgba(255,255,255,.7); letter-spacing: .04em; }
.go--plan i { background: var(--bronze-l); }
.tour__legal { position: absolute; right: var(--pad); bottom: 96px; max-width: 320px; font-size: 11.5px; color: rgba(255,255,255,.75); text-align: right; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
/* Elevator doors: an interface transition between floors (not a picture of the elevator). */
.tour__doors { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: grid; place-items: center; }
.tour__doors i { position: absolute; top: 0; bottom: 0; width: 50.5%; background: linear-gradient(90deg, #1a1a1b, #2a2a2c 50%, #1a1a1b); transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
.tour__doors i:first-child { left: 0; transform: translateX(-100%); box-shadow: inset -1px 0 0 rgba(255,255,255,.12); }
.tour__doors i:nth-child(2) { right: 0; transform: translateX(100%); box-shadow: inset 1px 0 0 rgba(255,255,255,.12); }
.tour__doors b { position: relative; z-index: 1; font: 400 clamp(64px, 10vw, 140px)/1 var(--serif); opacity: 0; transition: opacity .3s; }
.tour__doors.is-closed i { transform: none; }
.tour__doors.is-closed b { opacity: 1; transition-delay: .35s; }

/* Sheets: destinations + elevator */
.tsheet { position: fixed; inset: 0; z-index: 85; background: rgba(8,8,9,.6); display: grid; justify-items: end; }
.tsheet__panel { width: min(560px, 100%); height: 100%; overflow-y: auto; background: var(--ink-2); color: #fff; padding: 22px 24px 40px; border-left: 1px solid var(--line-d); }
.tsheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tsheet__head h2 { font: 400 38px/1 var(--serif); }
.tsheet__head .close { position: static; }
.tsheet__zone { margin-top: 22px; }
.tsheet__zone h3 { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-l); margin-bottom: 10px; font-weight: 500; }
.tsheet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dest { display: grid; gap: 8px; text-align: left; }
.dest img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; border: 1px solid transparent; transition: border-color .2s; }
.dest:hover img, .dest[aria-current="true"] img { border-color: var(--bronze-l); }
.dest span { display: grid; font-size: 15px; font-weight: 500; }
.dest small { font-size: 12px; font-weight: 400; color: var(--stone-l); }
.lift { background: linear-gradient(180deg, #1c1c1e, #121213); }
.lift__hint { color: var(--stone-l); font-size: 14px; margin-bottom: 14px; }
.lift__floors { display: grid; gap: 8px; }
.lift__btn { width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1px solid var(--line-d); text-align: left; transition: background .2s, border-color .2s; }
.lift__btn:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }
.lift__btn b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); font: 400 20px/1 var(--serif); }
.lift__btn[aria-current="true"] b { background: var(--bronze-l); color: var(--ink); border-color: var(--bronze-l); }
.lift__btn span { display: grid; font-size: 15px; font-weight: 500; }
.lift__btn small { font-size: 12.5px; font-weight: 400; color: var(--stone-l); }

@media (max-width: 900px) {
  .tour__ui { padding: 10px 16px 14px; }
  .tour__back { font-size: 13px; }
  .tbtn { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
  .tour__top { flex-wrap: wrap; }
  .tour__tools { margin-left: auto; }
  .tour__caption { padding-bottom: 12px; }
  .tour__title { font-size: clamp(32px, 9vw, 44px); }
  .tour__text { font-size: 15px; }
  .go { grid-template-columns: 46px auto; padding-right: 14px; }
  .go img, .go i { width: 46px; height: 38px; }
  .tour__legal { bottom: auto; top: calc(var(--top) + 64px); right: 16px; max-width: 240px; }
  .tsheet__panel { width: 100%; }
}
@media (max-width: 420px) {
  .tour__back { display: none; }
  .tour__tools { margin: 0; width: 100%; justify-content: space-between; }
}
/* ---------- V2: presence ---------- */
/* Frame = the official render at its cover geometry (set by tour.js); points and camera moves live inside it. */
.tour__frame { position: absolute; inset: 0; overflow: visible; transition: opacity .9s ease, transform 1.3s cubic-bezier(.2, .7, .2, 1); will-change: transform, opacity; }
.tour__frame .tour__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: none; }
.tour__frame.is-entering { opacity: 0; }
.tour__frame.is-walk-in { transform: scale(1.14); }
/* Camera layer: the image and its points drift together (the points stay on the element they mark). */
.tour__cam { position: absolute; inset: 0; }
.tour__cam.is-drift { animation: drift-v2 18s cubic-bezier(.2, .6, .2, 1) both; transform-origin: 50% 60%; }
.is-motion-paused .tour__cam.is-drift { animation-play-state: paused; }
@keyframes drift-v2 { from { transform: scale(1.06); } to { transform: none; } }
.tour__frame.is-walking .hot { opacity: 0; transition: opacity .2s; }
/* Navigation points on real elements of the render. */
.hot { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; padding: 0; background: none; border: 0; color: #fff; cursor: pointer; }
.hot i { position: relative; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 0 0 6px rgba(255,255,255,.22), 0 6px 22px rgba(0,0,0,.45); flex: 0 0 auto; }
.hot i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); animation: hot-pulse 2.2s ease-out infinite; }
.hot i::before { content: ""; position: absolute; left: 9px; top: 7px; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
@keyframes hot-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.hot span { padding: 9px 16px; border-radius: 99px; background: rgba(11,11,12,.72); border: 1px solid rgba(255,255,255,.28); font-size: 14.5px; font-weight: 500; white-space: nowrap; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s; }
.hot:hover span, .hot:focus-visible span { background: #fff; color: var(--ink); }
.hot:focus-visible { outline: none; }
.hot:focus-visible i { box-shadow: 0 0 0 4px var(--bronze-l), 0 6px 22px rgba(0,0,0,.45); }
.hot.is-pressing i { transform: scale(.85); transition: transform .2s; }
.is-motion-paused .hot i::after { animation: none; }
/* Route breadcrumb + guided route */
.tour__route { flex: 1; margin: 0 16px; font-size: 12.5px; letter-spacing: .06em; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.tbtn--guide[aria-pressed="true"] { background: var(--bronze-l); color: var(--ink); border-color: var(--bronze-l); }
/* Elevator: brushed-steel doors, a car indicator while travelling, the button panel as the dialog. */
.tour__doors i { background: repeating-linear-gradient(90deg, #2b2c2e 0 2px, #333437 2px 4px), linear-gradient(90deg, #1b1c1d, #3a3b3e 50%, #1b1c1d); background-blend-mode: overlay; }
.tour__doors.is-car b { opacity: 0 !important; }
.car { position: absolute; z-index: 2; left: 50%; top: 18%; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; padding: 14px 28px; border-radius: 12px; background: #0a0a0b; border: 1px solid #3a3b3e; box-shadow: inset 0 0 18px rgba(0,0,0,.8); }
.car__dir { color: var(--bronze-l); font-size: 22px; }
.car__num { min-width: 3.2ch; text-align: center; font: 400 clamp(48px, 7vw, 84px)/1 var(--serif); color: #f3e6cf; text-shadow: 0 0 18px rgba(214,183,140,.55); font-variant-numeric: tabular-nums; }
.tsheet--lift { justify-items: center; align-items: center; background: transparent; }
.tsheet--lift .tsheet__panel { width: min(430px, calc(100% - 32px)); height: auto; max-height: calc(100% - 120px); border-radius: 18px; border: 1px solid #3a3b3e; background: linear-gradient(180deg, #232427, #151617); box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); padding: 20px 20px 22px; }
.tsheet--lift .tsheet__head h2 { font-size: 30px; }
.tsheet--lift .lift__floors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tsheet--lift .lift__btn { grid-template-columns: 50px minmax(0, 1fr); padding: 8px 10px 8px 8px; background: rgba(255,255,255,.03); }
.tsheet--lift .lift__btn b { width: 44px; height: 44px; font-size: 17px; background: radial-gradient(circle at 35% 30%, #4a4b4e, #1f2022); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 6px rgba(0,0,0,.6); }
.tsheet--lift .lift__btn:hover b, .tsheet--lift .lift__btn:focus-visible b { color: var(--ink); background: radial-gradient(circle at 35% 30%, #f3e6cf, var(--bronze-l)); box-shadow: 0 0 16px rgba(214,183,140,.7); }
.tsheet--lift .lift__btn.is-pressing b { color: var(--ink); background: var(--bronze-l); box-shadow: 0 0 22px rgba(214,183,140,.9); }
.tsheet--lift .lift__btn span { font-size: 13.5px; } .tsheet--lift .lift__btn small { font-size: 11.5px; }
@media (max-width: 900px) {
  .tour__route { display: none; }
  .hot span { font-size: 13px; padding: 8px 12px; }
  .tsheet--lift .lift__floors { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 420px) { .tbtn--guide { font-size: 0; padding: 0 12px; } .tbtn--guide::before { content: "▶ Guiado"; font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .hot i::after { animation: none; } .tour__frame { transition: none; } }
/* V2 phones: the caption sits at the top, the lower part of the image stays free for the points and destinations. */
.tbtn { white-space: nowrap; }
.tour__frame picture { display: contents; }
@media (max-width: 900px) {
  .tour__ui { grid-template-rows: auto auto 1fr auto; }
  .tour__caption { grid-row: 2; align-self: start; padding: 14px 0 0; gap: 4px; text-shadow: 0 1px 14px rgba(0,0,0,.6); }
  .tour__title { font-size: clamp(28px, 8vw, 38px); }
  .tour__text { font-size: 14px; }
  .tour__go { grid-row: 4; }
  .tour__shade { background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 30%, rgba(0,0,0,0) 48%, rgba(0,0,0,0) 70%, rgba(0,0,0,.6) 100%); }
}

/* Pause control of the visit (films, camera drift, guided route): icon button, label for assistive technology. */
.tbtn--motion { width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.tbtn--motion .motion-toggle__i { display: block; box-sizing: content-box; width: 4px; height: 12px; }
.tbtn--motion[aria-pressed="true"] .motion-toggle__i { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.tbtn--motion [data-motion-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* First frame before tour.js: cover geometry of the torre scene from the stage size (same numbers as its pos/posm). */
.tour__stage { container-type: size; }
.tour__frame[data-first] { right: auto; bottom: auto; height: auto; aspect-ratio: 1.4404; width: max(100cqw, 144.04cqh); left: calc((100cqw - max(100cqw, 144.04cqh)) * .5); top: calc((100cqh - max(100cqw, 144.04cqh) / 1.4404) * .2); }
@media (max-aspect-ratio: 4/5) { .tour__frame[data-first] { aspect-ratio: .7502; width: max(100cqw, 75.02cqh); left: calc((100cqw - max(100cqw, 75.02cqh)) * .5); top: calc((100cqh - max(100cqw, 75.02cqh) / .7502) * .5); } }

/* Phones: the four actions stay on one row; Dia/Noite (only on scenes that have a night render) takes a second row. */
@media (max-width: 420px) { .tour__tools { flex-wrap: wrap; row-gap: 8px; } .tour__tools .seg { order: 5; } }

/* ---------- V2B: cinematic refinements ---------- */
/* Camera always moves forward: the slow drift pushes in, and a scene entered by walking does not pull back. */
@keyframes drift-v2 { from { transform: none; } to { transform: scale(1.06); } }
.tour__frame.is-walk-in { transform: none; }
/* Discreet points: the dot sits exactly on the element; the label shows on arrival, hover, focus and guided press. */
.hot { transform: translate(-13px, -50%); }
.hot i { width: 18px; height: 18px; margin: 4px; background: rgba(255,255,255,.92); box-shadow: 0 0 0 4px rgba(255,255,255,.2), 0 4px 14px rgba(0,0,0,.45); }
.hot i::before { display: none; }
.hot i::after { inset: -6px; border-width: 1px; }
.hot span { opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .4s; font-size: 13.5px; padding: 7px 13px; pointer-events: none; }
.hot:hover span, .hot:focus-visible span, .hot.is-hint span, .hot.is-pressing span { opacity: 1; transform: none; }
@media (hover: none) { .hot span { opacity: .94; transform: none; } }
/* Elevator doors: light brushed stainless steel with a dark seam; the floor reads on them before they open. */
.tour__doors i { background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, rgba(0,0,0,.05) 1px 3px), linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.12) 32%, rgba(0,0,0,.04) 62%, rgba(0,0,0,.26)), linear-gradient(180deg, #b4b8bd, #969a9f 48%, #7b7f85); background-blend-mode: normal; }
.tour__doors i:first-child { box-shadow: inset -2px 0 0 rgba(0,0,0,.6), inset -3px 0 0 rgba(255,255,255,.28); }
.tour__doors i:nth-child(2) { box-shadow: inset 2px 0 0 rgba(0,0,0,.6), inset 3px 0 0 rgba(255,255,255,.28); }
.tour__doors b { display: grid; justify-items: center; gap: 14px; color: #1d1e20; text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.tour__doors b small { font: 500 13px/1.2 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.tour__doors::after { content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255,255,255,.22) 50%, transparent) 0 -40% / 100% 40% no-repeat; }
.tour__doors.is-moving::after { opacity: 1; animation: lift-pass .42s linear infinite; }
.tour__doors.is-moving.is-down::after { animation-direction: reverse; }
@keyframes lift-pass { from { background-position: 0 -40%; } to { background-position: 0 140%; } }
.car { z-index: 2; background: #070708; border-color: #55575b; }
@media (prefers-reduced-motion: reduce) { .tour__doors.is-moving::after { animation: none; opacity: 0; } }
.hot--l { flex-direction: row-reverse; transform: translate(calc(-100% + 13px), -50%); }
.hot--l span { transform: translateX(6px); }

/* V2B: no veil over the renders — only a soft band under the toolbar and a local shadow behind the caption. */
.tour__shade { background: linear-gradient(180deg, rgba(0,0,0,.42) 0, rgba(0,0,0,0) 13%), radial-gradient(ellipse 58% 46% at 0% 100%, rgba(0,0,0,.66), rgba(0,0,0,.3) 55%, rgba(0,0,0,0) 78%); }
.tour [data-title], .tour [data-text], .tour [data-place] { text-shadow: 0 2px 16px rgba(0,0,0,.6); }
@media (max-width: 900px) { .tour__shade { background: linear-gradient(180deg, rgba(0,0,0,.6) 0, rgba(0,0,0,.32) 26%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 78%, rgba(0,0,0,.42) 100%); } }

/* V2C: the 'Seguir para' strip spans the stage width; only its cards take clicks (a point beside them stays reachable). */
.tour__go { pointer-events: none; }
.tour__go > * { pointer-events: auto; }
