.banner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  padding-top: 40px;
  height: 433px;
  background-color: var(--darkBlue);
  z-index: 1;
}

.banner--bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.banner--bg video {
  width: 101%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.banner__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  width: 90%;
  max-width: 1026px;
  margin: 0 auto;
  color: var(--white);
}

.banner__content .banner__pretitle {
  text-transform: uppercase;
  font-size: 14px;
}

.banner__content .banner__text {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.banner__content .banner__text .banner__title {
  font-size: clamp(20px, 2.5vw, 29px);
  font-weight: 700;
  line-height: 1.2;
}

.banner__content .banner__subtitle {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.2;
}

.banner__content .banner__button {
  display: inline-block;
  padding: 8px 0;
  width: 176px;
  background-color: var(--blue);
  color: var(--white);
  border-radius: 4px;
  text-decoration: none;
  font-size: clamp(.8rem, 2vw, 1rem);
  margin-top: 10px;
}

.banner__content .banner__button:hover {
  background-color: rgb(from var(--blue) r g b / 0.8);
}

@media screen and (min-width: 768px) {
  .banner {
    height: 438px;
    padding-top: 50px;
    max-height: 440px;
    max-width: 1436px;
    margin: 0 auto;
  }

  .banner--bg {
    right: 0;
    top: 0;
    left: 0;
    transform: none;
    height: 438px;
    max-height: 440px;
  }

  .banner__content {
    align-items: flex-start;
  }

  .banner__text {
    text-align: left;
  }
}

/* Oculta el video de móvil por defecto */
#video-mobile {
  display: none;
}

/* En pantallas pequeñas, oculta el de escritorio y muestra el de móvil */
@media (max-width: 768px) {
  #video-desktop {
    display: none;
  }

  #video-mobile {
    display: block;
  }
}