/* Fuente local */
@font-face {
  font-family: 'Super Joyful';
  src: url('fonts/Super Joyful.ttf') format('truetype');
}

body {
  margin: 0;
  font-family: 'Super Joyful', sans-serif;
  background-color: #2c0d42; /* morado oscuro */
  color: #fff;
  overflow-x: hidden;
  transition: background 0.5s;
}

/* Header con logo centrado */
header {
  width: 100%;
  background-color: #6a0dad;
  text-align: center;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-header img {
  height: 60px;
}

/* Hero con UNA imagen y texto detrás */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0;
}
.hero-img {
  width: 250px;
  border-radius: 50%;
  z-index: 2;
}
.dynamic-text {
  position: absolute;
  font-size: 4rem;
  opacity: 0.1;
  z-index: 0;
  text-align: center;
}

/* Carrusel logos normal */
.carousel-logos {
  overflow: hidden;
  margin: 50px 0;
}
.carousel-track {
  display: flex;
  gap: 40px;
  animation: slide 20s linear infinite;
}
.carousel-track img {
  width: 100px;
}
@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Secciones */
.about, .essences, .video {
  padding: 50px 20px;
  text-align: center;
}

/* Esencias */
.essence-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.essence {
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

/* Carrusel curvado vertical con botones */
.curved-carousel {
  position: relative;
  width: 400px;
  height: 500px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.circle {
  position: relative;
  width: 300px;
  height: 300px;
}
.circle a {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: bottom center;
  transition: transform 0.5s ease; /* animación fluida */
}
.circle a:nth-child(1) { transform: rotate(-60deg) translate(120px) rotate(60deg); }
.circle a:nth-child(2) { transform: rotate(-30deg) translate(120px) rotate(30deg); }
.circle a:nth-child(3) { transform: rotate(0deg) translate(120px) rotate(0deg); }
.circle a:nth-child(4) { transform: rotate(30deg) translate(120px) rotate(-30deg); }
.circle a:nth-child(5) { transform: rotate(60deg) translate(120px) rotate(-60deg); }
.circle img {
  width: 80px;
  border-radius: 10px;
  cursor: pointer;
}
/* Botones personalizados */
.prev-btn, .next-btn {
  background: #6a0dad;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 10px 15px;
  margin: 10px;
  border-radius: 10px;
  cursor: pointer;
}
.center-img {
  margin-top: 20px;
  width: 150px;
  border-radius: 50%;
  transition: transform 0.5s ease; /* animación fluida */
}

/* Video */
.video iframe {
  width: 80%;
  height: 450px;
  border-radius: 20px;
}

/* Animaciones al scrollear fluidas */
.animate-fade { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.animate-slide-left { opacity:0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.animate-slide-right { opacity:0; transform: translateX(50px); transition: all 0.8s ease-out; }
.animate-slide-up { opacity:0; transform: translateY(50px); transition: all 0.8s ease-out; }
.animate-scale { opacity:0; transform: scale(0.5); transition: all 0.8s ease-out; }
.animate-rotate { opacity:0; transform: rotate(-180deg); transition: all 0.8s ease-out; }
.animate { opacity:1; transform: none; }