/* Animaciones y efectos modernos adicionales */

/* Animación de entrada suave */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Animación de escala */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animación de slide desde la izquierda */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animación de slide desde la derecha */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animación de rotación suave */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: rotate(0);
  }
}

/* Animación de pulso */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Animación de brillo */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Animación de onda */
@keyframes wave {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  75% {
    transform: translateY(10px);
  }
}

/* Animación de rebote suave */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Animación de resplandor divino */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 25px rgba(108, 92, 231, 0.5);
  }
  33% {
    box-shadow: 0 0 45px rgba(255, 215, 0, 0.7);
  }
  66% {
    box-shadow: 0 0 35px rgba(0, 206, 201, 0.6);
  }
}

/* Animación de gradiente */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animación de flotación */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Animación de parpadeo suave */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Clases de utilidad para animaciones */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.7s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.7s ease-out;
}

.animate-rotate-in {
  animation: rotateIn 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

.animate-wave {
  animation: wave 3s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Delays para animaciones escalonadas */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Transiciones suaves */
.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-fast {
  transition: all 0.15s ease;
}

.transition-slow {
  transition: all 0.6s ease;
}

/* Efectos hover especiales */
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

.hover-bright:hover {
  filter: brightness(1.2);
}

/* Efectos de partículas en el cursor */
@keyframes cursorTrail {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* Efecto de onda al hacer clic */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.ripple-effect:active::after {
  animation: ripple 0.6s ease-out;
}

/* Efecto de cristal (glassmorphism) */
.glass-effect {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Efecto neón divino con paletas espirituales */
.neon-effect {
  text-shadow: 
    0 0 5px rgba(108, 92, 231, 0.8),
    0 0 10px rgba(255, 215, 0, 0.6),
    0 0 20px rgba(0, 206, 201, 0.4),
    0 0 40px rgba(108, 92, 231, 0.3);
  animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% {
    text-shadow: 
      0 0 5px rgba(108, 92, 231, 0.8),
      0 0 10px rgba(255, 215, 0, 0.6),
      0 0 20px rgba(0, 206, 201, 0.4),
      0 0 40px rgba(108, 92, 231, 0.3);
  }
  33% {
    text-shadow: 
      0 0 10px rgba(255, 215, 0, 1),
      0 0 20px rgba(255, 215, 0, 0.8),
      0 0 30px rgba(128, 0, 32, 0.6),
      0 0 60px rgba(255, 215, 0, 0.5);
  }
  66% {
    text-shadow: 
      0 0 10px rgba(0, 206, 201, 1),
      0 0 20px rgba(0, 206, 201, 0.8),
      0 0 30px rgba(39, 174, 96, 0.6),
      0 0 60px rgba(0, 206, 201, 0.5);
  }
}

/* Efecto parallax suave */
.parallax-slow {
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optimización de rendimiento */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* Contenedor con animación de aparición */
.stagger-container > * {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.stagger-container > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-container > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-container > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-container > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-container > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-container > *:nth-child(6) { animation-delay: 0.6s; }

/* 🌟 Animaciones espirituales adicionales con las nuevas paletas */

/* Resplandor dorado divino */
@keyframes goldenGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4),
                0 0 40px rgba(255, 215, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.7),
                0 0 80px rgba(255, 215, 0, 0.4);
  }
}

.animate-golden-glow {
  animation: goldenGlow 2.5s ease-in-out infinite;
}

/* Aura celestial */
@keyframes celestialAura {
  0%, 100% {
    box-shadow: 0 0 25px rgba(93, 173, 226, 0.5),
                0 0 50px rgba(39, 174, 96, 0.3);
  }
  50% {
    box-shadow: 0 0 50px rgba(93, 173, 226, 0.7),
                0 0 100px rgba(39, 174, 96, 0.5);
  }
}

.animate-celestial-aura {
  animation: celestialAura 3s ease-in-out infinite;
}

/* Pulso violeta místico */
@keyframes mysticPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.7),
                0 0 60px rgba(27, 20, 100, 0.5);
  }
}

.animate-mystic-pulse {
  animation: mysticPulse 2s ease-in-out infinite;
}

/* Onda turquesa luminosa */
@keyframes turquoiseWave {
  0%, 100% {
    border-color: rgba(0, 206, 201, 0.3);
    box-shadow: 0 0 15px rgba(0, 206, 201, 0.3);
  }
  50% {
    border-color: rgba(0, 206, 201, 0.7);
    box-shadow: 0 0 40px rgba(0, 206, 201, 0.6);
  }
}

.animate-turquoise-wave {
  animation: turquoiseWave 2.5s ease-in-out infinite;
}

/* Brillo del vino sagrado */
@keyframes sacredWine {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(128, 0, 32, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(128, 0, 32, 0.7));
  }
}

.animate-sacred-wine {
  animation: sacredWine 3s ease-in-out infinite;
}

/* Gradiente divino animado */
@keyframes divineGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-divine-gradient {
  background: linear-gradient(270deg, 
    #6C5CE7, 
    #FFD700, 
    #00CEC9, 
    #800020, 
    #27AE60);
  background-size: 400% 400%;
  animation: divineGradient 8s ease infinite;
}

/* Rotación suave con brillo */
@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
  }
  50% {
    transform: rotate(180deg);
    filter: drop-shadow(0 0 30px rgba(108, 92, 231, 0.7));
  }
  100% {
    transform: rotate(360deg);
    filter: drop-shadow(0 0 15px rgba(0, 206, 201, 0.5));
  }
}

.animate-rotate-glow {
  animation: rotateGlow 6s linear infinite;
}

/* Latido espiritual */
@keyframes spiritualHeartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.1);
  }
  20%, 40% {
    transform: scale(1);
  }
}

.animate-spiritual-heartbeat {
  animation: spiritualHeartbeat 2s ease-in-out infinite;
}
