/* ============================================================
   TUTORIAL "TU PRIMER DÍA EN VIRTUALFIGUS" — ver tutorial.js
   ============================================================ */

/* Punto fijo invisible en (0,0): tutorial.js mide dónde cae para ubicar
   el foco exactamente sobre el elemento. */
.tuto-sonda {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Pasos sin botón para resaltar: oscurece todo y frena los toques. */
.tuto-velo {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(0, 0, 0, 0.7);
}

/* Foco: un recuadro sobre el botón a tocar; su sombra enorme oscurece el
   resto. No frena los toques: el usuario toca el botón de verdad. */
.tuto-foco {
  position: fixed;
  z-index: 6000;
  border-radius: 16px;
  border: 3px solid #7dffa0;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.62), 0 0 18px 4px rgba(125, 255, 160, 0.7);
  pointer-events: none;
  /* Sin transición de posición: tutorial.js lo ubica en cada cuadro
     sobre la posición real del elemento (si se animara, quedaría
     corrido mientras el elemento se mueve o se hace scroll). */
  animation: tuto-foco-pulso 1.4s ease-in-out infinite;
}

.tuto-foco.tuto-foco-sin-sombra {
  box-shadow: 0 0 18px 4px rgba(125, 255, 160, 0.7);
}

@keyframes tuto-foco-pulso {
  0%, 100% { border-color: #7dffa0; }
  50% { border-color: #ffffff; }
}

.tuto-velo.hidden,
.tuto-foco.hidden,
.tuto-globo.hidden {
  display: none;
}

/* Globo */
.tuto-globo {
  position: fixed;
  left: 16px;
  right: 16px;
  z-index: 6001;
  max-width: 440px;
  margin: 0 auto;
  padding: 0.9rem 1rem 1rem;
  border-radius: 20px;
  border: 2px solid rgba(125, 255, 160, 0.75);
  background: linear-gradient(160deg, #123d25, #071a0f);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  color: #ffffff;
  max-height: 60vh;
  overflow-y: auto;
}

/* La posición vertical la pone tutorial.js (pegado al elemento resaltado). */
.tuto-globo-centro {
  top: 50%;
  transform: translateY(-50%);
}

.tuto-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.tuto-progreso {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9fe8b7;
}

.tuto-saltar {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.2rem 0;
}

.tuto-titulo {
  margin: 0 0 0.35rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  color: #7dffa0;
}

.tuto-texto {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.45;
  color: #e3f7ea;
}

.tuto-acciones {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.tuto-acciones .button-primary {
  min-width: 120px;
}

.tuto-acciones .button-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tuto-acciones .hidden {
  display: none;
}

.tuto-no-puedo {
  margin-right: auto;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Regalo de bienvenida */
.tuto-regalo-lista {
  margin: 0.7rem 0 0.8rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.tuto-regalo-btn {
  width: 100%;
  font-size: 1.05rem;
  animation: tuto-regalo-latido 1.1s ease-in-out infinite;
}

@keyframes tuto-regalo-latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.tuto-regalo-hecho {
  margin: 0.7rem 0 0;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: rgba(125, 255, 160, 0.14);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
}

/* Confirmar "Saltar" */
.tuto-confirmar {
  margin-top: 0.7rem;
  padding: 0.7rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.86rem;
  line-height: 1.4;
}

.tuto-confirmar p {
  margin: 0 0 0.6rem;
}

.tuto-confirmar-botones {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .tuto-foco,
  .tuto-regalo-btn {
    animation: none;
  }
}
