/* BYM v26 — experiencia audiovisual fusionada con la misión */
.bym-video-cover {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(101, 39, 226, .15), transparent 55%),
    #040309;
  scroll-margin-top: 0;
}

.bym-cover-video {
  position: absolute;
  z-index: -3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  background: #040309;
  filter: saturate(1.04) contrast(1.025);
  transform: scale(1.01);
  transition: opacity .7s ease;
}

.bym-video-cover.is-ready .bym-cover-video {
  opacity: 1;
}

.bym-video-cover::before,
.bym-video-cover::after,
.bym-cover-vignette {
  content: "";
  position: absolute;
  pointer-events: none;
}

.bym-video-cover::before {
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg,
      #040309 0%,
      rgba(5, 3, 12, .76) 1.5%,
      rgba(12, 6, 26, .42) 5%,
      rgba(36, 14, 69, .2) 10%,
      rgba(59, 24, 108, .08) 14%,
      transparent 19%,
      transparent 67%,
      rgba(4, 3, 9, .52) 100%),
    radial-gradient(ellipse at center, transparent 42%, rgba(4, 2, 10, .28) 100%);
}

.bym-video-cover::after {
  z-index: -1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(5, 3, 11, .28) 38%, #040309 100%);
}

.bym-cover-vignette {
  z-index: -1;
  inset: 0;
  opacity: .42;
  background:
    radial-gradient(circle at 20% 38%, rgba(111, 44, 237, .14), transparent 37%),
    linear-gradient(90deg, rgba(5, 3, 12, .22), transparent 26%, transparent 78%, rgba(5, 3, 12, .18));
  mix-blend-mode: screen;
}

.hero + .bym-video-cover {
  margin-top: -2px;
  box-shadow: 0 -2px 0 #040309;
}

@media (max-width: 720px) {
  .bym-video-cover {
    min-height: 100svh;
  }

  .bym-cover-video {
    object-position: 50% center;
    transform: scale(1.015);
  }

  .bym-video-cover::before {
    background:
      linear-gradient(180deg,
        #040309 0%,
        rgba(5, 3, 12, .78) 2%,
        rgba(14, 7, 30, .44) 6%,
        rgba(41, 16, 78, .2) 11%,
        rgba(64, 26, 118, .08) 15%,
        transparent 20%,
        transparent 62%,
        rgba(4, 3, 9, .65) 100%),
      radial-gradient(ellipse at center, transparent 33%, rgba(4, 2, 10, .32) 100%);
  }

  .bym-video-cover::after {
    height: 29%;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .bym-video-cover {
    min-height: 100dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bym-cover-video {
    transition: none;
  }
}
