/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: linear-gradient(-45deg, #00c6ff, #0072ff, #72edf2, #5151e5);
  background-size: 400% 400%;
  animation: gradientFlow 10s ease infinite;
  position: relative;
}

/* Fondo animado */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, #ffffff25, transparent 70%),
              radial-gradient(circle at 80% 70%, #ffffff15, transparent 60%);
  mix-blend-mode: overlay;
  animation: glowPulse 6s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* Contenedor */
.container {
  text-align: center;
  padding: 40px 25px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  max-width: 600px;
  z-index: 2;
  animation: fadeIn 1.5s ease forwards;
}

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

/* Título */
.title {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 0 10px #9bf6ff, 0 0 25px #a0c4ff;
  margin-bottom: 15px;
  color: #fff;
}

/* Frase */
.phrase {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 20px;
}

/* Texto “Pst...” */
.extra {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fffbcc;
  text-shadow: 0 0 10px #ffe66d;
  animation: pulse 1.5s infinite alternate;
}
@keyframes pulse {
  from { opacity: 0.8; }
  to { opacity: 1; transform: scale(1.05); }
}

/* Botón */
button {
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  background: #00b4d8;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
button:hover {
  background: #0077b6;
  transform: scale(1.05);
}

/* Sorpresa */
#surprise {
  margin-top: 20px;
  animation: fadeIn 1s ease forwards;
}
.hidden {
  display: none;
}
.surprise-text {
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 0 10px #b9fbc0;
}

/* Torta */
.cake {
  position: relative;
  width: 120px;
  margin: 40px auto 0;
  animation: bounce 2s ease infinite alternate;
}
@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}
.layer {
  width: 120px;
  height: 30px;
  border-radius: 10px;
  margin-bottom: 5px;
}
.bottom { background: #84a9ac; }
.middle { background: #d0e8f2; }
.top { background: #f0f5f9; }

.candle {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 25px;
  background: #ffe066;
  border-radius: 3px;
}
.flame {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffbe0b 0%, #fb5607 70%, transparent 100%);
  animation: flicker 0.2s infinite alternate;
}
@keyframes flicker {
  from { transform: translateX(-50%) scale(1); opacity: 1; }
  to { transform: translateX(-53%) scale(1.2); opacity: 0.8; }
}

/* Corazones */
.heart-float {
  position: absolute;
  font-size: 22px;
  opacity: 0.9;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(-250px) scale(1.2); opacity: 0; }
}

/* Confeti */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0.8;
  border-radius: 2px;
  animation: fall linear forwards;
}
@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}