/* === CONFIGURACIÓN GENERAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
  background: #002b40;
}

/* === CONTENEDOR PRINCIPAL === */
.ocean {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('tu-imagen-fondo.jpg') no-repeat center center;
  background-size: cover;
  animation: moveOcean 30s infinite alternate ease-in-out;
}

@keyframes moveOcean {
  0% { background-position: center 0px; }
  100% { background-position: center 40px; }
}

/* === EFECTO DE ONDAS SUAVES === */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 40, 60, 0.3);
  backdrop-filter: blur(2px);
  animation: waveEffect 8s infinite ease-in-out;
}

@keyframes waveEffect {
  0%, 100% { background-color: rgba(0, 60, 90, 0.25); }
  50% { background-color: rgba(0, 30, 50, 0.35); }
}

/* === CONTENIDO CENTRAL === */
.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #bffcff;
  text-shadow: 0 0 15px rgba(100, 230, 255, 0.8);
  animation: fadeIn 2s ease-out forwards;
}

.content h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  animation: glow 3s ease-in-out infinite alternate;
}

.content p {
  font-size: 1.8rem;
  color: #89efff;
  font-weight: 500;
  animation: glow 3s ease-in-out infinite alternate-reverse;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #00bfff, 0 0 20px #00ffff, 0 0 30px #00bfff; }
  to { text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff, 0 0 60px #00bfff; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -55%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* === PECES QUE SIGUEN AL MOUSE === */
.fish {
  position: absolute;
  width: 40px;
  height: 20px;
  background: radial-gradient(circle at 30% 50%, #00bfff 10%, #0066cc 80%);
  border-radius: 50% 50% 50% 10% / 60% 40% 60% 30%;
  opacity: 0.8;
  transform-origin: center;
  transition: transform 0.3s ease-out;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(50, 150, 255, 0.6));
}

.fish::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 40%;
  width: 12px;
  height: 10px;
  background: #007acc;
  border-radius: 10px 0 0 10px;
}

/* === BURBUJAS ASCENDENTES CON EFECTO POP === */
.bubble {
  position: absolute;
  bottom: -50px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: auto;
  animation: floatUp linear forwards;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) scale(1.2);
    opacity: 0;
  }
}

/* === EFECTO POP === */
.bubble.pop {
  animation: pop 0.3s ease-out;
  background: radial-gradient(circle, rgba(255,255,255,0.8), transparent 70%);
}

@keyframes pop {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.7; }
  100% { transform: scale(0); opacity: 0; }
}

/* === BOTÓN “NHOOL” (SUPERIOR IZQUIERDO) === */
.nhool-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 22px;
  background: rgba(0, 180, 255, 0.25);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  color: #bffcff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
  z-index: 100;
}

.nhool-btn:hover {
  background: rgba(0, 230, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
  transform: translateY(-2px);
}