.banner-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 32px;
}

.banner-carousel .swiper-slide {
  width: 100%;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modo auto-height: se adapta al contenido */
.banner-carousel-container.auto-height .banner-carousel .swiper-slide {
  height: auto !important;
  min-height: auto;
}

.banner-carousel-container.auto-height .banner-carousel .slide-inner {
  height: auto;
}

.banner-carousel-container.auto-height .banner-carousel .slide-inner img,
.banner-carousel-container.auto-height .banner-carousel .slide-inner video {
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Modo min-height: altura del elemento más pequeño */
.banner-carousel-container.min-height-mode .banner-carousel .swiper-slide {
  height: auto !important;
  overflow: hidden;
}

.banner-carousel-container.min-height-mode .banner-carousel .slide-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Ajuste cover para elementos más grandes */
.banner-carousel-container.min-height-mode.fit-cover .banner-carousel .slide-inner img,
.banner-carousel-container.min-height-mode.fit-cover .banner-carousel .slide-inner video {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  flex-shrink: 0;
  display: block !important;
}

/* Ajuste contain para elementos más grandes */
.banner-carousel-container.min-height-mode.fit-contain .banner-carousel .slide-inner img,
.banner-carousel-container.min-height-mode.fit-contain .banner-carousel .slide-inner video {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 100% !important;
  object-fit: contain !important;
  flex-shrink: 0;
  display: block !important;
}

/* iframes en min-height mode */
.banner-carousel-container.min-height-mode .banner-carousel .slide-inner iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.77%;
  height: 177.77%;
  min-width: 100%;
  min-height: 100%;
  max-height: none;
  object-fit: cover;
}

.banner-carousel .slide-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.banner-carousel .slide-inner img,
.banner-carousel .slide-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

/* Reset para videos/imágenes dentro de contain-wrapper */
.banner-carousel .slide-inner .contain-wrapper img,
.banner-carousel .slide-inner .contain-wrapper video {
  width: auto;
  height: auto;
}

/* Permitir interacción cuando los controles están visibles */
.banner-carousel .slide-inner video[controls] {
  pointer-events: auto;
}

/* Sin controles, sin interacción */
.banner-carousel .slide-inner video:not([controls]) {
  pointer-events: none;
}

.banner-carousel .slide-inner iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.77%; /* para 16:9 cover */
  height: 177.77%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  user-select: none;
}

/* iframes sin controles: sin interacción */
.banner-carousel .slide-inner iframe[src*="controls=0"] {
  pointer-events: none;
}

/* iframes con controles: permitir interacción */
.banner-carousel .slide-inner iframe[src*="controls=1"] {
  pointer-events: auto;
}

.banner-prev,
.banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  opacity: 0.7;
}

.banner-prev:hover,
.banner-next:hover {
  opacity: 1;
}

.banner-prev { left: 20px; }
.banner-next { right: 20px; }

.banner-prev svg,
.banner-next svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.banner-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

/* Estilos para los bullets de Swiper */
.banner-pagination {
  text-align: center;
}

.banner-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1 !important;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 4px;
}

.banner-pagination .swiper-pagination-bullet-active {
  background: #ffffff !important;
  width: 12px;
  height: 12px;
}

.banner-carousel .swiper-slide img,
.banner-carousel .swiper-slide video,
.banner-carousel .swiper-slide iframe {
  transition: opacity 0.5s ease;
}


.banner-carousel .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal{
  left: 50%;
    transform: translateY(-50%);
}

/* Estilos para modo contain con wrapper */
/* Ajuste contain para elementos más grandes */
.banner-carousel-container.min-height-mode.fit-contain .banner-carousel .slide-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000;
  overflow: hidden !important;
}

/* Wrapper para modo contain - prioriza height */
.banner-carousel-container.min-height-mode.fit-contain .banner-carousel .slide-inner .contain-wrapper {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/* Elementos dentro del wrapper - priorizar height sobre width */
.banner-carousel-container.min-height-mode.fit-contain .banner-carousel .slide-inner .contain-wrapper img,
.banner-carousel-container.min-height-mode.fit-contain .banner-carousel .slide-inner .contain-wrapper video {
  height: 100% !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: auto !important;
  min-height: auto !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  user-select: none !important;
}