/* Sparkles Text Effect */
.sparkles-text-container {
  position: relative;
  display: inline-block;
}

.sparkles-text {
  position: relative;
  z-index: 10;
}

/* Enhanced sparkle highlights for specific keywords */
.sparkle-highlight {
  position: relative;
  display: inline-block;
  color: #ffffff;
  font-weight: 800;
}

/* Magic sparkle animation around IA */
.sparkle-highlight-ia {
  position: relative;
  color: #B794F4 !important;
  text-shadow: 0 0 8px rgba(183, 148, 244, 0.6);
}

.sparkle-highlight-ia::after {
  content: '✦';
  position: absolute;
  font-size: 1.2rem;
  color: #9E7AFF;
  text-shadow: 0 0 12px rgba(158, 122, 255, 0.8);
  animation: magic-orbit-1 6s linear infinite;
  z-index: 15;
  pointer-events: none;
}

.sparkle-highlight-ia::before {
  content: '✦';
  position: absolute;
  font-size: 0.9rem;
  color: #B794F4;
  text-shadow: 0 0 10px rgba(183, 148, 244, 0.7);
  animation: magic-orbit-2 8s linear infinite reverse;
  z-index: 14;
  pointer-events: none;
}

@keyframes magic-orbit-1 {
  0% {
    top: -8px;
    right: -8px;
    transform: scale(0.8) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    top: -8px;
    right: 8px;
    transform: scale(1.2) rotate(90deg);
    opacity: 1;
  }
  50% {
    top: 8px;
    right: 8px;
    transform: scale(0.9) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    top: 8px;
    right: -8px;
    transform: scale(1.1) rotate(270deg);
    opacity: 0.9;
  }
  100% {
    top: -8px;
    right: -8px;
    transform: scale(0.8) rotate(360deg);
    opacity: 0.7;
  }
}

@keyframes magic-orbit-2 {
  0% {
    top: -12px;
    right: 0px;
    transform: scale(0.6) rotate(0deg);
    opacity: 0.5;
  }
  25% {
    top: 0px;
    right: 12px;
    transform: scale(1.0) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    top: 12px;
    right: 0px;
    transform: scale(0.7) rotate(180deg);
    opacity: 0.6;
  }
  75% {
    top: 0px;
    right: -12px;
    transform: scale(1.1) rotate(270deg);
    opacity: 0.7;
  }
  100% {
    top: -12px;
    right: 0px;
    transform: scale(0.6) rotate(360deg);
    opacity: 0.5;
  }
}

@keyframes magic-orbit-3 {
  0% {
    top: 0px;
    right: -10px;
    transform: scale(0.9) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    top: 10px;
    right: 0px;
    transform: scale(1.3) rotate(90deg);
    opacity: 1;
  }
  50% {
    top: 0px;
    right: 10px;
    transform: scale(0.8) rotate(180deg);
    opacity: 0.7;
  }
  75% {
    top: -10px;
    right: 0px;
    transform: scale(1.0) rotate(270deg);
    opacity: 0.8;
  }
  100% {
    top: 0px;
    right: -10px;
    transform: scale(0.9) rotate(360deg);
    opacity: 0.6;
  }
}

@keyframes magic-orbit-4 {
  0% {
    top: -6px;
    right: -6px;
    transform: scale(0.7) rotate(0deg);
    opacity: 0.4;
  }
  25% {
    top: -6px;
    right: 6px;
    transform: scale(1.1) rotate(90deg);
    opacity: 0.7;
  }
  50% {
    top: 6px;
    right: 6px;
    transform: scale(0.8) rotate(180deg);
    opacity: 0.5;
  }
  75% {
    top: 6px;
    right: -6px;
    transform: scale(1.0) rotate(270deg);
    opacity: 0.6;
  }
  100% {
    top: -6px;
    right: -6px;
    transform: scale(0.7) rotate(360deg);
    opacity: 0.4;
  }
}

@keyframes magic-orbit-5 {
  0% {
    top: -10px;
    right: 5px;
    transform: scale(1.0) rotate(0deg);
    opacity: 0.8;
  }
  25% {
    top: 5px;
    right: 10px;
    transform: scale(1.4) rotate(90deg);
    opacity: 1;
  }
  50% {
    top: 10px;
    right: -5px;
    transform: scale(0.9) rotate(180deg);
    opacity: 0.7;
  }
  75% {
    top: -5px;
    right: -10px;
    transform: scale(1.2) rotate(270deg);
    opacity: 0.9;
  }
  100% {
    top: -10px;
    right: 5px;
    transform: scale(1.0) rotate(360deg);
    opacity: 0.8;
  }
}



/* Subtitle sparkle highlights */
.sparkle-highlight-subtitle {
  position: relative;
  display: inline-block;
  color: #ffffff;
  font-weight: 700;
}

/* Floating WhatsApp decorative icons around the image */
.floating-wa-icons-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-wa-icons-image .wa-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  opacity: 0.9;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
  animation: wa-float 6s ease-in-out infinite;
}

.floating-wa-icons-image .wa-icon-container {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-direction: row;
}

.floating-wa-icons-image .wa-icon-container.wa-icon--1 { 
  top: 10%; 
  right: -10px; 
  animation-delay: 0s; 
}

.floating-wa-icons-image .wa-icon-container.wa-icon--2 { 
  bottom: 15%; 
  right: -8px; 
  animation-delay: 1.2s; 
}

.floating-wa-icons-image .wa-icon-container.wa-icon--3 { 
  top: 30%; 
  left: -8px; 
  animation-delay: 2.1s; 
}

/* AI Typing Bubble */
.ai-typing-bubble {
  background: rgba(240, 240, 240, 0.7);
  border-radius: 14px;
  padding: 6px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  animation: bubble-appear 0.5s ease-out forwards;
  animation-delay: 0.5s;
  backdrop-filter: blur(10px);
}

/* AI Typing Caption */
.ai-typing-caption {
  text-align: center !important;
  margin-bottom: 15px !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}



/* AI Circular Image */
.ai-circular-image {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  z-index: 10;
}

.ai-circular-image img {
  width: 22px;
  height: 22px;
  opacity: 0.8;
  filter: brightness(0.8);
}

.ai-typing-caption .ai-typing-bubble {
  display: inline-flex;
  opacity: 1;
  transform: none;
  animation: none;
  animation-delay: 0s;
  margin-bottom: 8px;
  position: relative;
}

.ai-typing-bubble .typing-dots {
  display: flex;
  gap: 3px;
}

.ai-typing-bubble .ai-icon {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  filter: brightness(0.8);
}

.ai-typing-bubble .typing-dots span {
  width: 5px;
  height: 5px;
  background: rgba(102, 102, 102, 0.7);
  border-radius: 50%;
  animation: typing-dot 1.4s infinite ease-in-out;
}

.ai-typing-bubble .typing-dots span:nth-child(1) { animation-delay: 0s; }
.ai-typing-bubble .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-bubble .typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.ai-typing-bubble .ai-label {
  font-size: 11px;
  color: rgba(102, 102, 102, 0.8);
  font-weight: 600;
  white-space: nowrap;
}

/* Animations */
@keyframes bubble-appear {
  0% {
    opacity: 0;
    transform: translateX(10px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes typing-dot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

/* Floating WhatsApp decorative icons (scoped to hero) - keeping for backward compatibility */
.hero-section .floating-wa-icons {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-section .floating-wa-icons .wa-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  opacity: 0.9;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
  animation: wa-float 6s ease-in-out infinite;
}

.hero-section .floating-wa-icons .wa-icon--1 { top: 20%; right: 25%; animation-delay: 0s; }
.hero-section .floating-wa-icons .wa-icon--2 { bottom: 30%; right: 15%; animation-delay: 1.2s; }
.hero-section .floating-wa-icons .wa-icon--3 { top: 35%; left: 15%; animation-delay: 2.1s; }

@keyframes wa-float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Highlight animation for testimonials */
@keyframes highlightShine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.highlight-anim {
  background: linear-gradient(90deg, #fffbe6 0%, #fff3cd 50%, #fffbe6 100%);
  background-size: 200% 100%;
  animation: highlightShine 2.5s linear infinite;
  border-radius: 6px;
  padding: 0.1em 0.3em;
  font-weight: 600;
}

/* WhatsApp button styles */
.btn-whatsapp {
  background: #075E54 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(7,94,84,0.10);
  transition: background 0.2s;
}

.btn-whatsapp:hover, .btn-whatsapp:focus {
  background: #064C45 !important;
  color: #fff !important;
}

/* Ensure demonstration buttons are easily clickable */
.btn-outline-light, .btn-outline-primary {
  position: relative;
  z-index: 20;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline-light:hover, .btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mobile-specific fixes for demonstration button */
@media (max-width: 767px) {
  .btn-outline-light {
    position: relative !important;
    z-index: 25 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
  }
  
  .hero-cta .btn-outline-light {
    margin-bottom: 15px !important;
  }
  
  /* Align headline to left on mobile */
  .hero-content .lead {
    text-align: left !important;
  }
  
  .sparkles-text {
    text-align: left !important;
  }
  
  /* Adjust floating icons for mobile - full width since image column takes full width */
  .hero-section .floating-wa-icons {
    width: 100%;
    right: auto;
    left: 0;
  }
  
  /* Adjust floating icons around image for mobile */
  .floating-wa-icons-image .wa-icon-container.wa-icon--1 { top: 8%; right: -6px; }
  .floating-wa-icons-image .wa-icon-container.wa-icon--2 { bottom: 12%; right: -5px; }
  .floating-wa-icons-image .wa-icon-container.wa-icon--3 { top: 25%; left: -5px; }
  
  /* Show typing caption on mobile */
  .ai-typing-caption {
    display: block !important;
  }
  
  /* Ensure AI circular image works on mobile */
  .ai-circular-image {
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 10px !important;
  }
  
  .ai-circular-image img {
    width: 22px !important;
    height: 22px !important;
  }
  
  /* Hide floating icons typing bubbles on mobile to save space */
  .floating-wa-icons-image .ai-typing-bubble {
    display: none;
  }
}
