html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#container {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#panorama-container {
  width: 100%;
  height: 100%;
}

/* Panel de conversación */
#panel {
  width: 320px;
  height: auto;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 20px;
  display: none;
}

#panel::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 48%;
  margin-left: -5px;
  border-width: 10px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

#panel.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}

#panel h1 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 10px;
}

#panel p {
  font-size: 14px;
  color: #333;
  text-align: center;
}

.hotspot-text {
  position: absolute;
  top: 50%;
  left: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.95);
  color: black;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  display: none;
  z-index: 1000;
}

.panolens-infospot {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: black !important;
  padding: 10px 20px !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  font-weight: bold !important;
  text-shadow: none !important;
}

.imgHotspot {
  width: 100px;
  height: 100px;
  background-color: #ff1616;
}

.pulse {
  animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
  }
}

.panolens-infospot::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 48%;
  margin-left: -5px;
  border-width: 10px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

.hotspot-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 48%;
  margin-left: -5px;
  border-width: 10px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

#btnLogin {
  background-color: #000;
  border-color: transparent;
  color: #fff;
}

.closelogin {
  color: var(--danger);
  background-color: white;
  border: none;
  padding: 5px;
  border-radius: 10px;
}

.closelogin:hover {
  cursor: pointer;
  color: white;
  background-color: red;
}

/* Avatar */
#avatar-image {
  position: fixed;
  top: 190px;
  right: 15px;
  width: 45px;
  height: 45px;
  border-radius: 100%;
}

#avatarImage {
  z-index: 10;
}

/* Loader */
#loading-screen {
  position: fixed;
  bottom: 120px;
  left: 10px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}

/* Loader general, el que se muestra en todas las acciones*/
.loader {
  width: 40px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid #0000;
  border-radius: 50%;
  border-right-color: #ffffff;
  animation: l15 1s infinite linear;
}
.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
  animation: l15 2s infinite;
}
.loader::after {
  margin: 8px;
  animation-duration: 3s;
}
@keyframes l15 {
  100% {
    transform: rotate(1turn);
  }
}

#loading-text {
  font-size: 12px;
  color: white;
}

/* HTML: <div class="loader"></div> */
.loadered {
  width: fit-content;
  font-weight: bold;
  font-family: monospace;
  font-size: 20px;
  clip-path: inset(0 100% 0 0);
  animation: l5 2s steps(11) infinite;
}
.divCenetred {
  display: flex;
  justify-content: center; /* Centrar horizontalmente */
  align-items: center;
}
.loadered:before {
  content: "Guardando...";
}
@keyframes l5 {
  to {
    clip-path: inset(0 -1ch 0 0);
  }
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  #panel {
    padding: 10px;
    font-size: 14px;
  }

  .hotspot-text {
    font-size: 10px;
    padding: 5px 10px;
  }

  #avatar-image {
    width: 40px;
    height: 40px;
    right: 15px;
  }

  #loading-screen {
    left: 10px;
    bottom: 80px;
    width: 60px;
    height: 60px;
  }

  #img-loading {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  #loading-text {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  #panel {
    padding: 10px;
    font-size: 14px;
  }

  .hotspot-text {
    font-size: 10px;
    padding: 5px 10px;
  }

  #avatar-image {
    width: 40px;
    height: 40px;
    right: 15px;
  }

  #loading-screen {
    left: 10px;
    bottom: 80px;
    width: 60px;
    height: 60px;
  }

  #img-loading {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  #loading-text {
    font-size: 10px;
  }
}

.dangerButton {
  background-color: var(--danger);
  color: #fff;
}

#loginModal .modal-dialog .modal-content {
  background-image: var(--bg-linear);
  color: var(--color);
}

.modal-header {
  border-bottom: none;
}

.modal-title {
  font-weight: 600;
}

.btn-facebook {
  background-color: #1f7bf2;
  color: #fff;
}

.btn-x {
  background-color: #000000;
  color: #fff;
}

.btn-instagram {
  background: #833ab4;
  background: linear-gradient(to right, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
}

.btn-instagram:hover {
  background: #833ab4;
  background: linear-gradient(to right, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
}

/* MODALES */
.modal.modalFullScreen {
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.modalFullScreen .modal-dialog {
  max-width: 100% !important;
  width: 96%;
}

.modalFullScreen iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modalFullScreen .modal-content {
  height: 85vh;
  background-image: var(--bg-linear);
  color: var(--color);
}

#cameraModal .modal-content {
  height: auto !important;
}

#modal-ardace-demo {
  box-sizing: initial;
  padding-left: 0px;
}

.header-arcade {
  background-image: url("../img/arcade/top.png");
  background-repeat: no-repeat;
  /* background-size: cover; */
  background-position: center; /* Centra la imagen */
  height: 80px; /* Define una altura, ajusta según lo que necesites */
  color: white; /* Para que el texto sea visible */
  background-color: #000;
}

.modal-footer {
  border: 0px;
}

.footer-arcade {
  background-image: url("../img/arcade/bottom.png");
  background-repeat: no-repeat;
  /* background-size: cover; */
  background-position: center; /* Centra la imagen */
  height: 90px; /* Define una altura, ajusta según lo que necesites */
  color: white; /* Para que el texto sea visible */
  background-color: #000;
}

.modal-body-arcade {
  padding: 0 !important; /* Añade espacio interno en lugar de margen */
  background-color: white; /* Fondo del contenido principal */
}

.modal-content-arcade {
  height: 100vh !important;
}

.modal-dialog-arcade {
  width: 100% !important;
  margin: 0px 0px 0px 0px;
}

#modal-arcade-demo .closeFullScreenModal {
  position: absolute;
  top: 15px;
  right: 15px;
  border: none;
  font-size: 25px;
  cursor: pointer;
  background-color: #ffffff00;
  border-radius: 5px;
  transition: transform 0.3s ease; /* Transición suave al cambiar de tamaño */
}

#modal-arcade-demo .closeFullScreenModal i {
  color: white;
  font-size: 35px; /* Tamaño inicial del icono */
  transition: transform 0.3s ease; /* Transición suave para el icono */
}

#modal-arcade-demo .closeFullScreenModal:hover i {
  transform: scale(1.5);
  color: #ff1616;
}

.hotspot-conversation {
  position: absolute;
  top: 50%;
  left: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  background-image: var(--bg-linear);
  color: var(--color);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  display: none;
  z-index: 1000;
  width: 320px;
  height: auto;
}

.hotspot-conversation::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 48%;
  margin-left: -5px;
  border-width: 10px;
  border-style: solid;
  border-image: var(--bg-linear) transparent transparent transparent;
}

#tidio-chat-iframe {
  bottom: 40px !important;
  right: 2px !important;
}
@media only screen and (max-width: 980px) {
  #tidio-chat-iframe {
    bottom: 40px !important;
    right: 2px !important;
  }
}

/* =================== MODAL ====================== */

/* Estilo personalizado para el modal fullscreen con margen */
.modal-peek {
  --modal-peek-margin: 40px;
  padding: var(--modal-peek-margin);
}

.modal-peek .modal-dialog {
  margin: 0;
  max-width: none;
  height: calc(100vh - 2 * var(--modal-peek-margin));
  animation: slideIn 0.4s ease-out;
}

.modal-peek .modal-content {
  height: 100%;
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.modal-peek .modal-header {
  border-bottom: none; /* Eliminamos el borde inferior del header */
  padding: 0; /* Eliminamos el padding del header */
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  background: transparent;
  z-index: 99;
}

.modal-peek .modal-body {
  padding: 0;
  overflow: hidden;
  height: 100%; /* Aseguramos que ocupe todo el espacio disponible */
}

/* Estilo para el botón de cerrar */
.btn-close-custom {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: none;
  margin: 0;
  position: relative;
  cursor: pointer;
}

.btn-close-custom:hover {
  opacity: 1;
  background: rgba(255, 0, 0, 0.8);
  transform: rotate(90deg);
}

.btn-close-custom i {
  color: white;
  font-size: 1.2rem;
}

/* Animación de entrada */
@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Estilo para el iframe */
.iframe-container {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.blur {
  filter: blur(5px);
}

/* =================== */

.alerta-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #d32f2f; /* Rojo intenso */
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
  z-index: 1000;
}

.icono-alerta {
  font-size: 72px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

h1.alerta-titulo {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 1 !important;
}

p.alerta-mensaje {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  line-height: 1.5;
}

p.alerta-mensaje img {
  width: 40%;
}

.boton-entendido {
  background-color: white;
  color: #d32f2f;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.boton-entendido:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.boton-entendido:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nota {
  margin-top: 25px;
  font-size: 0.9rem;
  opacity: 0.8;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  h1.alerta-titulo {
    font-size: 1.8rem;
  }

  p.alerta-mensaje {
    font-size: 1rem;
  }

  .icono-alerta {
    font-size: 60px;
  }
}

button#btnEntendido:disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
}

.alerta-container h1,
.alerta-container p,
.alerta-container .icono-alerta {
  position: relative;
  z-index: 2;
}

.icono-alerta {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.alerta-titulo {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

.alerta-mensaje {
  font-size: 1.2rem;
  margin: 0;
}

.circle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1001;
}

.circle {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  background-image: radial-gradient(
    hsl(210, 100%, 80%),
    hsl(210, 100%, 80%) 10%,
    hsla(210, 100%, 80%, 0) 56%
  );
  z-index: 1002;

  animation: fade-frames 2s infinite, scale-frames 2s infinite;
}

@keyframes fade-frames {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

@keyframes scale-frames {
  0% {
    transform: scale(0.4);
  }
  50% {
    transform: scale(2.2);
  }
  100% {
    transform: scale(0.4);
  }
}

/* Oculto por defecto */
.particlesContainer.oculto {
  display: none;
}

/* Cuando se activa */
.particlesContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background-color: rgba(36, 37, 41, 0.85); /* 85% opacidad */
}

/* Canvas de partículas */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Contenido centrado encima del canvas */
.contenidoTexto {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: white;
  text-align: center;
  padding: 20px;
}



/* .particlesContainer > *:not(.circle-container) {
  z-index: 1;
  position: relative;
} */

.oculto {
  display: none !important;
}

img {
  -webkit-user-drag: none !important;
}

/* Boton para omitir las interacciones */
.btn_omitir {
  background-color: #32323200;
  border: none;
  color: #fff;
  margin-top: 20px;
  font-size: 21px;
  position: absolute; 
  bottom: 1px;
  cursor: pointer;
  right: 20px;
  font-weight: bold;
  font-style: italic;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 1001;
}

.btn_omitir:hover {
  background-color: #00000061;
  color: #ccc;
  transition: color 0.3s ease;
  transform: scale(1.1);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fadeInDown {
  animation: fadeInDown 0.6s ease;
}

.loader-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(255,255,255,0.9);
  z-index: 10;
}