/* Tour Virtual 360 de Pica — estilos de interfaz (referencia: INACAP) */
:root {
  --tour-rojo: #d8232a;      /* acento tipo INACAP/Pica */
  --tour-panel: rgba(255,255,255,0.92);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  font-family: "Segoe UI", Arial, sans-serif; background: #111;
}
#viewer { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Logo arriba-izquierda sobre panel blanco translucido */
#tour-logo {
  position: absolute; top: 14px; left: 14px; z-index: 90;
  background: var(--tour-panel); border-radius: 8px; padding: 8px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: transform .15s ease;
}
#tour-logo:hover { transform: translateY(-1px); }
#tour-logo img { display: block; height: 42px; width: auto; }

/* Recuadro de titulo arriba-derecha */
#scene-title {
  position: absolute; top: 14px; right: 14px; z-index: 90;
  background: var(--tour-rojo); color: #fff;
  font-weight: 700; letter-spacing: .3px;
  padding: 10px 18px; border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  max-width: 45vw; text-align: center;
}

/* Pista del modo editor */
#editor-hint {
  display: none; position: absolute; bottom: 130px; left: 50%;
  transform: translateX(-50%); z-index: 95;
  background: rgba(0,0,0,.8); color: #0f0; font-family: monospace;
  padding: 8px 14px; border-radius: 6px; font-size: 13px; white-space: nowrap;
}

/* Mensaje de error / sin WebGL */
#tour-error {
  display: none; position: absolute; inset: 0; z-index: 100;
  background: #111; color: #fff; align-items: center; justify-content: center;
  text-align: center; padding: 24px; font-size: 18px; line-height: 1.6;
}
#tour-error.show { display: flex; }

/* La brujula del plugin va arriba-izquierda; bajarla para no chocar con el logo */
.tour-compass.psv-compass { top: 78px !important; left: 14px !important; }

/* Acento sobre estilos base de PSV */
.psv-navbar { background: rgba(20,20,20,0.85) !important; }
.psv-gallery { background: rgba(20,20,20,0.92) !important; }

/* ── Markers: flechas flotantes + puntos de info (estilo INACAP) ── */
.tmk {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  color: #fff; font-weight: 800; font-size: 20px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.9);
  transition: transform .15s ease;
}
.tmk:hover { transform: scale(1.12); }
.tmk-arrow { background: var(--tour-rojo); font-size: 24px; }
.tmk-info  { background: #e8851a; font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.tmk-video { background: var(--tour-rojo); font-size: 18px; }

/* ── Modal de contenido de los puntos de info ── */
#info-modal {
  display: none; position: absolute; inset: 0; z-index: 300;
  background: rgba(0,0,0,.6); align-items: center; justify-content: center; padding: 20px;
}
#info-modal.show { display: flex; }
#info-modal .tm-card {
  position: relative; background: #fff; color: #1c1c1c; border-radius: 12px;
  max-width: 560px; width: 100%; max-height: 86vh; overflow: auto;
  padding: 26px 26px 22px; box-shadow: 0 12px 50px rgba(0,0,0,.5);
}
#info-modal .tm-close {
  position: absolute; top: 10px; right: 12px; border: 0; background: transparent;
  font-size: 20px; color: #888; cursor: pointer; line-height: 1;
}
#info-modal .tm-close:hover { color: #d8232a; }
#info-modal h3 { margin: 0 0 12px; font-size: 20px; color: #b51d23; padding-right: 24px; }
#info-modal p { margin: 0 0 12px; line-height: 1.6; font-size: 15px; }
#info-modal .tm-img { width: 100%; border-radius: 8px; margin-bottom: 12px; }
#info-modal .tm-video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; display: block; margin-top: 6px; }
#info-modal .tm-vlink { display: inline-block; color: #d8232a; font-weight: 700; text-decoration: none; }

/* Responsivo */
@media (max-width: 600px) {
  #tour-logo img { height: 30px; }
  #tour-logo { padding: 6px 10px; }
  #scene-title { font-size: 13px; padding: 7px 12px; max-width: 60vw; }
  .tour-compass.psv-compass { top: 64px !important; }
}
