@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg) scale(0.8); opacity: 0.8; }
  100% { transform: translateY(-20vh) rotate(360deg) scale(1.2); opacity: 0; }
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(-45deg, #ff9a9e, #fecfef, #a1c4fd, #c2e9fb);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  overflow-x: hidden;
  color: #2d3748;
}

.emoji-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.emoji {
  position: absolute;
  font-size: 3rem;
  animation: float linear infinite;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.emoji:nth-child(1) { left: 5%; animation-duration: 12s; animation-delay: 0s; }
.emoji:nth-child(2) { left: 25%; animation-duration: 16s; animation-delay: 2s; }
.emoji:nth-child(3) { left: 45%; animation-duration: 10s; animation-delay: 4s; }
.emoji:nth-child(4) { left: 65%; animation-duration: 18s; animation-delay: 1s; }
.emoji:nth-child(5) { left: 85%; animation-duration: 14s; animation-delay: 3s; }

.glass-panel {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-radius: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.2);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.btn-gato {
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  color: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(255, 126, 95, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gato::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
  z-index: -1;
}

.btn-gato:hover::after {
  left: 150%;
}

.btn-gato:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 25px rgba(255, 126, 95, 0.4);
}

.btn-ayuda {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

.btn-ayuda:hover {
  box-shadow: 0 15px 25px rgba(79, 172, 254, 0.4);
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  margin: 5% auto;
  padding: 30px;
  width: 90%;
  max-width: 800px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.5);
}

.input-modern {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.input-modern:focus {
  outline: none;
  border-color: #ff7e5f;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 126, 95, 0.2), inset 0 2px 4px rgba(0,0,0,0.05);
}

.cat-anim {
  animation: bounceSlow 4s infinite ease-in-out;
}

.cat-anim:hover {
  animation: wiggle 0.5s infinite;
}

.pro-img {
  border-radius: 16px;
  object-fit: contain;
  filter: drop-shadow(0 15px 20px rgba(0,0,0,0.15));
}

.pro-gif {
  border-radius: 20px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
  width: 250px;
  height: auto;
}

.nav-link {
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, #ff7e5f, #feb47b);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}