
* { margin: 0; padding: 0; box-sizing: border-box; }

#preloader {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.kangaroo-loader img {
  width: 120px;
  animation: kangarooJump 1.6s ease-in-out infinite;
}

@keyframes kangarooJump {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-40px) rotate(-5deg);
  }
  50% {
    transform: translateY(0) rotate(3deg);
  }
  75% {
    transform: translateY(-20px) rotate(-3deg);
  }
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.hero {
  position: relative;
  color: #FAF7F2;
  background-image: url("img1.png"); 
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 0 8%;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero h1 {
  font-family: "Fredoka", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  background-color: #d86b33;
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 30px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #b9531f;
  transform: translateY(-2px);
}

.btn-secundario {
  background-color: transparent;
  border: 2px solid #fff;
}

.btn-secundario:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .hero {
    padding: 0 6%;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}
