/**
 * Zyphra — Tour de onboarding (primera visita)
 */
.zy-tour-root {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
}

.zy-tour-root.is-open {
  pointer-events: auto;
}

.zy-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 25, 48, 0.62);
  opacity: 0;
  transition: opacity 180ms ease;
}

.zy-tour-root.is-open .zy-tour-backdrop {
  opacity: 1;
}

.zy-tour-spotlight {
  position: absolute;
  border-radius: 12px;
  box-shadow:
    0 0 0 9999px rgba(11, 25, 48, 0.62),
    0 0 0 3px rgba(150, 97, 245, 0.85),
    0 12px 32px rgba(105, 54, 217, 0.35);
  transition: top 180ms ease, left 180ms ease, width 180ms ease, height 180ms ease;
  pointer-events: none;
  background: transparent;
}

.zy-tour-card {
  position: absolute;
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--zy-border, #E6EAF1);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(11, 25, 48, 0.22);
  padding: 1.1rem 1.15rem 1rem;
  color: var(--zy-text, #152238);
  font-family: var(--zy-font, Manrope, "Segoe UI", sans-serif);
  z-index: 2;
  transition: top 180ms ease, left 180ms ease;
}

.zy-tour-step {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zy-violet, #6936D9);
  margin: 0 0 0.35rem;
}

.zy-tour-title {
  font-family: var(--zy-font-display, "Space Grotesk", Manrope, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.zy-tour-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--zy-text-secondary, #718096);
}

.zy-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.zy-tour-actions-right {
  display: flex;
  gap: 0.45rem;
}

.zy-tour-btn {
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  border: 1px solid var(--zy-border, #E6EAF1);
  background: #fff;
  color: var(--zy-text, #152238);
}

.zy-tour-btn:hover {
  background: #f8fafc;
}

.zy-tour-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--zy-text-secondary, #718096);
}

.zy-tour-btn-ghost:hover {
  background: var(--zy-violet-soft, #F0EAFF);
  color: var(--zy-violet, #6936D9);
}

.zy-tour-btn-primary {
  border-color: var(--zy-violet, #6936D9);
  background: var(--zy-violet, #6936D9);
  color: #fff;
}

.zy-tour-btn-primary:hover {
  background: #5a2bc4;
  border-color: #5a2bc4;
}

.zy-tour-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.zy-tour-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d5dbe6;
}

.zy-tour-dot.is-active {
  width: 18px;
  background: var(--zy-violet, #6936D9);
}

body.zy-tour-active {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .zy-tour-card {
    left: 16px !important;
    right: 16px;
    width: auto;
    bottom: 18px !important;
    top: auto !important;
  }
}
