/* :root {
  --hero-max-w: 1200px;
  --ups-max-w: min(95vw, var(--hero-max-w));
  --ups-max-h: clamp(320px, 70svh, 820px);
  --gap: clamp(8px, 2vh, 20px);
}


.section-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: var(--gap);
  padding: clamp(110px, 14vh, 160px) 20px 60px;
  overflow: hidden;
  z-index: 2;
  background: url('https://crm.kenjitsulatam.com/assets/images/bg-home/banner_7.png') center/cover no-repeat;
}

.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 0;
}


.glow-bg {
  position: absolute;
  top: 58%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 60, 60, 0.7) 0%, rgba(255, 0, 0, 0.2) 45%, transparent 80%),
    radial-gradient(circle, rgba(255, 0, 0, 0.3) 0%, transparent 70%);
  filter: blur(100px) brightness(1.2);
  z-index: 1;
  animation:
    pulseGlow 5s ease-in-out infinite,
    innerBreath 9s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(90px) brightness(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
    filter: blur(120px) brightness(1.4);
  }
}

@keyframes innerBreath {
  0%, 100% {
    background:
      radial-gradient(circle, rgba(255, 50, 50, 0.5) 0%, rgba(255, 0, 0, 0.15) 45%, transparent 80%),
      radial-gradient(circle, rgba(255, 0, 0, 0.25) 0%, transparent 70%);
  }
  50% {
    background:
      radial-gradient(circle, rgba(255, 100, 100, 0.8) 0%, rgba(255, 0, 0, 0.25) 45%, transparent 80%),
      radial-gradient(circle, rgba(255, 0, 0, 0.4) 0%, transparent 70%);
  }
}


.ups {
  width: min(100%, var(--ups-max-w));
  max-height: var(--ups-max-h);
  height: auto;
  object-fit: contain;
  display: block;
  margin: clamp(10px, 6vh, 30px) auto 0;
  position: relative;
  z-index: 5;
  will-change: transform, filter, opacity;
  transition: filter 1s ease, transform 1.2s ease, opacity 0.8s ease;
  filter: drop-shadow(0 0 60px rgba(255, 0, 0, 0.45))
          drop-shadow(0 0 40px rgba(255, 0, 0, 0.3));
  transform: scale(0.82) translateY(40px);
  opacity: 0;
  animation: floatBreath 6s ease-in-out infinite;
}

@keyframes floatBreath {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 60px rgba(255, 0, 0, 0.45))
            drop-shadow(0 0 40px rgba(255, 0, 0, 0.3));
  }
  50% {
    transform: translateY(-5px) scale(1.03);
    filter: drop-shadow(0 0 80px rgba(255, 0, 0, 0.6))
            drop-shadow(0 0 50px rgba(255, 0, 0, 0.4));
  }
}


#sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}
.ray {
  stroke: #ff3344;
  stroke-width: 2.3;
  fill: none;
  filter: drop-shadow(0 0 10px #ff0000) drop-shadow(0 0 30px #ff3333);
}


.hero-texts {
  position: relative;
  z-index: 6;
  margin-top: clamp(0px, 1vh, 10px);
}

.hero-text {
  font-size: clamp(2.3rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  margin: 0;
  opacity: 0;
}


.hero-text .highlight {
  background: linear-gradient(90deg, #ff2020, #ffffff, #ff2020);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
  animation: textEnergy 5s ease-in-out infinite;
}

@keyframes textEnergy {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}


@media (max-width: 1024px) {
  .section-hero {
    padding-top: 130px;
  }
  .ups {
    max-height: 65svh;
  }
}

@media (max-width: 768px) {
  .glow-bg {
    width: 520px;
    height: 520px;
  }
  .section-hero {
    padding-top: 140px;
  }
  .hero-text {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }
} */


:root {
  --hero-max-w: 1200px;
  --ups-max-w: min(95vw, var(--hero-max-w));
  --ups-max-h: clamp(320px, 65svh, 820px);
  --gap: clamp(8px, 2vh, 20px);
}

/* Sección principal */
.section-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: var(--gap);
  padding: clamp(110px, 14vh, 160px) 20px 60px;
  overflow: hidden;
  z-index: 2;
  background: url('https://kenjitsulatam.com/images/fondoFinal5.webp') center/cover no-repeat;
}

.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 0;
}

/* Glow energético */
.glow-bg {
  position: absolute;
  top: 58%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 60, 60, 0.7) 0%, rgba(255, 0, 0, 0.2) 45%, transparent 80%),
    radial-gradient(circle, rgba(255, 0, 0, 0.3) 0%, transparent 70%);
  filter: blur(100px) brightness(1.2);
  z-index: 1;
  animation:
    pulseGlow 5s ease-in-out infinite,
    innerBreath 9s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(90px) brightness(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
    filter: blur(120px) brightness(1.4);
  }
}

@keyframes innerBreath {
  0%, 100% {
    background:
      radial-gradient(circle, rgba(255, 50, 50, 0.5) 0%, rgba(255, 0, 0, 0.15) 45%, transparent 80%),
      radial-gradient(circle, rgba(255, 0, 0, 0.25) 0%, transparent 70%);
  }
  50% {
    background:
      radial-gradient(circle, rgba(255, 100, 100, 0.8) 0%, rgba(255, 0, 0, 0.25) 45%, transparent 80%),
      radial-gradient(circle, rgba(255, 0, 0, 0.4) 0%, transparent 70%);
  }
}

.energy-fog {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 600px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(255,50,50,0.25), transparent 70%);
  filter: blur(80px);
  animation: fogMove 12s ease-in-out infinite alternate;
  z-index: 2;
}

@keyframes fogMove {
  0% { transform: translate(-50%, -48%) scale(1); opacity: 0.4; }
  100% { transform: translate(-50%, -52%) scale(1.05); opacity: 0.6; }
}

@keyframes textGlowReactive {
  0%, 100% { text-shadow: 0 0 10px rgba(255,0,0,0.4); }
  50% { text-shadow: 0 0 30px rgba(255,0,0,0.9); }
}
.hero-text .highlight {
  animation: metalSweep 6s ease-in-out infinite, textGlowReactive 4s ease-in-out infinite;
}

section-hero:hover .ups {
  transform: scale(1.03) translateY(-4px);
  transition: all 0.6s ease;
}

.energy-sparks {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff3333;
  box-shadow:
    0 0 10px rgba(255,0,0,0.8),
    0 0 20px rgba(255,0,0,0.4);
  animation: sparkBlink 1.8s ease-in-out infinite alternate;
}
@keyframes sparkBlink {
  0% { opacity: 0.2; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.3); }
}




/* Imagen UPS */
.ups {
  width: min(100%, var(--ups-max-w));
  max-height: var(--ups-max-h);
  height: auto;
  object-fit: contain;
  display: block;
  margin: clamp(0px, 0vh, 60px) auto 0;
  position: relative;
  z-index: 5;
  will-change: transform, filter, opacity;
  transition: filter 1s ease, transform 1.2s ease, opacity 0.8s ease;
  filter: drop-shadow(0 0 60px rgba(255, 0, 0, 0.45))
          drop-shadow(0 0 40px rgba(255, 0, 0, 0.3));
  transform: scale(0.82) translateY(40px);
  opacity: 0;
  animation: floatBreath 6s ease-in-out infinite;
}


.ups::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(255,0,0,0.25), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}



@keyframes floatBreath {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 60px rgba(255, 0, 0, 0.45))
            drop-shadow(0 0 40px rgba(255, 0, 0, 0.3));
  }
  50% {
    transform: translateY(-5px) scale(1.03);
    filter: drop-shadow(0 0 80px rgba(255, 0, 0, 0.6))
            drop-shadow(0 0 50px rgba(255, 0, 0, 0.4));
  }
}

/* Rayos eléctricos */
#sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}
.ray {
  stroke: #ff3344;
  stroke-width: 2.3;
  fill: none;
  filter: drop-shadow(0 0 10px #ff0000) drop-shadow(0 0 30px #ff3333);
}

/* Texto principal */
.hero-texts {
  position: relative;
  z-index: 6;
  margin-top: clamp(0px, 1vh, 10px);
}

.hero-text {
  font-size: clamp(2.3rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  margin: 0;
  opacity: 0;
}

/* === KENJITSU: Efecto metálico realista === */
.hero-text .highlight {
  background: linear-gradient(
    120deg,
    #ff2020 0%,
    #ffffff 20%,
    #ff2020 40%,
    #ff4040 60%,
    #ffffff 80%,
    #ff2020 100%
  );
  background-size: 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 30px rgba(255, 0, 0, 0.7),
    0 0 60px rgba(255, 0, 0, 0.3);
  animation: metalSweep 6s ease-in-out infinite;
}

/* Movimiento suave de brillo metálico dentro del texto */
@keyframes metalSweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive */
@media (max-width: 1024px) {
  .section-hero {
    padding-top: 130px;
  }
  .ups {
    max-height: 65svh;
  }
}

@media (max-width: 768px) {
  .glow-bg {
    width: 520px;
    height: 520px;
  }
  .section-hero {
    padding-top: 140px;
  }
  .hero-text {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }
}
