/* Full-bleed, no eyebrow/title, no vertical padding — the player sits
   flush against Disponible En above and Footer below. .bep-video keeps a
   background (not just the player) because on wide/short viewports the
   80vh height cap (see .bep-video-player + video.js) shrinks the player
   narrower than the viewport, leaving letterbox bars on both sides that
   need to read as intentional, not as a stray white gap. */
.bep-video {
  width: 100%;
  background-color: #000000;
}

/* .bep-video-player's width/height end up set inline in px by video.js
   (see that file for why) — this is the pre-JS/no-JS resting state, close
   enough to the real thing that there's no layout flash while the YouTube
   IFrame API script loads. */
.bep-video-player {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 80vh;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: #000;
  display: block;
  overflow: hidden;
}

.bep-video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bep-video-sound-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  color: var(--bep-color-titulo-azul);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background-color 200ms ease, transform 200ms ease;
}

.bep-video-sound-toggle:hover {
  background-color: #ffffff;
  transform: scale(1.06);
}

.bep-video-sound-icon {
  width: 22px;
  height: 22px;
}

/* Two SVGs (muted/unmuted) swapped by visibility instead of redrawn —
   video.js toggles .is-unmuted on the button after player.unMute()/mute(). */
.bep-video-sound-icon-unmuted {
  display: none;
}

.bep-video-sound-toggle.is-unmuted .bep-video-sound-icon-muted {
  display: none;
}

.bep-video-sound-toggle.is-unmuted .bep-video-sound-icon-unmuted {
  display: block;
}

@media (max-width: 1024px) {
  .bep-video-sound-toggle {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .bep-video-sound-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .bep-video-sound-toggle {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .bep-video-sound-icon {
    width: 18px;
    height: 18px;
  }
}
