* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  /* La foto de la ecografía de fondo */
  background-image: url('ecografia.jpg'); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #111;
  
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  padding: 20px;
  overflow: hidden; 
  position: relative;
}

/* Degradado oscuro sutil para que el texto resalte sobre la ecografía */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(255,255,255,0.1) 100%);
  z-index: 1;
}

.tarjeta-mensaje {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 600px;
  padding: 40px 30px;
  /* Efecto de cristal transparente */
  background: rgba(255, 255, 255, 0.3); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 0 1.5px rgba(255,255,255,0.6);
  animation: aparecer 1.5s ease-out;
}

.linea-1, .linea-2, .linea-3, .linea-4 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #ffffff; /* Blanco para que resalte sobre la eco */
  line-height: 1.2;
  margin-bottom: 5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7); /* Sombra fuerte para legibilidad */
}

.linea-2 {
  margin-bottom: 25px; 
  font-size: 2.2rem;
}

.linea-3 {
  margin-top: 25px;
}

.linea-4 {
  color: #ffb6c1; /* Un toque rosita pastel */
  font-size: 2.8rem;
}

.corazoncito {
  font-size: 2rem;
  animation: latido 1.5s infinite;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

/* Animaciones */
@keyframes aparecer {
  from { opacity: 0; transform: scale(0.95); filter: blur(5px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Brillos mágicos (destellos dorados y blancos) */
.brillo {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  pointer-events: none;
  animation: subir linear infinite;
  box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.6);
  z-index: 5;
}

@keyframes subir {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* Ajustes para móviles */
@media (max-width: 480px) {
  .tarjeta-mensaje { padding: 30px 20px; }
  .linea-1, .linea-2, .linea-3 { font-size: 2rem; }
  .linea-4 { font-size: 2.3rem; }
}