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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  font-family: 'Quicksand', sans-serif;
  background: linear-gradient(135deg, #fbe4e6 0%, #fdf6f0 100%);
  color: #5c3a3a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  flex-direction: column; /* Para permitir portada + carta */
}

.portada {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  background: linear-gradient(135deg, #ffe4e1, #fff0f5);
  font-family: 'Pacifico', cursive;
  color: #ff69b4;
  padding: 20px;
  width: 100%;
}

.portada h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.portada p {
  font-size: 1.5em;
  margin-bottom: 30px;
  font-family: 'Quicksand', sans-serif;
}

.container {
  z-index: 1;
  position: relative;
  max-width: 850px;
  padding: 35px 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border: 3px dashed #ffb6c1;
  word-wrap: break-word;
  display: none; /* Oculta hasta que se haga clic */
}

h1 {
  font-family: 'Pacifico', cursive;
  font-size: 3em;
  margin-bottom: 30px;
  color: #ff69b4;
}

p {
  font-size: 1.3em;
  line-height: 1.9em;
  margin-bottom: 30px;
  white-space: pre-line;
}

.button {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1.4em;
  color: white;
  background-color: #ff69b4;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.button:hover {
  background-color: #ff4d94;
  transform: scale(1.07);
}

.hearts {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5em;
  color: #ff69b4;
  animation: float 3.5s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
  100% { transform: translateX(-50%) translateY(0); }
}

#mensaje {
  font-size: 1.5em;
  color: #ff4d94;
  margin-top: 25px;
  opacity: 0;
  transition: opacity 0.6s ease;
  font-weight: 600;
}

#mensaje.visible {
  opacity: 1;
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .container {
    max-width: 95%;
    padding: 20px;
  }

  h1 {
    font-size: 2.4em;
  }

  p {
    font-size: 1.1em;
  }

  .button {
    font-size: 1.2em;
    padding: 12px 25px;
  }

  .portada h1 {
    font-size: 2.2em;
  }

  .portada p {
    font-size: 1.2em;
  }
}