/* Contenedor wrapper para controlar las flechas */
.swiper-navigation-wrapper {
  position: relative;
  padding: 0 25px; /* Espacio para las flechas */
}

.top-level-swiper {
  overflow: hidden;
  position: relative;
}

/* Flechas posicionadas relativas al wrapper */
.swiper-navigation-wrapper .swiper-button-prev, 
.swiper-navigation-wrapper .swiper-button-next {
  position: absolute;
  top: 38px;
  transform: translateY(-50%);
  z-index: 10 !important;
  width: 12px;
  {#height: 44px;#}
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  {#transition: opacity 0.3s ease;#}
  cursor: pointer;
}

.swiper-navigation-wrapper .swiper-button-prev { 
  left: 0;
  background-image: url(https://www.buk.cl/hubfs/2023/Chile/arrow-blue-prev.svg) !important;
}

.swiper-navigation-wrapper .swiper-button-next { 
  right: 0;
  background-image: url(https://www.buk.cl/hubfs/2023/Chile/arrow-blue-next.svg) !important;
}

/* Estado deshabilitado */
.swiper-navigation-wrapper .swiper-button-disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  pointer-events: none; /* Evita clicks cuando está deshabilitado */
}

/* Ocultar el ícono por defecto de Swiper */
.swiper-navigation-wrapper .swiper-button-prev::after,
.swiper-navigation-wrapper .swiper-button-next::after {
  display: none;
}

.swiper-slide {
  width: auto !important;
}

.tab-superior {
  display: none;
}

.tab-superior.active {
  display: block;
}

.ocultar { 
  position: absolute; 
  height: 0; 
  opacity: 0; 
  left: -200%;
}

.btn--txt {
  font-size: 20px !important;
  position: relative;
  text-decoration: none !important;
}

.btn--txt::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 0;
  height: 4px;
  background-color: #2F4DAA;
  border-radius: 2px;
  border: transparent;
  {#transition: width 0.3s ease;#}
}

.btn--txt.active::after,
.btn--txt:hover::after,
.btn--txt:focus::after {
  width: 100%;
}

.btn--txt.active {
  font-weight: 700 !important;
}

.btn.btn--txt:hover,
.btn.btn--txt:focus {
  font-weight: 700 !important;
  text-decoration: none !important;
}

.separador {
  width: 100%;
  height: 1px;
  background-color: #2F4DAA;
  position: relative;
  top: -9.5px;
  left: 0px;
  margin: 8px 0 16px;
}

.top-level-menu {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  list-style: none;
}

.top-level-menu__item {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media only screen and (max-width: 768px) {

  .swiper-navigation-wrapper .swiper-button-prev, 
  .swiper-navigation-wrapper .swiper-button-next{
    display:none;
  }
  
  .btn--txt {
    text-decoration: none !important;
  }

  .btn--txt::after {
    background-color: transparent;
  }

  .btn--txt.active {
    font-weight: 700 !important;
  }

  .btn.btn--txt:hover,
  .btn.btn--txt:focus {
    font-weight: 700 !important;
    text-decoration: none !important;
  }

  .top-level-menu {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .top-level-menu::-webkit-scrollbar {
    height: 4px;
    cursor: pointer;
  }

  .top-level-menu::-webkit-scrollbar-thumb {
    background: #2f4daa;
    border-radius: 30px;
    cursor: pointer;
  }

  .top-level-menu::-webkit-scrollbar-track {
    background: #d9e3fc;
    border-radius: 30px;
  }

  .pleca {
    display: none;
  }

  .courses-categories .target-selected button {
    color: #2f4daa !important;
  }

  #btn-collapse.btn--3:hover {
    color: #2f4daa !important;
    font-weight: 700;
  }
}