/* GENERAL */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f3d9ff;
  color: #5a005a;
  text-align: center;
  overflow-x: hidden;
}

h1, h2 {
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  background-color: #ffb3f0;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 20px;
  transition: transform 0.3s ease;
}

button:hover {
  transform: scale(1.1);
}

/* SECCIONES */
.section {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.section.active {
  display: flex;
}

/* INPUTS */
input {
  display: block;
  margin: 10px auto;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #999;
  font-size: 16px;
}

/* BOTÓN MÚSICA */
#music-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 25px;
  z-index: 1000;
  cursor: pointer;
}

/* CORAZONES FLOTANTES ♥️ */
#heart-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.heart {
  position: absolute;
  color: rgba(255, 0, 98, 0.3);
  font-size: 20px;
  animation: floatUp 10s linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* PREGUNTA ROMÁNTICA */
.botones-pregunta {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}

#noBtn {
  position: absolute;
  top: 50px;
  left: 50px;
  transition: top 0.3s ease, left 0.3s ease;
}

/* FLORES */
#flores img {
  max-width: 250px;
  margin: 20px 0;
}

/* CIELO ESTRELLADO */
#cielo-estrellado {
  position: relative;
  width: 100%;
  height: 400px;
  background: radial-gradient(#000022, #000);
  overflow: hidden;
  border-radius: 10px;
  margin-top: 20px;
}

.estrella {
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.mensaje {
  position: absolute;
  color: white;
  font-size: 14px;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 10px;
  animation: saltar 1s ease;
}

@keyframes saltar {
  0% { transform: translateY(0); opacity: 0; }
  50% { transform: translateY(-20px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}

/* CRONÓMETRO */
#cronometro img {
  width: 200px;
  margin: 20px 0;
}

#tiempo {
  font-size: 20px;
  margin: 15px 0;
}

/* CARTA */
.sobre {
  font-size: 70px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.sobre:hover {
  transform: scale(1.2);
}

.carta-oculta {
  max-width: 500px;
  margin-top: 20px;
  padding: 20px;
  background: #fff0fb;
  border-radius: 15px;
  font-size: 16px;
  text-align: left;
  animation: escribir 4s steps(80) 1;
  white-space: pre-line;
  display: none;
}

@keyframes escribir {
  from { width: 0; }
  to { width: 100%; }
}

/* RAZONES */
.lista-razones {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.lista-razones li {
  font-size: 18px;
  margin-bottom: 10px;
  background: #fff0ff;
  padding: 10px 15px;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ESTRELLAS CAYENDO */
#razones {
  background: #f3d9ff;
  animation: estrellasCayendo 10s linear infinite;
}

@keyframes estrellasCayendo {
  0% { background-position: 0 0; }
  100% { background-position: 0 1000px; }
}

/* ECLIPSE */
.eclipse-animado {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(#222, #000);
  position: relative;
  animation: eclipse 4s ease-in-out infinite alternate;
  margin-bottom: 20px;
}

@keyframes eclipse {
  0% { box-shadow: 30px 0 0 #f4d942; }
  100% { box-shadow: -30px 0 0 #f4d942; }
}

/* FINAL */
#final img {
  width: 200px;
  margin: 20px 0;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  button {
    font-size: 16px;
  }

  .sobre {
    font-size: 50px;
  }

  #eclipse .eclipse-animado {
    width: 100px;
    height: 100px;
  }
}
