/* ========== HEADER ========== */
.main-header {
  background-color: #fff;
  position: relative
}
.main-header .navbar-brand{
        -ms-flex: unset;
        flex: unset;
}

/* ========== VIDEO SECTION ========== */
.video-section {
  height: 70vh;
}
.video-responsive-block {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 300px;
  overflow: hidden;
  background: #000;
}

.video-responsive-block iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
  background: #000;
  border: none;
  max-width: none;
}

/* --- Picture fallback --- */
.video-responsive-block picture {
  z-index: 2;
  display: none;
}

/* ========== SCROLL BELOW BUTTON ========== */
#scroll-below-btn {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  background: rgba(78, 79, 81, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 1.5px 4px rgba(0,0,0,0.10);
  pointer-events: auto;
  animation: fadeInUp 0.7s cubic-bezier(.4,0,.2,1) 0.2s forwards;
  transition:
    box-shadow 0.3s cubic-bezier(.4,0,.2,1),
    background 0.3s cubic-bezier(.4,0,.2,1),
    color 0.3s cubic-bezier(.4,0,.2,1),
    transform 0.2s cubic-bezier(.4,0,.2,1),
    opacity 0.5s cubic-bezier(.4,0,.2,1);
}

#scroll-below-btn .flecha {
  position: relative;
}

#scroll-below-btn:hover {
  background: #fff;
  color: rgba(78, 79, 81, 0.85);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35), 0 3px 8px rgba(0,0,0,0.15);
}

/* ========== SPINNER ========== */

.video-overlay{
    background: black;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 9;
    display: flex;
    justify-content: center;
    align-items: center;
}
.spinner-video {
  width: 54px;
  height: 54px;
  border: 6px solid rgba(255,255,255,0.15);
  border-top: 6px solid #6DB853;
  border-right: 6px solid #6DB853;
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.18);
  position: relative;
  background: transparent;
}

.spinner-video::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 13px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.25;
  box-shadow: 0 0 8px #6DB853;
}

@keyframes spinner-rotate {
  0%   { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* ========== RESPONSIVE ========== */
@media (min-aspect-ratio: 16/9) {
  .video-responsive-block iframe {
    width: 100vw;
    height: 56.25vw;
  }
}
@media (max-aspect-ratio: 16/9) {
  .video-responsive-block iframe {
    width: 132.78vh;
    height: 70vh;
  }
}

  .video-responsive-block iframe.video-dk {
    display: block;
  }
  .video-responsive-block iframe.video-mb {
    display: none;
  }
@media (max-width: 767px) {
  .video-section {
    height: auto;
  }
  .video-responsive-block {
    height: 30vh;
    min-height: 180px;
  }
  .video-responsive-block iframe.video-dk {
    display: none;
  }
  .video-responsive-block iframe.video-mb {
    display: block;
    height: 79vw;
  }
  #scroll-below-btn {
    display: none !important;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 40px);}
  to   { opacity: 1; transform: translate(-50%, 0);}
}
