/* ---------- Página de detalle OBtech ---------- */
.ppal-banner {
    width: 100% !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Capa oscura semitransparente + la variable que lee la imagen del HTML */
    background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.65)), var(--banner-img) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 8px !important;
    margin-bottom: 2.5rem !important;
    color: #ffffff;
    font-weight: 700;
    font-size: 26px;
    margin: 0;
}

.ppal-idi-subtitulo {
  color: var(--ppal-azul);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 1.5rem 0 1rem;
}

.idi-seccion {
  padding: 2rem 0;
  border-bottom: 1px solid #eef0f3;
}
.idi-seccion:last-child {
  border-bottom: none;
}

.idi-visor-3d {
  margin: 2rem 0;
}

/* Puntos interactivos sobre el modelo 3D */
.idi-hotspot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
}

.idi-hotspot--verde { background: #47e6a9; }
.idi-hotspot--azul  { background: #267dcf; }
.idi-hotspot--rojo  { background: #ff4444; }

.idi-hotspot-tooltip {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  max-width: 220px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.idi-hotspot:hover .idi-hotspot-tooltip,
.idi-hotspot:focus .idi-hotspot-tooltip {
  opacity: 1;
}

model-viewer.idi-modelo-obtech {
  width: 100% !important;
  height: 500px !important;
  background-color: #ffffff !important;
  border-radius: 8px !important;
  border: 1px solid #eef0f3 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
  display: block !important;
}

/* Ajuste para pantallas móviles y tablets */
@media (max-width: 768px) {
  model-viewer.idi-modelo-obtech {
    height: 350px !important; 
  }
}