/* 360° tour (/experiencia-3d/): full screen panorama with light, discreet controls */
:root { --tr-ink: #0a1f44; --tr-sky: #8fd8ff; --tr-cta: #ff8500; --tr-glass: rgb(10 25 60 / .42); --tr-line: rgb(255 255 255 / .2); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0a1f44; color: #fff; font: 400 15px/1.45 Inter, "Segoe UI", system-ui, sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tr { position: fixed; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.tr:active { cursor: grabbing; }
.tr-canvas { position: absolute; inset: 0; background: #0a1f44 url("tour/poster.32d395e8eeca.jpg") center / cover no-repeat; }
.tr-canvas canvas { display: block; width: 100%; height: 100%; }

/* small glass pills */
.tr-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--tr-line); border-radius: 999px;
    background: var(--tr-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font: 500 12.5px/1 Inter, system-ui, sans-serif;
    letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease; white-space: nowrap; }
.tr-btn:hover { background: rgb(10 25 60 / .62); border-color: rgb(255 255 255 / .35); }
.tr-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tr-btn--icon { width: 32px; padding: 0; justify-content: center; }
.tr-btn[aria-pressed="true"] { border-color: rgb(143 216 255 / .7); color: var(--tr-sky); }
.tr-btn:focus-visible, .tr-rooms button:focus-visible, .tr-point:focus-visible, .tr-cta:focus-visible { outline: 2px solid var(--tr-sky); outline-offset: 2px; }

.tr-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: max(12px, env(safe-area-inset-top)) 14px 0; pointer-events: none; }
.tr-top > * { pointer-events: auto; }
.tr-top__end { display: flex; gap: 6px; }
.tr-room { margin: 0; padding: 7px 12px; border-radius: 999px; background: var(--tr-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font: 600 12.5px/1 "Exo 2", Inter, sans-serif; letter-spacing: .02em; border: 1px solid var(--tr-line); }

/* environments */
.tr-rooms { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 6px; max-width: calc(100% - 20px);
    padding: 5px; border-radius: 999px; background: var(--tr-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--tr-line);
    overflow-x: auto; scrollbar-width: none; }
.tr-rooms::-webkit-scrollbar { display: none; }
.tr-rooms button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent;
    color: rgb(255 255 255 / .82); font: 600 12px/1.1 Inter, system-ui, sans-serif; cursor: pointer; transition: background .2s ease, color .2s ease; }
.tr-rooms button small { font-weight: 400; font-size: 10.5px; color: rgb(255 255 255 / .55); }
.tr-rooms button:hover { color: #fff; }
.tr-rooms button[aria-pressed="true"] { background: rgb(255 255 255 / .92); color: var(--tr-ink); }
.tr-rooms button[aria-pressed="true"] small { color: rgb(10 31 68 / .65); }

/* info points on the AC units */
.tr-points { position: absolute; inset: 0; pointer-events: none; }
.tr-point { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; margin: -15px 0 0 -15px; padding: 0; border: 0; background: none; color: #fff;
    cursor: pointer; pointer-events: auto; will-change: transform; }
.tr-point i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(0 174 239 / .92); border: 2px solid #fff;
    font: 600 18px/1 Inter, sans-serif; font-style: normal; box-shadow: 0 0 0 0 rgb(0 174 239 / .6); animation: tr-pulse 2.2s ease-out infinite; }
.tr-point span { padding: 5px 10px; border-radius: 999px; background: rgb(10 25 60 / .72); border: 1px solid var(--tr-line); font: 600 12px/1 Inter, sans-serif; white-space: nowrap; }
.tr-point[aria-expanded="true"] i { background: var(--tr-cta); transform: rotate(45deg); }
@keyframes tr-pulse { 70% { box-shadow: 0 0 0 12px rgb(0 174 239 / 0); } 100% { box-shadow: 0 0 0 0 rgb(0 174 239 / 0); } }

.tr-info { position: absolute; right: 14px; top: 60px; width: min(340px, calc(100% - 28px)); padding: 16px 18px 18px; border-radius: 16px; background: rgb(255 255 255 / .96);
    color: var(--tr-ink); box-shadow: 0 18px 50px rgb(0 0 0 / .3); }
.tr-info[hidden] { display: none; }
.tr-info h2 { margin: 2px 0 6px; font: 700 18px/1.25 "Exo 2", Inter, sans-serif; }
.tr-info p { margin: 0; font-size: 13.5px; color: #33415c; }
.tr-info .tr-info__room { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #0077b6; font-weight: 600; }
.tr-info .tr-info__cap { margin-top: 8px; font-weight: 600; color: var(--tr-ink); }
.tr-info .tr-info__cap:empty { display: none; }
.tr-info__close { position: absolute; right: 8px; top: 6px; width: 30px; height: 30px; border: 0; background: none; font-size: 22px; color: #64748b; cursor: pointer; }
.tr-info__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tr-cta { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #cbd5e1; color: var(--tr-ink);
    font: 600 12.5px/1 Inter, sans-serif; text-decoration: none; }
.tr-cta--orange { background: var(--tr-cta); border-color: var(--tr-cta); color: #fff; }

.tr-help { position: absolute; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 64px); transform: translateX(-50%); margin: 0; padding: 6px 12px;
    border-radius: 999px; background: rgb(10 25 60 / .5); font-size: 12px; color: rgb(255 255 255 / .85); white-space: nowrap; pointer-events: none; transition: opacity .6s ease; }
.tr-help.is-faded { opacity: 0; }

@media (max-width: 640px) {
    .tr-btn span { display: none; }
    .tr-btn:not(.tr-btn--icon):has(span) { width: 32px; padding: 0; justify-content: center; }
    .tr-rooms { left: 10px; right: 10px; transform: none; max-width: none; }
    .tr-info { left: 10px; right: 10px; width: auto; top: auto; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px); }
    .tr-help { white-space: normal; width: calc(100% - 40px); text-align: center; }
    .tr-point span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tr-point i { animation: none; } }
.tr-info:not([hidden]) ~ .tr-help { display: none; }
.tr-point[hidden] { display: none; }
.tr-btn[hidden] { display: none; }
