/* assets/css/ads-tour.css */

#ads-tour-blocker {
  position: fixed;
  inset: 0;
  z-index: 999990;
  background: transparent;
  touch-action: none; /* Prevenir scroll en movil si deslizan en el fondo */
}

#ads-tour-backdrop {
  position: absolute; /* absolute based on document, but wait! If we scroll, absolute moves. Better position: fixed and recalculate on scroll, OR absolute and box-shadow moves with scroll. Absolute combined with box-shadow 9999px works nicely. */
  z-index: 999991;
  box-shadow: 0 0 0 9999px rgba(5, 6, 12, 0.88);
  border-radius: 8px;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Para centrar cuando no hay elemento objetivo */
#ads-tour-backdrop.tour-ambient {
  top: 50% !important;
  left: 50% !important;
  width: 0px !important;
  height: 0px !important;
  box-shadow: 0 0 0 9999px rgba(5, 6, 12, 0.95);
}

#ads-tour-popover {
  position: absolute;
  z-index: 999992;
  background: linear-gradient(180deg, #10162a, #0a0d1a);
  border: 1px solid rgba(126, 166, 255, 0.3);
  box-shadow: 0 16px 42px rgba(0,0,0,0.6), 0 0 30px rgba(126, 166, 255, 0.15);
  border-radius: 12px;
  width: 90%;
  max-width: 360px;
  padding: 24px;
  color: #eaf1ff;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

#ads-tour-popover.tour-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ads-tour-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ads-tour-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: -0.02em;
}

.ads-tour-close {
  background: transparent;
  border: none;
  color: #7ea6ff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.ads-tour-close:hover {
  color: #fff;
}

.ads-tour-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(234, 241, 255, 0.85);
  margin-bottom: 24px;
}

.ads-tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ads-tour-steps {
  font-size: 0.85rem;
  color: rgba(234, 241, 255, 0.5);
  font-weight: 500;
}

.ads-tour-buttons {
  display: flex;
  gap: 12px;
}

.ads-tour-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ads-tour-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ads-tour-btn-primary {
  background: #2563eb;
  border: 1px solid #3b82f6;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ads-tour-btn-primary:hover {
  background: #3b82f6;
  border-color: #60a5fa;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.5);
}

/* Tour Help Button in Topbar */
.ads-tour-trigger {
  background: rgba(126, 166, 255, 0.1);
  border: 1px solid rgba(126, 166, 255, 0.2);
  color: #7ea6ff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 12px;
}

.ads-tour-trigger:hover {
  background: rgba(126, 166, 255, 0.2);
  color: #fff;
}
