/* Recorrido de primer ingreso (D166). Ver static/tour.js.
 * El foco oscurece todo lo demás con una sombra enorme: así el elemento iluminado sigue
 * siendo el real, con su estado y su texto, y no una copia. */

.niza-tour-capa {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: transparent;           /* con foco, oscurece la sombra del foco */
}
.niza-tour-capa--modal {
  background: rgba(10, 22, 40, 0.62); /* sin elemento: bienvenida y cierre */
}

.niza-tour-foco {
  position: fixed;
  z-index: 9991;
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 0 0 9999px rgba(10, 22, 40, 0.62);
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  pointer-events: none;
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
}

.niza-tour-globo {
  position: fixed;
  z-index: 9992;
  width: min(340px, calc(100vw - 32px));
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 12px;
  border-top: 3px solid var(--accent-primary);
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.28);
  padding: var(--space-4, 1rem) var(--space-4, 1rem) var(--space-3, .75rem);
  font-family: var(--font-sans);
  transition: left .25s ease, top .25s ease;
}

.niza-tour-contador {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-1, .25rem);
}

.niza-tour-titulo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-deep);
  margin-bottom: var(--space-2, .5rem);
}

.niza-tour-texto {
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: 0 0 var(--space-4, 1rem);
}

.niza-tour-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2, .5rem);
}
.niza-tour-botones { display: flex; gap: var(--space-2, .5rem); }

.niza-tour-globo button {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm, 6px);
  padding: var(--space-2, .5rem) var(--space-3, .75rem);
  cursor: pointer;
  border: 1px solid transparent;
}
.niza-tour-saltar {
  background: none;
  color: var(--text-secondary);
  padding-left: 0 !important;
}
.niza-tour-saltar:hover { color: var(--text-primary); }
.niza-tour-atras {
  background: var(--bg-card);
  border-color: var(--border-default) !important;
  color: var(--text-primary);
}
.niza-tour-siguiente {
  background: var(--color-deep);
  color: var(--text-on-deep);
  font-weight: 500;
}
.niza-tour-siguiente:hover { background: #0D1F3C; }
.niza-tour-globo button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .niza-tour-foco, .niza-tour-globo { transition: none; }
}
