/* Bunny Stream: solo vídeos decorativos como fondo (sin alterar widgets normales). */
.elementor-background-video-container.dw-bunny-background-layer,
.bse-background-video-container,
.bse-background-video,
.bse-bg-video,
.bunny-stream-background,
.bunny-stream-bg,
.bunny-background-video,
.bunny-video-background,
.lago-bunny-background { overflow: hidden; pointer-events: none; }

:is(.elementor-background-video-container, .bse-background-video-container, .bse-background-video,
.bse-bg-video, .bunny-stream-background, .bunny-stream-bg, .bunny-background-video,
.bunny-video-background, .lago-bunny-background, [data-lago-bunny-background],
[data-bunny-background], [data-bse-background]) iframe[src*="mediadelivery.net"],
iframe.dw-bunny-bg-iframe {
  opacity: 0 !important;
  transition: opacity 500ms ease !important;
  will-change: opacity;
}

:is(.elementor-background-video-container, .bse-background-video-container, .bse-background-video,
.bse-bg-video, .bunny-stream-background, .bunny-stream-bg, .bunny-background-video,
.bunny-video-background, .lago-bunny-background, [data-lago-bunny-background],
[data-bunny-background], [data-bse-background]) iframe[src*="mediadelivery.net"].dw-bunny-bg-visible,
iframe.dw-bunny-bg-iframe.dw-bunny-bg-visible { opacity: 1 !important; }

.elementor-background-video-container.dw-bunny-background-layer iframe.dw-bunny-bg-iframe {
  position: absolute !important;
  left: 50%;
  top: 50%;
  display: block;
  max-width: none !important;
  border: 0;
  transform: translate(-50%, -50%);
  /* El cálculo de cover se realiza según el ancho:alto configurado en Elementor. */
  aspect-ratio: auto !important;
  pointer-events: none;
}
.elementor-background-video-container.dw-bunny-background-layer .elementor-background-video-hosted {
  display: none !important;
}
.dw-bunny-bg-mobile-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  iframe.dw-bunny-bg-iframe,
  :is(.elementor-background-video-container, .bse-background-video-container, .bse-background-video,
  .bse-bg-video, .bunny-stream-background, .bunny-stream-bg, .bunny-background-video,
  .bunny-video-background, .lago-bunny-background) iframe[src*="mediadelivery.net"] {
    transition-duration: 0ms !important;
  }
}
