body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #09090b;
  font-family: system-ui, -apple-system, sans-serif;
}

#canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: none;
}

#canvas-container:active {
  cursor: grabbing;
}

/* Capa de transición suave acelerada por GPU (0% costo CPU) */
#scene-transition-overlay {
  position: absolute;
  inset: 0;
  background: #09090b;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 15;
  will-change: opacity;
}

.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  z-index: 20;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hotspot-pin:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.pulse-ring {
  animation: pulse 2s infinite;
  position: absolute;
  top: 2px;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estado activo del botón de giroscopio */
.gyro-active {
  background: rgba(99, 102, 241, 0.85) !important;
  border-color: rgba(165, 180, 252, 0.6) !important;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }