/* Tour guiado — overlay por encima de combos (z-99999) */
#appTourRoot {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
}

#appTourRoot.is-active {
  display: block;
  pointer-events: auto;
}

#appTourBackdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.48);
  transition: opacity 220ms ease;
}

#appTourHole {
  position: absolute;
  z-index: 1;
  border-radius: 12px;
  box-shadow:
    0 0 0 2px rgba(251, 146, 60, 0.95),
    0 0 0 9999px rgba(15, 23, 42, 0.48);
  transition:
    top 220ms ease,
    left 220ms ease,
    width 220ms ease,
    height 220ms ease,
    opacity 180ms ease;
  pointer-events: auto;
}

#appTourHole.is-hidden {
  opacity: 0;
  pointer-events: none;
}

#appTourCard {
  position: fixed;
  z-index: 2;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  max-width: min(26rem, calc(100vw - 2rem));
  width: min(26rem, calc(100vw - 2rem));
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  border-radius: 1rem;
  background: #fffefb;
  border: 1px solid rgba(251, 146, 60, 0.35);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 1.1rem 1.15rem 1rem;
  pointer-events: auto;
}

#appTourCard.app-tour-card--center {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  max-height: min(85vh, 36rem);
}

#appTourCard h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1917;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

#appTourCard .app-tour-body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #57534e;
  margin: 0;
}

#appTourCard .app-tour-body p + p {
  margin-top: 0.65rem;
}

#appTourCard .app-tour-body strong {
  color: #292524;
  font-weight: 600;
}

#appTourProgress {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8a29e;
  margin-bottom: 0.45rem;
}

#appTourActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(231, 229, 228, 0.95);
}

#appTourActions .app-tour-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.app-tour-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.app-tour-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.app-tour-btn--ghost {
  background: #fff;
  border-color: #e7e5e4;
  color: #44403c;
}

.app-tour-btn--ghost:hover:not(:disabled) {
  background: #fafaf9;
}

.app-tour-btn--primary {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.06);
}

.app-tour-btn--primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.app-tour-btn--muted {
  background: transparent;
  color: #78716c;
  font-weight: 500;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.app-tour-btn--muted:hover:not(:disabled) {
  color: #44403c;
}

@media (max-width: 480px) {
  #appTourCard {
    max-width: calc(100vw - 1.25rem);
    width: calc(100vw - 1.25rem);
  }
}
