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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0d0221 0%, #000000 100%);
  font-family: 'Trebuchet MS', 'Segoe UI', Verdana, sans-serif;
}

#fireworks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
}

.title {
  max-width: 900px;
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35em;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

.title span {
  background: linear-gradient(
    90deg,
    #ff4d6d,
    #ffb703,
    #8ac926,
    #1982c4,
    #6a4c93,
    #ff4d6d
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: colorShift 6s linear infinite, floaty 3s ease-in-out infinite;
  display: inline-block;
}

/* Desfase para que cada palabra "flote" de forma distinta */
.title span:nth-child(1)  { animation-delay: 0s, 0s; }
.title span:nth-child(2)  { animation-delay: -0.5s, 0.1s; }
.title span:nth-child(3)  { animation-delay: -1s, 0.2s; }
.title span:nth-child(4)  { animation-delay: -1.5s, 0.3s; }
.title span:nth-child(5)  { animation-delay: -2s, 0.4s; }
.title span:nth-child(6)  { animation-delay: -2.5s, 0.5s; }
.title span:nth-child(7)  { animation-delay: -3s, 0.6s; }
.title span:nth-child(8)  { animation-delay: -3.5s, 0.7s; }
.title span:nth-child(9)  { animation-delay: -4s, 0.8s; }
.title span:nth-child(10) { animation-delay: -4.5s, 0.9s; }
.title span:nth-child(11) { animation-delay: -5s, 1s; }
.title span:nth-child(12) { animation-delay: -5.5s, 1.1s; }
.title span:nth-child(13) { animation: none; display: inline-block; }

@keyframes colorShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* El emoji tiene su propio pequeño rebote */
.title span:last-child {
  animation: floaty 1.8s ease-in-out infinite;
}

.btn-mensaje {
  display: inline-block;
  background-color: #6f4e37;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9em 2em;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-mensaje:hover {
  background-color: #8a6248;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
}

.btn-mensaje:active {
  transform: translateY(0);
}
