/* Asegurar que el canvas ocupe toda la pantalla de fondo */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#c {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

/* Lluvia de corazones */
.hearts-rain-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 11;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 1s ease;
}

.falling-heart {
  position: absolute;
  top: -10vh;
  user-select: none;
  z-index: 11;
  animation: fallHeart linear infinite;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.8);
}

@keyframes fallHeart {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0.2;
  }
}

/* Estilo para que el intro integre el fondo espacial y luzca mágico */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgba(25, 8, 45, 0.88) 0%, rgba(3, 1, 10, 0.97) 100%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 1.5s ease;
  backdrop-filter: blur(6px);
}

/* Caja de neón llamativa y romántica con efectos de luz */
.neon-box {
  text-align: center;
  padding: 40px 50px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(45, 15, 70, 0.75), rgba(15, 3, 30, 0.9));
  border: 2px solid rgba(255, 105, 180, 0.7);
  box-shadow: 0 0 50px rgba(255, 0, 128, 0.5), inset 0 0 30px rgba(180, 80, 255, 0.4);
  color: #fff;
  max-width: 650px;
  width: 90%;
  animation: pulseNeon 3s infinite alternate;
}

.intro-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px #ff00aa, 0 0 20px #ff00aa, 0 0 30px #ff66cc;
  margin-bottom: 25px;
}

/* Contenedor de las imágenes */
.intro-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

/* MARCOS EN FORMA DE CORAZÓN PARA LAS FOTOS */
.heart-frame {
  width: 90px;
  height: 85px;
  position: relative;
  background: linear-gradient(135deg, #ff00aa, #9900ff);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.7);
  animation: floatHeartFrame 3.5s ease-in-out infinite;
  /* Magia de CSS para recortar el marco en forma de corazón */
  clip-path: polygon(50% 15%, 65% 0%, 90% 10%, 100% 35%, 80% 70%, 50% 100%, 20% 70%, 0% 35%, 10% 10%, 35% 0%);
  transition: transform 0.3s ease;
}

.heart-frame:nth-child(2) { animation-delay: 0.8s; }
.heart-frame:nth-child(3) { animation-delay: 1.6s; }
.heart-frame:nth-child(4) { animation-delay: 2.4s; }

.heart-frame:hover {
  transform: scale(1.15) rotate(5deg);
}

/* La imagen dentro del corazón */
.heart-frame img {
  width: 82px;
  height: 77px;
  object-fit: cover;
  background: #111;
  /* Recortamos también la imagen con la misma forma de corazón */
  clip-path: polygon(50% 15%, 65% 0%, 90% 10%, 100% 35%, 80% 70%, 50% 100%, 20% 70%, 0% 35%, 10% 10%, 35% 0%);
}

.intro-footer {
  font-size: 1.15rem;
  color: #ffccff;
  text-shadow: 0 0 10px #ff66cc;
  font-weight: 500;
  margin-top: 20px;
  letter-spacing: 0.5px;
}

@keyframes pulseNeon {
  0% {
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.4), inset 0 0 20px rgba(150, 50, 255, 0.3);
    border-color: rgba(255, 100, 180, 0.5);
  }
  100% {
    box-shadow: 0 0 60px rgba(255, 0, 170, 0.9), inset 0 0 35px rgba(200, 100, 255, 0.7);
    border-color: rgba(255, 150, 220, 1);
  }
}

@keyframes floatHeartFrame {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

/* Botón de música flotante */
.player-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 5;
  background: rgba(30, 15, 45, 0.8);
  border: 1px solid rgba(255, 100, 180, 0.5);
  color: white;
  font-size: 1.5rem;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.4);
  transition: transform 0.2s, background 0.2s;
}

.player-btn:hover {
  transform: scale(1.1);
  background: rgba(60, 25, 85, 0.9);
}