/**
 * V7.2.62 — BOXIES HeroCanvas (mapa interactivo)
 * Lienzo fijo 1920×1080. Viewport = ventana.
 * Builder: pan at zoom=1. Desktop publish: uniform fit-to-host (v0.4).
 */

.hero-canvas-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
  touch-action: none;
  cursor: default;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-canvas-host::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.hero-canvas-host.is-panning {
  cursor: default;
}

.hero-canvas-host.is-middle-panning {
  cursor: grab;
}

.hero-canvas-host.is-middle-panning.is-panning {
  cursor: grabbing;
}

.hero-canvas-host,
.hero-canvas-host * {
  -webkit-user-drag: none;
  user-select: none;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
  will-change: transform;
  background: #050505;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.hero-canvas__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-canvas-host.is-360-live .hero-canvas__media,
.hero-canvas__media.is-embed-live {
  pointer-events: auto;
}

.hero-canvas-host.is-360-edit {
  /* Editor keeps BOXIES overlay hits; iframe is inert. */
}

.hero-canvas-host.is-360-live {
  touch-action: auto;
}

.qr-scene-embed,
.boxies-360-iframe,
.qe-scene-media--embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #050505;
}

.qr-scene-embed-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.hero-canvas-host.is-360-edit .qr-scene-embed {
  pointer-events: none;
}

.hero-canvas-host.is-360-live .qr-scene-embed {
  pointer-events: auto;
}

.hero-canvas__media.hero-renderer,
.hero-canvas__media .hero-renderer__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  -webkit-user-drag: none;
}

.hero-canvas__ix {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-canvas__hint {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  z-index: 30;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-canvas__hint.is-visible {
  opacity: 1;
}

/* Keep legacy HeroRenderer media styles */
.hero-renderer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
  box-sizing: border-box;
}

.hero-renderer__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border: 0;
  pointer-events: none;
  -webkit-user-drag: none;
}

.hero-renderer__void {
  position: absolute;
  inset: 0;
  background: #050505;
}

.hero-renderer__safe {
  position: absolute;
  z-index: 20;
  box-sizing: border-box;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.hero-renderer__safe-label {
  position: absolute;
  left: 8px;
  top: 8px;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
