.formaciones-carrusel,
.testimonios-carrusel {
  position: relative;
  overflow: hidden;
}

.formaciones-carrusel .swiper-wrapper,
.testimonios-carrusel .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
}

.formaciones-carrusel .swiper-slide,
.testimonios-carrusel .swiper-slide {
  flex-shrink: 0;
  box-sizing: border-box;
  height: auto;
}

/* Flecha formaciones */
.formaciones-carrusel-next {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 20;

  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  line-height: 1;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  background-color: #000 !important;
  padding: 0;
}

/* Flechas testimonios */
.testimonios-carrusel-prev,
.testimonios-carrusel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;

  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  line-height: 1;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  background-color: #000 !important;
  padding: 0;
}

.testimonios-carrusel-prev {
  left: 12px;
}

.testimonios-carrusel-next {
  right: 12px;
}

/* Solo mostrar en hover desktop */
@media (hover: hover) and (pointer: fine) {
  .formaciones-carrusel:hover .formaciones-carrusel-next, .testimonios-carrusel:hover .testimonios-carrusel-prev,
  .testimonios-carrusel:hover .testimonios-carrusel-next {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .testimonios-carrusel .swiper-wrapper {
    padding: 0 40px;
  }
}

/* En móvil, visible siempre */
@media (hover: none), (pointer: coarse) {
  .formaciones-carrusel-next,
  .testimonios-carrusel-prev,
  .testimonios-carrusel-next {
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .formaciones-carrusel-next,
  .testimonios-carrusel-next {
    right: 8px;
  }

  .testimonios-carrusel-prev {
    left: 8px;
  }

  .testimonios-carrusel .swiper-wrapper {
    padding: 0;
  }
}