/* Variables globales */
:root {
  --primary: #e91e63;
  --secondary: #ffebee;
  --yes-btn: #4caf50;
  --no-btn: #f44336;
}

/* Base */
body {
  font-family: 'Arial', sans-serif;
  background: var(--secondary);
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

.container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  margin: 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Texto y botones */
h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 5vw, 2rem); /* Texto responsive */
}

.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

button {
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 120px;
}

#yes { background: var(--yes-btn); color: white; }
#no { background: var(--no-btn); color: white; }

/* Mensaje post-"Sí" */
#message {
  color: var(--primary);
  font-size: clamp(1rem, 4vw, 1.2rem); /* Texto responsive */
  line-height: 1.6;
  margin-top: 1.5rem;
  animation: fadeIn 1s ease;
}

.hidden { display: none; }

/* Elementos animados (corazones y fotos) */
.heart, .photo {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  animation: float 5s ease-in-out infinite;
}

/* Corazones */
.heart {
  font-size: clamp(1.2rem, 3vw, 1.8rem); /* Tamaño responsive */
  opacity: 0.9;
}

/* Fotos */
.photo {
  width: clamp(80px, 20vw, 120px); /* Tamaño responsive */
  height: clamp(80px, 20vw, 120px);
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Animaciones */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive: Móviles */
@media (max-width: 600px) {
  .container { padding: 1.5rem; }
  
  .buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  button {
    width: 100%;
    padding: 0.9rem;
  }

  /* Ajustar posición de fotos en móviles */
  .photo {
    width: 70px;
    height: 70px;
  }
}

/* Evitar superposición en pantallas pequeñas */
@media (max-height: 600px) {
  .heart { font-size: 1rem; }
  .photo { width: 60px; height: 60px; }
}