.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
  z-index: -1;
  transition: transform 0.6s ease;
}

.hero:hover::before {
  transform: scale(1.05);
}

.hero.has-video::before {
  content: none; /* desactiva la imagen de fondo si hay vídeo */
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 105%;
  min-height: 105%;
  width: auto;
  height: auto;
  transform: translate(-51%, -50%);
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: -1;
  background-color: #000;
}

.hero .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.0);
  color: var(--brand);
  padding: 24px;
  text-align: left;
  transition: background-color 0.6s ease;
  width: 100%;
}

.hero:hover .content {
  background-color: rgba(0, 0, 0, 0.0);
}

.hero .content h2 {
  font-size: 4.2rem;
}

.hero .content .button {
  background-color: var(--brand);
  color: var(--black);
  border-radius: 24px;
  line-height: 1;
  padding: 14px 26px;
  font-weight: 900;
  font-size: 1.125em;
}

.hero .btn-jump {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  z-index: 1;
  color: var(--brand);
}

.hero .btn-jump svg {
  width: 48px;
}

@media screen and (max-width: 720px) {

  .hero-video {
    left: 65%;
    transform: translate(-65%, -50%);
  }

  .hero .content h2 {
    font-size: 2.1rem;
  }

}