* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  /* La foto de fondo */
  background-image: url('ecografia.jpg'); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #111; /* Por si la foto tarda en cargar */
  
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Quicksand', sans-serif;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

/* Un degradado oscuro sutil sobre la foto para que el texto resalte sin tapar la imagen */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(255,182,193,0.1) 100%);
  z-index: 1;
}

.tarjeta {
  /* Un cristal mucho más transparente (30% de blanco) */
  background: rgba(255, 255, 255, 0.3); 
  backdrop-filter: blur(10px); /* Desenfoca la foto detrás para que el texto sea legible */
  -webkit-backdrop-filter: blur(10px);
  
  padding: 45px 35px;
  border-radius: 24px;
  /* Borde de cristal brillante muy sutil */
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.1), 
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); 
    
  max-width: 520px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
  animation: aparecer 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Para que el texto se lea bien sobre el cristal transparente, le ponemos un poco de sombra blanca */
.mensaje {
  color: #222; /* Un gris casi negro para que contraste */
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 20px;
  text-shadow: 0px 2px 5px rgba(255, 255, 255, 0.9); /* Sombra blanca para resaltar las letras */
}

.corazon-principal {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: latido 1.5s infinite;
  filter: drop-shadow(0 4px 8px rgba(255, 105, 180, 0.4));
}

h1 {
  font-family: 'Great Vibes', cursive;
  color: #b03060; /* Un tono más oscuro para que resalte sobre el cristal */
  font-size: 2.8rem;
  font-weight: normal;
  margin-bottom: -10px;
  text-shadow: 0 2px 4px rgba(255,255,255,0.5);
}

h2 {
  font-family: 'Quicksand', sans-serif;
  color: #8b0a50;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.mensaje {
  color: #333;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 20px;
}

.cita {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #d11a6f;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(209, 26, 111, 0.3);
  border-bottom: 1px solid rgba(209, 26, 111, 0.3);
  line-height: 1.3;
  text-shadow: 0 2px 5px rgba(255,255,255,0.6);
}

.firma {
  margin-top: 25px;
  color: #444;
  font-size: 1.05rem;
  font-weight: 600;
}

.firma strong {
  color: #8b0a50;
  font-size: 1.15rem;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Corazones flotantes */
.corazon-flotante {
  position: absolute;
  color: #ff69b4;
  pointer-events: none;
  animation: flotar linear infinite;
  opacity: 0.7;
  z-index: 5; /* Por encima de la foto, por debajo del texto */
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8)); /* Brillo para que se vean sobre la foto */
}

@keyframes flotar {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.9; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

@media (max-width: 480px) {
  .tarjeta { padding: 35px 25px; }
  h1 { font-size: 2.3rem; }
  .cita { font-size: 1.7rem; }
  .mensaje { font-size: 1.05rem; }
}
