#page-recorrido360 {
  background: #080808;
  overflow: clip;
}
.r360-iframe-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.r360-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.r360-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 8, 8, 0.4) 0%,
      transparent 22%,
      transparent 75%,
      rgba(8, 8, 8, 0.28) 100%);
  pointer-events: none;
  transition: opacity 0.35s;
}
.r360-fab-label {
  touch-action: manipulation;
  line-height: 1;
}
.r360-now-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  border: 1.5px solid #fff;
  border-radius: 100px;
  height: 34px;
  box-sizing: border-box;
  padding: 0 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transition: opacity 0.3s;
}
.r360-now-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-contrast);
  flex-shrink: 0;
}
.r360-now-label {
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}
.r360-now-name {
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 400;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 899px) and (orientation: portrait) {
  .r360-now-dot,
  .r360-now-label {
    display: none;
  }
}
@media (max-width: 480px) {
  .r360-now-name {
    max-width: 110px;
  }
}
@media (max-height: 500px) and (max-width: 1024px) {
  .r360-now-name {
    font-size: 0.7rem;
    max-width: 100px;
  }
}
.r360-share-toast {
  position: fixed;
  top: calc(var(--ui-btn-top) + (var(--ui-btn-size) + var(--ui-btn-gap)) * 2);
  left: var(--ui-btn-edge);
  z-index: 3340;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1.5px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}
.r360-share-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.r360-backdrop {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  touch-action: manipulation;
}
.r360-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}
.r360-handle {
  display: none;
  justify-content: center;
  padding: 10px 0 4px;
  flex-shrink: 0;
}
.r360-handle span {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  display: block;
}
.r360-drawer {
  position: fixed;
  top: calc(22px + 42px + 8px + env(safe-area-inset-top));
  right: 22px;
  bottom: auto;
  left: auto;
  width: 240px;
  z-index: var(--z-r360-drawer, 3380);
  display: flex;
  flex-direction: column;
  background: var(--accent-contrast);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(31, 57, 63, 0.16);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(0, 0, 0, 0.04) inset;
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.22s;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
}
.r360-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.r360-drawer::before {
  display: none !important;
}
.r360-drawer-inner {
  display: flex;
  flex-direction: column;
  padding: 8px 6px 8px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: min(70vh, 480px);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}
.r360-drawer-inner::-webkit-scrollbar {
  width: 3px;
}
.r360-drawer-inner::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 2px;
}
@media (max-width: 480px) {
  .r360-drawer-inner {
    padding: 6px 4px 8px;
  }
}
@media (max-height: 500px) and (max-width: 1024px) {
  .r360-drawer-inner {
    padding: 4px 4px 8px;
  }
}
.r360-drawer-header {
  padding: 6px 10px 4px;
  flex-shrink: 0;
}
.r360-drawer-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
}
.r360-drawer-head-text {
  flex: 1;
}
.r360-eyebrow {
  font-size: 0.54rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: "DM Sans", sans-serif;
}
.r360-title {
  display: block;
  margin: 2px 0 0;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  font-family: "DM Sans", sans-serif;
}
.r360-subtitle {
  display: none;
}
.r360-divider {
  height: 0.5px;
  background: rgba(31, 57, 63, 0.18);
  margin: 6px 0;
  width: 100%;
}
.r360-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 2px;
}
.r360-list::-webkit-scrollbar {
  display: none;
}
.r360-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  color: rgba(31, 57, 63, 0.72);
  text-align: left;
  width: 100%;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .r360-item:hover {
    background: rgba(31, 57, 63, 0.06);
    color: var(--accent);
  }
}
.r360-item.active {
  background: color-mix(in srgb, var(--accent-contrast) 42%, #fff);
  color: var(--accent-contrast-ink);
  box-shadow: 0 1px 3px rgba(8, 16, 18, 0.12);
}
@media (hover: hover) {
  .r360-item.active:hover {
    background: color-mix(in srgb, var(--accent-contrast) 28%, #fff);
  }
}
.r360-item-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(31, 57, 63, 0.3);
  transition: background 0.15s;
}
.r360-item.active .r360-item-dot {
  background: var(--accent);
}
.r360-item-body {
  flex: 1;
  min-width: 0;
}
.r360-item-name {
  font-size: 0.78rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.r360-item.active .r360-item-name {
  font-weight: 500;
}
@media (max-width: 480px) {
  .r360-item {
    padding: 9px 10px;
  }
  .r360-item-name {
    font-size: 0.75rem;
  }
}
@media (max-height: 500px) and (max-width: 1024px) {
  .r360-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 1px;
    flex: none;
    padding-bottom: 4px;
  }
  .r360-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 8px 10px;
    border-radius: 9px;
    min-width: unset;
    max-width: unset;
  }
  .r360-item-name {
    font-size: 0.7rem;
    white-space: nowrap;
  }
  .qr-btn--r360 {
    z-index: 3210;
  }
}
.fs-btn {
  position: fixed;
  top: calc(22px + env(safe-area-inset-top));
  right: 22px;
  z-index: 3100;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 2px var(--accent-ui-border);
}
@media (hover: hover) {
  .fs-btn:hover {
    transform: scale(1.05);
  }
}
.fs-btn:active {
  transform: scale(0.96);
}
.fs-icon-expand {
  display: block;
}
.fs-icon-compress {
  display: none;
}
.fs-btn.is-fullscreen .fs-icon-expand {
  display: none;
}
.fs-btn.is-fullscreen .fs-icon-compress {
  display: block;
}
.qr-btn {
  position: fixed;
  top: calc(22px + env(safe-area-inset-top));
  right: calc(22px + 42px + 10px);
  z-index: 3100;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .qr-btn:hover {
    transform: scale(1.05);
  }
}
.qr-btn:active {
  transform: scale(0.96);
}
.qr-btn--r360 {
  right: calc(22px + 42px + 10px + 42px + 10px);
  z-index: 3200;
}
#page-recorrido360 .qr-btn--r360 {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
@media (max-width: 760px) {
  .fs-btn--r360 {
    top: calc(14px + env(safe-area-inset-top));
  }
  .qr-btn--r360 {
    top: calc(14px + env(safe-area-inset-top) + 42px + 10px);
  }
}
@media (max-height: 400px) {
  .fs-btn--r360 {
    top: calc(10px + env(safe-area-inset-top));
  }
  .qr-btn--r360 {
    top: calc(10px + env(safe-area-inset-top) + 34px + 8px);
  }
}
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.qr-modal[hidden] {
  display: none;
}
.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.qr-modal-box {
  position: relative;
  z-index: 1;
  width: min(280px, calc(100vw - 40px));
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 42px 14px 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  animation: qrModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes qrModalIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.qr-modal-logo {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  height: 22px;
  width: auto;
  object-fit: contain;
}
.qr-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  color: rgba(17, 17, 17, 0.55);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, color 0.2s;
}
@media (hover: hover) {
  .qr-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #111111;
  }
}
.qr-modal-img {
  width: 100%;
  height: auto;
  display: block;
}
.qr-modal-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
@media (hover: hover) {
  .qr-modal-dl:hover {
    background: var(--accent-strong);
  }
}
.qr-modal-dl:disabled {
  opacity: 0.55;
  cursor: default;
}
.qr-modal-dl svg {
  flex-shrink: 0;
}
@media (max-height: 500px) {
  .qr-modal {
    padding: 10px;
  }
  .qr-modal-box {
    width: min(200px, calc(100vw - 20px));
    border-radius: 12px;
    padding: 32px 10px 10px;
  }
  .qr-modal-logo {
    top: 9px;
    left: 10px;
    height: 16px;
  }
  .qr-modal-close {
    width: 22px;
    height: 22px;
    top: 7px;
    right: 7px;
  }
  .qr-modal-dl {
    margin-top: 9px;
    padding: 8px 12px;
    font-size: 12px;
  }
}
.rotate-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, 0.82);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.rotate-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.rotate-coach-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 4px;
}
.rotate-coach-line1 {
  font-family: "DM Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
}
.rotate-coach-dismiss {
  position: absolute;
  bottom: calc(34px + env(safe-area-inset-bottom));
  font-family: "DM Sans", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
}
@media (min-width: 600px) {
  .rotate-overlay {
    display: none !important;
  }
}
@media (min-width: 361px) and (max-width: 430px) and (orientation: portrait) {
  body:has(#page-recorrido360.page-active) {
    --ui-btn-size: 40px;
  }
}
