

/* Todos los nombres son únicos para evitar conflictos */
.popup-unico-contenedor {
  margin: 0;
  padding: 0;
}

.popup-unico-boton {
  padding: 15px 30px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.popup-unico-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 0;
}

.popup-unico-ventana {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  display: none;
  z-index: 10000;
  max-width: 90%;
  max-height: 90%;
}

.popup-unico-ventana img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 4px;
}

.popup-unico-cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
  color: #666;
  background: white;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  z-index: 10001;
}

.popup-unico-cerrar:hover {
  color: #000;
}

.popup-unico-mostrar {
  display: block !important;
}

/* Forzar que el modal de Bootstrap esté por encima del pop-up personalizado */
.modal {
  z-index: 10050 !important;
  /* Mayor que 10000 */
}

.modal-backdrop {
  z-index: 10049 !important;
  /* Un poco menos que el modal */
}

/* Si el modal específico necesita aún más prioridad */
#headquartersModal3.modal {
  z-index: 10050 !important;
}
