body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #ffb6c1, #ffc0cb);
  font-family: 'Comic Sans MS', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 700px;
  width: 90%;
  margin: 0 auto;
  background: white;https://github.com/lelecitaa/Nuestro-Primer-Dia-de-San-Valentin/blob/main/docs/style.css
  padding: 40px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 0, 150, 0.3);

  position: relative;
  z-index: 2;
}

h1 {
  color: #ff4d88;
}

button {
  background: #ff69b4;
  border: none;
  border-radius: 20px;
  padding: 10px 15px;
  margin: 8px;
  font-size: 14px;
  cursor: pointer;
  color: white;
  transition: 0.3s;
}

button:hover {
  background: #ff85c1;
  transform: scale(1.05);
}

#message {
  margin-top: 20px;
  font-size: 14px;
  color: #ff4d88;
  animation: fadeIn 1s ease-in-out;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== CORAZONES FLOTANDO CENTRADOS ===== */

.hearts {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hearts span {
  position: absolute;
  bottom: -50px;
  font-size: 22px;
  animation: subir 10s linear infinite;
  opacity: 0.6;
}

.hearts span:nth-child(1) { left: 15%; animation-delay: 0s; }
.hearts span:nth-child(2) { left: 35%; animation-delay: 2s; }
.hearts span:nth-child(3) { left: 50%; animation-delay: 4s; }
.hearts span:nth-child(4) { left: 70%; animation-delay: 1s; }
.hearts span:nth-child(5) { left: 85%; animation-delay: 3s; }

@keyframes subir {
  0% {
    transform: translateY(0);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-110vh);
    opacity: 0;
  }
}

/* Timeline imágenes */
.timeline-img {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 20px auto;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
}

.timeline-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 20, 147, 0.8);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
}

.modal img {
  margin: auto;
  display: block;
  max-width: 80%;
  border-radius: 20px;
  box-shadow: 0 0 30px hotpink;
}

.modal.active {
  display: block;
}

/* Texto cinematográfico */
.special-text {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 22px;
  font-weight: bold;
  text-shadow: 0 0 15px hotpink;
  animation: fadeText 4s ease-in-out forwards;
}

@keyframes fadeText {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  20% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

.final-section {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.mensaje-final {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.oculto {
  display: none;
}

.mensaje-card {
  background: white;
  padding: 40px;
  border-radius: 25px;
  max-width: 700px;
  box-shadow: 0 0 40px rgba(255, 0, 150, 0.4);
  animation: aparecer 0.4s ease;
  max-height: 90vh;        /* que no salga de la pantalla */
  overflow-y: auto;        /* permite scroll si es muy largo */

}

@keyframes aparecer {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cerrar {
  margin-top: 20px;
  cursor: pointer;
  font-weight: bold;
  color: #ff4e8a;
}
/* Animación suave al cargar */
.container {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
