
/* ========== HERO CONTAINER ========== */
.creative-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
  padding: 60px 20px;
  box-sizing: border-box;
}

/* ========== FLOATING ELEMENTS ========== */
.floating-element {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.floating-element img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

/* Element positions - Desktop - LARGER SIZES */
.float-1 {
  width: clamp(180px, 28vw, 420px);
  height: clamp(180px, 28vw, 420px);
  top: 0%;
  left: -5%;
  animation: float1 8s ease-in-out infinite, fadeSlideIn 1.2s ease-out 0.2s both;
}

.float-2 {
  width: clamp(140px, 22vw, 320px);
  height: clamp(140px, 22vw, 320px);
  top: 5%;
  right: -5%;
  animation: float2 9s ease-in-out infinite, fadeSlideIn 1.2s ease-out 0.4s both;
}

.float-3 {
  width: clamp(120px, 18vw, 280px);
  height: clamp(120px, 18vw, 280px);
  bottom: 10%;
  left: 0%;
  animation: float3 7s ease-in-out infinite, fadeSlideIn 1.2s ease-out 0.6s both;
}

.float-4 {
  width: clamp(150px, 24vw, 350px);
  height: clamp(150px, 24vw, 350px);
  bottom: 0%;
  right: 2%;
  animation: float4 10s ease-in-out infinite, fadeSlideIn 1.2s ease-out 0.8s both;
}

.float-5 {
  width: clamp(100px, 14vw, 200px);
  height: clamp(100px, 14vw, 200px);
  top: 55%;
  left: 5%;
  animation: float5 6s ease-in-out infinite, fadeSlideIn 1.2s ease-out 1s both;
}

.float-6 {
  width: clamp(100px, 14vw, 200px);
  height: clamp(100px, 14vw, 200px);
  top: 5%;
  right: 18%;
  animation: float2 8s ease-in-out infinite 1s, fadeSlideIn 1.2s ease-out 0.5s both;
}

/* ========== SPINNING ISOLOGO ========== */
.spinning-isologo {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.spinning-isologo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: spinIsologo 20s linear infinite;
}

.isologo-1 {
  width: clamp(50px, 7vw, 90px);
  height: clamp(50px, 7vw, 90px);
  top: 18%;
  left: 12%;
  opacity: 0;
  animation: fadeSlideIn 1s ease-out 1.2s forwards;
}

.isologo-1 img {
  animation: spinIsologo 15s linear infinite;
}

.isologo-2 {
  width: clamp(40px, 5vw, 70px);
  height: clamp(40px, 5vw, 70px);
  bottom: 25%;
  right: 15%;
  opacity: 0;
  animation: fadeSlideIn 1s ease-out 1.4s forwards;
}

.isologo-2 img {
  animation: spinIsologo 20s linear infinite reverse;
}

.isologo-3 {
  width: clamp(35px, 4vw, 55px);
  height: clamp(35px, 4vw, 55px);
  top: 70%;
  left: 20%;
  opacity: 0;
  animation: fadeSlideIn 1s ease-out 1.6s forwards;
}

.isologo-3 img {
  animation: spinIsologo 25s linear infinite;
}

@keyframes spinIsologo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== FLOATING ANIMATIONS ========== */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(6deg); }
  50% { transform: translate(-15px, -50px) rotate(-4deg); }
  75% { transform: translate(25px, -20px) rotate(10deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-30px, 35px) rotate(-10deg); }
  66% { transform: translate(20px, 20px) rotate(6deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(35px, -40px) rotate(12deg); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-20px, -30px) rotate(-6deg); }
  75% { transform: translate(15px, -35px) rotate(8deg); }
}

@keyframes float5 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-20px, 30px) scale(1.08) rotate(-5deg); }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== MAIN CONTENT ========== */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1100px;
  padding: 0 20px;
}

/* Main headline H1 - LARGER */
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(52px, 12vw, 120px) !important;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin: 0 0 40px 0;
  letter-spacing: -3px;
  position: relative;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(80px) rotateX(-90deg);
  animation: wordReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  margin-right: 0.25em; /* FIX: Espacio entre palabras */
}

.hero-title .word:last-child {
  margin-right: 0; /* Sin margen en la última palabra */
}

.hero-title .word:nth-child(1) { animation-delay: 0.6s; }
.hero-title .word:nth-child(2) { animation-delay: 0.72s; }
.hero-title .word:nth-child(3) { animation-delay: 0.84s; }
.hero-title .word:nth-child(4) { animation-delay: 0.96s; }

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* Subtitle - DM Sans from global WordPress config */
.hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  max-width: 750px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 1s ease-out 1.3s forwards;
}

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

/* ========== SCROLL INDICATOR - FIXED ROTATION ========== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 60px;
  z-index: 20;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 2s forwards;
}

.scroll-circle {
  width: 80px;
  height: 80px;
  background: #fd318d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(253, 49, 141, 0.4);
}

.scroll-circle > svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  fill: none;
  animation: bounceArrow 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Fixed: Rotating text container centered on its own axis */
.scroll-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  animation: rotateText 10s linear infinite;
  transform-origin: center center;
}

.scroll-text svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.scroll-text text {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  fill: #ffffff;
}

@keyframes rotateText {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .float-1 { left: -8%; top: 2%; }
  .float-2 { right: -8%; }
  .float-3 { left: -3%; }
  .float-4 { right: -2%; }
  .float-5 { display: none; }
  .float-6 { display: none; }
  
  .isologo-3 { display: none; }
  
  .scroll-indicator {
    right: 30px;
    bottom: 30px;
  }
}

@media (max-width: 768px) {
  .creative-hero {
    min-height: 100svh;
    padding: 100px 15px 120px;
  }
  
  .floating-element {
    opacity: 0.7;
  }
  
  .float-1 {
    width: 140px;
    height: 140px;
    top: 3%;
    left: -15%;
  }
  
  .float-2 {
    width: 120px;
    height: 120px;
    top: 5%;
    right: -12%;
  }
  
  .float-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: -8%;
  }
  
  .float-4 {
    width: 120px;
    height: 120px;
    bottom: 8%;
    right: -10%;
  }
  
  .hero-title {
    letter-spacing: -1px;
    font-size: clamp(42px, 11vw, 80px);
  }
  
  .hero-subtitle {
    font-size: 16px;
    padding: 0 10px;
  }
  
  .spinning-isologo {
    opacity: 0.5;
  }
  
  .isologo-1 { width: 40px; height: 40px; }
  .isologo-2 { width: 35px; height: 35px; }
  .isologo-3 { display: none; }
  
  .scroll-indicator {
    right: 20px;
    bottom: 20px;
  }
  
  .scroll-circle {
    width: 65px;
    height: 65px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 15px;
  }
  
  .floating-element {
    opacity: 0.5;
  }
  
  .spinning-isologo {
    display: none;
  }
}
