.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

/* ---- Canvas partículas — detrás de todo ---- */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- ondas — detrás de todo ---- */
.hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  display: none;
}

.waves {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
}

.wave-parallax > use {
  animation: waveMove 18s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.wave-parallax > use:nth-child(1) {
  animation-duration: 18s;
  animation-delay: -2s;
}
.wave-parallax > use:nth-child(2) {
  animation-duration: 14s;
  animation-delay: -4s;
}
.wave-parallax > use:nth-child(3) {
  animation-duration: 20s;
  animation-delay: -6s;
}
.wave-parallax > use:nth-child(4) {
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes waveMove {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}
/* ---- Imagen de fondo: ocupa mitad derecha, siempre fija ---- */
.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay oscuro sutil sobre la imagen */
.hero-image-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 2;
}

/* Gradiente que fusiona la imagen con el fondo oscuro — siempre igual */
.hero-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    to right,
    #0a1510 0%,
    #0a1510 8%,
    rgba(10, 21, 16, 0.96) 18%,
    rgba(10, 21, 16, 0.85) 32%,
    rgba(10, 21, 16, 0.6) 50%,
    rgba(10, 21, 16, 0.25) 68%,
    rgba(10, 21, 16, 0.08) 85%,
    transparent 100%
  );
  z-index: 2;
}

/* ---- Contenido izquierda — z-index alto para quedar sobre todo ---- */
.hero__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 680px;
  padding: 80px 0 80px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

/* ---- Logo hero ---- */
.hero__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s ease 0.05s forwards;
}

.hero__logo-image {
  width: 100px;
  height: 72px;
}

.hero__logo-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.hero__logo-name .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}

.hero__logo-name .brand-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.hero__logo-name .brand-divider::before,
.hero__logo-name .brand-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-accent);
  width: 28px;
}

.hero__logo-name .brand-sub {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.45em;
  color: var(--color-accent);
}

/* ---- Texto hero ---- */
.hero__content .eyebrow,
.hero__content h1,
.hero__content p,
.hero__actions {
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp 0.7s ease forwards;
}

.hero__content .eyebrow {
  animation-delay: 0.15s;
}
.hero__content h1 {
  animation-delay: 0.28s;
}
.hero__content p {
  animation-delay: 0.42s;
}
.hero__actions {
  animation-delay: 0.56s;
}

.hero__content h1 {
  font-size: 3.2rem;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--color-text-light);
}

.hero__content p {
  max-width: 460px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-light-muted);
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Keyframes ---- */
@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .hero__inner {
    padding-left: 5%;
    max-width: 580px;
  }

  .hero__media {
    width: 60%;
  }
}

@media (max-width: 992px) {
  .hero {
    min-height: unset;
    padding: 50px 0 70px;
  }
  .hero-waves {
    display: block;
  }

  #hero-canvas {
    display: none;
  }
  .hero__media {
    display: none;
  }
  .hero__logo {
    display: none;
  }

  .hero-image-wrapper::after {
    width: 100%;
    background: linear-gradient(
      to bottom,
      rgba(7, 17, 13, 0.5) 0%,
      rgba(7, 17, 13, 0.92) 100%
    );
  }

  .hero__inner {
    min-height: unset;
    padding: 0 24px;
    max-width: 100%;
  }

  .hero__content h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 640px) {
  .hero__content h1 {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__logo-name .brand-name {
    font-size: 1.5rem;
  }

  .hero__logo-icon {
    width: 56px;
    height: 56px;
  }
}
