/* ===== ANIMACIONES FUTURISTAS ADICIONALES ===== */

/* Animación de entrada para las cards del hero */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-side-card {
  animation: slideInFromRight 0.6s ease-out forwards;
}

.hero-side-card:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0;
}

/* Efecto de brillo en hover para botones */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Animación de pulso sutil para el botón del chatbot */
@keyframes subtlePulse {
  0%,
  100% {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 18px 45px rgba(139, 90, 43, 0.4),
      0 0 20px rgba(139, 90, 43, 0.3);
  }
}

#sh-chatbot-toggle {
  animation: subtlePulse 3s ease-in-out infinite;
}

/* Efecto glassmorphism mejorado para las tarjetas */
.plan-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card:hover {
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.95) !important;
}

/* Animación de ondas para el header */
@keyframes wave {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

.header {
  animation: wave 6s ease-in-out infinite;
}

/* Shimmer effect para el texto del hero */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.hero-title {
  background: linear-gradient(
    90deg,
    var(--primary-dark) 0%,
    var(--accent) 50%,
    var(--primary-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 8s linear infinite;
}

/* Efecto de levitación para las pills */
.pill {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(140, 90, 43, 0.2);
}

/* Mejora del botón flotante con efecto de ripple */
#sh-chatbot-toggle {
  position: relative;
  overflow: visible;
}

#sh-chatbot-toggle::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(139, 90, 43, 0.4);
  animation: ripple 2.5s ease-out infinite;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Transición suave para la apertura del chatbot */
#sh-chatbot-widget.sh-open #sh-chatbot-window {
  animation: bounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  50% {
    transform: scale(1.05) translateY(-5px);
  }
  70% {
    transform: scale(0.97) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Efecto de brillo en el logo */
.logo-wrap img {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-wrap:hover img {
  filter: drop-shadow(0 0 10px rgba(139, 90, 43, 0.4));
  transform: scale(1.05);
}
