/* Efectos de Olas Avanzados - Inspirados en Tambores San Lorenzo */

/* Contenedor principal de olas */
.waves-container {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Olas principales */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' class='shape-fill'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' class='shape-fill'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' class='shape-fill'%3E%3C/path%3E%3C/svg%3E");
  background-size: 50% 100%;
  animation: wave 25s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.wave:nth-child(1) {
  animation-delay: 0s;
  opacity: 0.9;
  background-color: rgba(255, 255, 255, 0.3);
}

.wave:nth-child(2) {
  animation-delay: -5s;
  animation-duration: 20s;
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.2);
}

.wave:nth-child(3) {
  animation-delay: -10s;
  animation-duration: 15s;
  opacity: 0.7;
  background-color: rgba(255, 255, 255, 0.15);
}

.wave:nth-child(4) {
  animation-delay: -15s;
  animation-duration: 10s;
  opacity: 0.6;
  background-color: rgba(255, 255, 255, 0.1);
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Olas con colores específicos */
.waves-blue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.waves-blue .wave {
  background-color: rgba(102, 126, 234, 0.4) !important;
  filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.6));
}

.waves-green {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.waves-green .wave {
  background-color: rgba(17, 153, 142, 0.4) !important;
  filter: drop-shadow(0 0 10px rgba(17, 153, 142, 0.6));
}

.waves-orange {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.waves-orange .wave {
  background-color: rgba(240, 147, 251, 0.4) !important;
  filter: drop-shadow(0 0 10px rgba(240, 147, 251, 0.6));
}

.waves-purple {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.waves-purple .wave {
  background-color: rgba(79, 172, 254, 0.4) !important;
  filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.6));
}

/* Efecto de olas flotantes */
.floating-waves {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.floating-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' class='shape-fill'%3E%3C/path%3E%3C/svg%3E");
  background-size: 100% 100%;
  animation: float 6s ease-in-out infinite;
  background-color: rgba(255, 255, 255, 0.3);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.floating-wave:nth-child(2) {
  animation-delay: -2s;
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.2);
}

.floating-wave:nth-child(3) {
  animation-delay: -4s;
  opacity: 0.6;
  background-color: rgba(255, 255, 255, 0.15);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Olas con efecto de partículas */
.particle-waves {
  position: relative;
  height: 100px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: particle-float 8s linear infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; }
.particle:nth-child(9) { left: 90%; animation-delay: 8s; }

@keyframes particle-float {
  0% {
    transform: translateY(100px) scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .waves-container,
  .floating-waves,
  .particle-waves {
    height: 60px;
  }
  
  .hero-waves {
    height: 50px;
  }
} 