/* ==========================================================================
   NOVUX SALES TOUR BOT // ESTILOS DEL AGENTE COMERCIAL INTERACTIVO (COT)
   Estándar: NVX-SALES-B2B | Dark Luxury Cyberpunk Aesthetic
   ========================================================================== */

/* Overlay de Fondo Atenuado */
#novux-tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 8, 0.72);
  backdrop-filter: blur(2.5px);
  z-index: 99990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#novux-tour-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Anillo / Spotlight sobre el elemento enfocado */
.novux-tour-spotlight-ring {
  position: absolute;
  pointer-events: none;
  z-index: 99992;
  border: 2px solid #FFE066;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(4, 4, 10, 0.72), 0 0 25px rgba(255, 224, 102, 0.6), inset 0 0 15px rgba(255, 224, 102, 0.3);
  transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: novuxSpotlightPulse 2s infinite ease-in-out;
}

@keyframes novuxSpotlightPulse {
  0%, 100% {
    box-shadow: 0 0 0 9999px rgba(4, 4, 10, 0.72), 0 0 20px rgba(255, 224, 102, 0.5), inset 0 0 10px rgba(255, 224, 102, 0.2);
  }
  50% {
    box-shadow: 0 0 0 9999px rgba(4, 4, 10, 0.72), 0 0 35px rgba(255, 224, 102, 0.85), inset 0 0 20px rgba(255, 224, 102, 0.45);
  }
}

/* Contenedor Principal del Bot Flotante */
#novux-tour-card {
  position: fixed;
  z-index: 99995;
  width: 420px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(145deg, rgba(14, 14, 22, 0.98), rgba(9, 9, 14, 0.98));
  border: 1px solid rgba(197, 160, 89, 0.55);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(197, 160, 89, 0.25);
  padding: 18px 20px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#novux-tour-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Cabecera del Bot */
.tour-bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tour-bot-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mini Avatar Animado del Bot */
.tour-bot-avatar-box {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: radial-gradient(circle, #2d1f08 0%, #0d0d15 100%);
  border: 1px solid #C5A059;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.35);
}

.tour-bot-avatar-box svg {
  animation: novuxBotFloat 2.5s infinite ease-in-out;
}

@keyframes novuxBotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.tour-bot-pulse-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: #34D399;
  border-radius: 50%;
  border: 1.5px solid #0d0d15;
  box-shadow: 0 0 8px #34D399;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.tour-bot-title-group h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFE066;
  letter-spacing: 0.4px;
}

.tour-bot-title-group span {
  font-size: 10px;
  color: #94A3B8;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.tour-bot-close-btn {
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.tour-bot-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Cuerpo del Diálogo */
.tour-bot-body {
  margin-bottom: 16px;
}

.tour-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: #FFE066;
  font-family: monospace;
  font-size: 10px;
  font-weight: bold;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tour-bot-headline {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 8px 0;
}

.tour-bot-text {
  font-size: 12.5px;
  color: #CBD5E1;
  line-height: 1.55;
  margin: 0;
}

/* Contenedor de Botones de Navegación */
.tour-bot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tour-dots-progress {
  display: flex;
  gap: 5px;
}

.tour-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #334155;
  transition: all 0.3s;
}

.tour-dot.active {
  background: #FFE066;
  width: 18px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255, 224, 102, 0.5);
}

.tour-buttons-group {
  display: flex;
  gap: 8px;
}

.btn-tour-nav {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-tour-prev {
  background: #1e1e2d;
  color: #94A3B8;
  border-color: #334155;
}

.btn-tour-prev:hover {
  background: #2a2a3d;
  color: #fff;
}

.btn-tour-next {
  background: linear-gradient(135deg, #C5A059 0%, #FFE066 100%);
  color: #0b0b12;
  border: none;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

.btn-tour-next:hover {
  box-shadow: 0 0 25px rgba(255, 224, 102, 0.7);
  transform: translateY(-1px);
}

/* Botón de WhatsApp Call To Action Final */
.btn-tour-whatsapp {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  padding: 8px 14px;
}

.btn-tour-whatsapp:hover {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.7);
  transform: translateY(-1px);
}

/* Botón Flotante Permanente para Lanzar el Tour (Píldora Cyberpunk) */
#novux-tour-trigger-pill {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 99980;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(20, 20, 32, 0.95), rgba(12, 12, 18, 0.95));
  border: 1px solid #C5A059;
  color: #FFE066;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(197, 160, 89, 0.35);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: novuxPillFloat 3s infinite ease-in-out;
}

#novux-tour-trigger-pill:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: #FFE066;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 224, 102, 0.55);
}

@keyframes novuxPillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pill-bot-avatar {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
