body {
  background: linear-gradient(120deg, #ffcce0, #ffe6f0);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  overflow-x: hidden;
  color: #b30059;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

/* ✨ Transición al abrir la página */
body.loaded {
  opacity: 1;
  transform: scale(1);
}

/* ✨ Fondo brillante */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1px);
  background-size: 3px 3px;
  animation: shimmer 8s linear infinite;
  z-index: -1;
}

@keyframes shimmer {
  from { background-position: 0 0; }
  to { background-position: 100% 100%; }
}

/* ❤️ Corazones flotando */
.heart {
  position: fixed;
  color: #ff4da6;
  font-size: 20px;
  animation: float 5s linear infinite;
  top: -10px;
  z-index: 2;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(100vh) scale(1.5); opacity: 0; }
}

.wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.card {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  max-width: 900px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(255, 182, 193, 0.6);
  overflow: hidden;
}

.left {
  background: #ffe6f0;
  flex: 1;
  min-width: 300px;
  padding: 20px;
  position: relative;
}

.title {
  font-size: 1.6em;
  margin-top: 10px;
  font-weight: 600;
}

.subtitle {
  font-size: 1em;
  opacity: 0.8;
}

.portrait img {
  width: 100%;
  border-radius: 15px;
  margin-top: 15px;
}

.right {
  flex: 1.5;
  padding: 20px;
}

.btn {
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-pink {
  background-color: #ff66a3;
  color: white;
  font-weight: bold;
  transition: transform 0.3s;
}

.btn-pink:hover {
  transform: scale(1.05);
  background-color: #ff3385;
}

.gallery img {
  width: 30%;
  border-radius: 10px;
  margin: 5px;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-card {
  background: #fff0f5;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  width: 80%;
  max-width: 400px;
  animation: popUp 0.6s ease;
}

@keyframes popUp {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* 💓 Animación en el texto del footer */
footer {
  animation: heartbeat 2s infinite ease-in-out, glow 3s infinite alternate;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); color: #ff5fa2; }
  25% { transform: scale(1.1); color: #ff80c0; }
  50% { transform: scale(1); color: #ff5fa2; }
  75% { transform: scale(1.1); color: #ff9fd4; }
}

@keyframes glow {
  from { text-shadow: 0 0 5px #ffb6c1, 0 0 10px #ff99cc; }
  to { text-shadow: 0 0 20px #ff80bf, 0 0 30px #ff66b2; }
}

.title {
  background: linear-gradient(90deg, #ff5fa2, #ffb6c1, #ff5fa2);
  background-clip: text;            /* 🔹 Propiedad estándar */
  -webkit-background-clip: text;    /* 🔹 Compatibilidad con WebKit */
  color: transparent;
  background-size: 200%;
  animation: shineText 3s linear infinite;
}


@keyframes shineText {
  0% { background-position: 0%; }
  100% { background-position: 200%; }
}

@keyframes bgChange {
  0% { background: linear-gradient(120deg, #ffcce0, #ffe6f0); }
  50% { background: linear-gradient(120deg, #ffd6eb, #fff0f8); }
  100% { background: linear-gradient(120deg, #ffcce0, #ffe6f0); }
}
body {
  animation: bgChange 10s ease-in-out infinite;
}

.star {
  position: fixed;
  color: #fff5e1;
  font-size: 10px;
  animation: floatStar 6s linear infinite;
  z-index: 1;
}
@keyframes floatStar {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100vh); opacity: 0; }
}

.love-text {
  animation: fadeInUp 2s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-pink:hover {
  transform: scale(1.05);
  background-color: #ff3385;
  box-shadow: 0 0 15px #ff99c8;
}
