/* Efecto de burbujas de agua flotantes */

.water-bubbles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.water-bubble {
  position: absolute;
  bottom: -50px;
  background: radial-gradient(circle at 30% 30%, 
    rgba(173, 216, 230, 0.8), 
    rgba(135, 206, 250, 0.6), 
    rgba(100, 149, 237, 0.4));
  border-radius: 50%;
  box-shadow: 
    inset -2px -2px 4px rgba(255, 255, 255, 0.5),
    inset 2px 2px 4px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(100, 149, 237, 0.3);
  animation: floatUp linear infinite;
  will-change: transform;
}

/* Añadir brillo interno a las burbujas */
.water-bubble::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 30%;
  height: 30%;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.8), 
    transparent);
  border-radius: 50%;
}

/* Animación de flotación */
@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: var(--bubble-opacity, 0.5);
  }
  50% {
    transform: translateY(-50vh) translateX(20px) scale(1.1);
  }
  90% {
    opacity: var(--bubble-opacity, 0.5);
  }
  100% {
    transform: translateY(-100vh) translateX(-20px) scale(0.8);
    opacity: 0;
  }
}

/* Asegurar que la sección tenga position relative */
.product-showcase-professional {
  position: relative;
  overflow: hidden;
}

/* Asegurar que el contenido esté por encima de las burbujas */
.product-showcase-professional > .container {
  position: relative;
  z-index: 2;
}

/* Optimización para dispositivos móviles - mostrar menos burbujas */
@media (max-width: 768px) {
  .water-bubble:nth-child(n+8) {
    display: none; /* Mostrar solo 7 burbujas en móviles */
  }
  
  .water-bubble {
    /* Burbujas más pequeñas en móviles */
    max-width: 18px;
    max-height: 18px;
  }
}

/* Reducir burbujas en tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .water-bubble:nth-child(n+11) {
    display: none; /* Mostrar solo 10 burbujas en tablets */
  }
}

/* Preferencia de movimiento reducido para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .water-bubble {
    animation: none;
    opacity: 0.2;
  }
}

