/* Hero dinámico — Blue Orbit (solo texto; logo imagen después) */

#hero {
  position: relative;
  overflow: hidden;
  justify-content: center;
  background: transparent !important;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 60% at 18% 42%, rgba(0, 163, 255, 0.32) 0%, transparent 58%),
    radial-gradient(ellipse 45% 35% at 88% 18%, rgba(56, 200, 255, 0.14) 0%, transparent 52%),
    linear-gradient(160deg, #05070a 0%, #081428 42%, #0c2548 68%, #06101f 100%);
  background-size: 200% 200%;
  animation: hero-gradient-shift 18s ease infinite;
}

@keyframes hero-gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

#hero #particles-js {
  z-index: 1;
}

#hero .lines {
  z-index: 2;
  background-image: url(../img/lines-bg.svg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.82;
  animation: hero-lines-drift 22s ease-in-out infinite alternate;
}

@keyframes hero-lines-drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.72;
  }
  to {
    transform: scale(1.04) translate3d(-1%, -1%, 0);
    opacity: 0.88;
  }
}

#hero .content {
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2%;
  pointer-events: none;
}

#hero .content .buttons {
  pointer-events: all;
}

/* Marca: icono a la izquierda del texto (icono + texto) */
.hero-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  padding-bottom: 10px;
  animation: hero-brand-float 5s ease-in-out infinite;
  pointer-events: none;
  text-shadow: 0 2px 24px rgba(0, 163, 255, 0.2);
}

.hero-brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.brand-logo--hero {
  max-height: clamp(4.5rem, 12vw, 7.5rem);
  max-width: clamp(4.5rem, 12vw, 7.5rem);
  height: clamp(4.5rem, 12vw, 7.5rem);
  width: clamp(4.5rem, 12vw, 7.5rem);
  margin: 0;
  flex-shrink: 0;
  align-self: center;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

@keyframes hero-brand-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

.hero-brand__title {
  margin: 0;
  padding: 0;
  font-size: clamp(3.2rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
}

.hero-brand__tagline {
  margin: 0.35em 0 0;
  padding: 0;
  font-size: clamp(0.75rem, 1.8vw, 1.05rem);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#hero.smaller-banner .hero-brand {
  margin-bottom: 0.35rem;
  animation: none;
}

#hero.smaller-banner .hero-brand {
  gap: 0.75rem;
}

#hero.smaller-banner .brand-logo--hero {
  max-height: clamp(2.5rem, 7vw, 3.5rem);
  max-width: clamp(2.5rem, 7vw, 3.5rem);
}

#hero.smaller-banner .hero-brand__title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

#hero.smaller-banner .hero-brand__tagline {
  font-size: clamp(0.95rem, 2vw, 1.25rem);
}

/* Subpáginas: sin franja blanca entre hero y contenido */
#hero.smaller-banner .wave-bottom {
  display: none;
}

#hero.smaller-banner + #contact-form > .wave-top,
#hero.smaller-banner + section > .wave-top:first-child {
  display: none;
}

#hero.smaller-banner {
  margin-bottom: 0;
  margin-top: -6.1vh;
  padding-top: 6.1vh;
  min-height: calc(26vh + 6.1vh);
  box-sizing: border-box;
}

body:has(#hero.smaller-banner) header {
  background-color: transparent !important;
}

#hero.smaller-banner + #contact-form {
  padding-top: 6rem;
}

@media (max-width: 41.6875em) {
  #hero.smaller-banner + #contact-form {
    padding-top: 4.5rem;
  }
}
