/* ==========================================================================
   Slider de Disertantes (Swiper + modulo Grid)
   5 columnas x 2 filas en desktop / 2 columnas x 2 filas en mobile
   ========================================================================== */

.speakers-gallery-sec .speakers-gallery-items-wrap {
  padding-bottom: 10px;
}

.speakers-gallery-sec .speakers-swiper {
  overflow: hidden;
  padding-bottom: 10px;
}

/* Cada swiper-slide reemplaza a las columnas de Bootstrap: el ancho lo
   controla Swiper (slidesPerView), asi que no necesita width propio. */
.speakers-gallery-sec .speakers-swiper .swiper-slide {
  height: auto;
}

.speakers-gallery-sec .speakers-swiper .speakers-gallery-item {
  height: 100%;
}

/* Flechas de navegacion (mismo patron visual que el carousel de Testimonios,
   pero con el color primario del sitio para que combine con cualquier seccion) */
.speakers-gallery-sec .speakers-carousel-nav {
  position: absolute;
  top: -90px;
  right: 30px;
  display: flex;
  gap: 12px;
  z-index: 2;
}

.speakers-gallery-sec .speakers-carousel-nav button {
  width: 48px;
  height: 48px;
  background-color: transparent;
  border-radius: 50%;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.4);
  color: rgba(var(--bs-primary-rgb), 1);
  transition: 0.3s;
  cursor: pointer;
}

.speakers-gallery-sec .speakers-carousel-nav button:hover {
  background-color: rgba(var(--bs-primary-rgb), 1);
  color: #fff;
  border-color: rgba(var(--bs-primary-rgb), 1);
}

.speakers-gallery-sec .speakers-carousel-nav button.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

/* Paginacion (puntitos) */
.speakers-gallery-sec .speakers-pagination {
  position: static;
  margin-top: 30px;
  text-align: center;
}

.speakers-gallery-sec .speakers-pagination .swiper-pagination-bullet {
  background: rgba(var(--bs-primary-rgb), 0.3);
  opacity: 1;
  width: 9px;
  height: 9px;
}

.speakers-gallery-sec .speakers-pagination .swiper-pagination-bullet-active {
  background: rgba(var(--bs-primary-rgb), 1);
}

/* En mobile las flechas arriba a la derecha suelen pisar el titulo de la
   seccion: las bajamos junto con la paginacion. */
@media (max-width: 767px) {
  .speakers-gallery-sec .speakers-carousel-nav {
    position: static;
    justify-content: center;
    margin-bottom: 20px;
  }
}
