/* Estilos generales del slider */
.slider {
  width: 100%;
  height: 510px;
  position: relative;
  overflow: hidden;
  /* Oculta las partes de las im�genes que salen del contenedor */
}

.slider img {
  width: 100%;
  height: 500px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 1s ease-in-out;
  /* Transici�n por defecto */
}

.slider img.active {
  opacity: 1;
}

/* Efecto de desvanecimiento */
.fade {
  animation: fadeEffect 1s forwards;
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Efecto de deslizamiento desde la derecha */
.slide-right {
  animation: slideRightEffect 1s forwards;
}

@keyframes slideRightEffect {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

/* Efecto de deslizamiento desde la izquierda */
.slide-left {
  animation: slideLeftEffect 1s forwards;
}

@keyframes slideLeftEffect {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

/* Efecto de deslizamiento desde abajo */
.slide-up {
  animation: slideUpEffect 1s forwards;
}

@keyframes slideUpEffect {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Efecto de deslizamiento desde arriba */
.slide-down {
  animation: slideDownEffect 1s forwards;
}

@keyframes slideDownEffect {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.navigation-button {
  text-align: center;
  position: relative;
  margin-top: 10px;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

.active-dot,
.dot:hover {
  background-color: #717171;
}

.icon_book {

  width: 80px;
  height: auto;
  position: relative;
  top: -7px;
}

.icon_peopple {
  width: 80px;
  height: auto;
  position: relative;
  top: -15px;
}

.icon_courses {
  width: 80px;
  height: auto;
  position: relative;
  top: -20px;
}

#frontpage-category-names {
  background-color: #ffffff;
}

#frontpage-category-names .course_category_tree .content .subcategories {
  text-align: center;
  color: #ffffff;
}

.child-banner-category-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.title_in_cube {
  text-align: center;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
}

.text_in_cube {
  text-align: center;
  color: #87cdd5;
  font-size: 1.2em;
  font-weight: bold;
}

.banner-category-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px;
  width: 100%;
  background: #454c9b;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.banner-category-custom:hover {
  transform: scale(1.05); 
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.icono {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-grow: 0;
}

.icono img {
  width: 70%;
  max-width: 100%;
  height: auto;
}

.texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.texto span {
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
}

.texto strong {
  font-size: 1.4em;
  color: #79C7D3;
  font-weight: bold;
}

@media (max-width: 1024px) {
  .banner-category-custom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .icono {
    width: 70px;
    height: 70px;
  }

  .icono img {
    width: 60%;
  }

  .texto span {
    font-size: 1.1em;
  }

  .texto strong {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .banner-category-custom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .icono {
    width: 60px;
    height: 60px;
  }

  .icono img {
    width: 50%;
  }

  .texto span {
    font-size: 1em;
  }

  .texto strong {
    font-size: 1.2em;
  }
}


@media (max-width: 480px) {
  .icono {
    width: 50px;
    height: 50px;
  }

  .icono img {
    width: 45%;
  }
}