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

body,
html {
  height: 100%;
  width: 100%;
}

body {
  background: radial-gradient(circle at center, #ffeaf4 0%, #fff0f9 50%, #ffe1ff 100%);
  position: relative;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.parte-1 {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.parte-2 {
  min-height: 100vh;
  background: radial-gradient(circle at center, #ffeaf4 0%, #fff0f9 50%, #ffe1ff 100%);
  padding-top: 4rem;
  position: relative;
  z-index: 0;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

.extra-content {
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 1.2rem;
  color: #cc007a;
}

.extra-content h2 {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.extra-content p {
  font-size: 1.2rem;
  font-family: 'Indie Flower', cursive;
  margin-bottom: 1.5rem;
  color: #444;
}

#time-counter{
  font-size: 1.8rem;
  color: #ff3535;
  font-family: 'Dancing Script', cursive;
  font-weight: bold;
}

.comic-panel {
  background: white;
  border: 5px dotted #ff99cc;
  border-radius: 2rem;
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 0 25px rgba(255, 192, 203, 0.5);
  position: relative;
  animation: panelEnter 1s ease forwards;
  max-height: 90vh;
  overflow-y: auto;
}

.comic-panel h1 {
  font-size: 2rem;
  font-family: 'Gloria Hallelujah', cursive;
  color: #e60073;
  margin-bottom: 1rem;
  text-shadow: 1px 1px white;
}

.comic-panel p {
  font-size: 1.5rem;
  font-family: 'Indie Flower', cursive;
  color: #444;
  margin-bottom: 1.5rem;
}

.nav-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

button {
  background-color: #ff66b2;
  color: white;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 10px #ffb3da;
}

button:hover {
  background-color: #e60073;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

.screen {
  min-height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  animation: panelEnter 1s ease forwards;
}

.screen.active {
  display: flex;
}

.screen {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.screen.active {
  opacity: 1;
  visibility: visible;
}

.floating-decorations div {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  animation: float 6s infinite ease-in-out alternate;
}

.heart,
.star,
.bubble,
.sparkle,
.flower {
  filter: blur(1px);
}

.heart {
  width: 30px;
  height: 30px;
  background: #ff99cc;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.star {
  width: 20px;
  height: 20px;
  background: gold;
  top: 30%;
  right: 10%;
  animation-delay: 1.5s;
}

.bubble {
  width: 25px;
  height: 25px;
  background: #ccf;
  bottom: 15%;
  left: 30%;
  animation-delay: 3s;
}

.sparkle {
  width: 18px;
  height: 18px;
  background: #fff0f5;
  top: 70%;
  left: 60%;
  animation-delay: 4.2s;
}

.flower {
  width: 24px;
  height: 24px;
  background: #ffc0cb;
  top: 45%;
  right: 20%;
  animation-delay: 2.5s;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.1);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@media screen and (max-width: 480px) {
  .comic-panel {
    padding: 1.2rem;
    border-width: 3px;
  }

  .comic-panel h1 {
    font-size: 1.5rem;
  }

  .comic-panel p {
    font-size: 1.2rem;
  }

  button {
    font-size: 0.95rem;
  }
}

.heart {
  width: 45px;
  height: 45px;
  background: radial-gradient(circle at top left, #ff69b4, #ff1493);
  clip-path: polygon(50% 40%, 61% 18%, 82% 18%, 100% 35%, 100% 59%, 80% 80%, 50% 100%, 20% 80%, 0% 59%, 0% 35%, 18% 18%, 39% 18%);
}

.star {
  width: 40px;
  height: 40px;
  background: gold;
  clip-path: polygon(50% 0%, 61% 35%, 100% 35%, 68% 57%, 80% 100%, 50% 75%, 20% 100%, 32% 57%, 0% 35%, 39% 35%);
}

.bubble {
  width: 42px;
  height: 42px;
  background: rgba(66, 196, 239, 0.5);
  border: 1px solid #fff;
}

.sparkle {
  width: 48px;
  height: 48px;
  background: #f24545aa;
  clip-path: polygon(50% 0%, 60% 35%, 100% 35%, 65% 55%, 75% 100%, 50% 70%, 25% 100%, 35% 55%, 0% 35%, 40% 35%);
}

.flower {
  width: 30px;
  height: 30px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Emoji_u1f33c.svg/1024px-Emoji_u1f33c.svg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  animation: float 6s infinite ease-in-out alternate;
  opacity: 0.9;
}

@keyframes float {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.1);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}

.hearts-section {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.hearts-section h2 {
  font-size: 1.5rem;
  font-family: 'Gloria Hallelujah', cursive;
  color: #e60073;
  margin-bottom: 1rem;
}

.hearts-section p {
  font-size: 1.2rem;
  font-family: 'Indie Flower', cursive;
  color: #444;
  margin-bottom: 1.5rem;
}

.send-hearts-btn {
  background-color: #ff66b2;
  color: white;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 10px #ffb3da;
}

.send-hearts-btn:hover {
  background-color: #e60073;
}

.heart-emoji {
  position: absolute;
  font-size: 3rem;
  animation: heartFloat 3s infinite ease-in-out;
  z-index: 10;
}

@keyframes heartFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }

  100% {
    transform: translateY(0);
  }
}

.parte-2 {
  min-height: 100vh;
  background: radial-gradient(circle at center, #ffeaf4 0%, #fff0f9 50%, #ffe1ff 100%);
  padding-top: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 0;
}

.floating-decorations {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.decor {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  animation: float 6s infinite ease-in-out alternate;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}


.emoji {
  position: absolute;
  font-size: 3rem;
  opacity: 0.3;
  animation: emojiFloat 4s infinite ease-in-out;
  z-index: 10;
  pointer-events: none;
}

@keyframes emojiFloat {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  20% {
    opacity: 0.3;
  }

  50% {
    transform: translateY(-30px);
    opacity: 0.5;
  }

  80% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .emoji {
    font-size: 2rem;
  }
}

.floating-buttons {
  position: absolute;
  top: 10%;
  right: 5%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
}

.float-btn {
  background-color: #ffb3da;
  color: white;
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.4);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.float-btn:hover {
  transform: scale(1.05);
  background-color: #ff69b4;
}
