.mySwiper:not(.swiper-initialized) {
  opacity: 0;
  visibility: hidden;
}

.mySwiper.swiper-initialized {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}



.carrusel-alumnos {
  position: relative;
  padding: 40px 0;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex-shrink: 0;
  width: auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(249, 113, 113, 0.05);
  text-align: center;
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
  transform: scale(0.9);
  opacity: 0.7;
  z-index: 1;
}

.alumno-contenido {
  display: flex;
  flex-direction: column;
}

.alumno-nombre {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  text-align: left;
}

.alumno-imagen {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.resumen {
  font-size: 16px;
  text-align: left;
  color: #444;
}

.leer-mas {
  font-size: 14px;
  text-align: left;
  color: #444;
  font-weight: bold;
}

.modal-body.contenido-alumno {
  color: #000;
}

.contenido-alumno .modal-title.titulo-alumno {
  color: #c42020;
  font-weight: bold;
  font-size: 22px;
}

.swiper {
  position: relative;
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.swiper-button-prev {
  left: calc(50% - 220px);
}
.swiper-button-next {
  right: calc(50% - 220px);
}

.mySwiper .swiper-slide.slide-center {
  transform: scale(1.08);
  opacity: 1;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.swiper-slide {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mySwiper .swiper-slide {
  width: 280px;
  min-width: 280px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  z-index: 1;
}

.swiper-pagination {
  margin-top: 30px;
  text-align: center;
  position: relative;
  z-index: 5;
}

/* CORRECCIÓN PARA MODAL BLOQUEADO Y FONDO GRIS */

.modal {
  z-index: 2000 !important;
  pointer-events: auto !important;
}

.modal-backdrop {
  background-color: transparent !important;
  display: none !important;
}



body.modal-open {
  padding-right: 0 !important;
}

body.modal-open .modal {
  pointer-events: auto;
  opacity: 1;
}

.mySwiper.carrusel-alumnos .swiper-pagination-bullet {
  background-color: #e11b22 !important;
  opacity: 0.5;
}

.mySwiper.carrusel-alumnos .swiper-pagination-bullet-active {
  opacity: 1;
}




@media screen and (max-width: 767px) {
  .mySwiper {
    padding-left: 8vw;
    padding-right: 8vw;
    overflow: hidden;
  }

  .swiper-wrapper {
    overflow: visible;
  }

  .mySwiper .swiper-slide {
    width: 40vw;
    max-width: none;
    flex-shrink: 0;
    transform: scale(0.9);
    opacity: 0.7;
  }

  .mySwiper .swiper-slide.slide-center {
    transform: scale(1.05);
    opacity: 1;
    z-index: 5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .swiper-button-prev {
    left: 6px;
  }

  .swiper-button-next {
    right: 6px;
  }

  .modal.show {
    opacity: 1 !important;
  }

  .modal-backdrop {
    z-index: 1990 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
  }

  .modal {
    z-index: 2000 !important;
  }

  .modal-content {
    opacity: 1 !important;
    z-index: 2000 !important;
    filter: none !important;
  }

  body.modal-open {
    filter: none !important;
    opacity: 1 !important;
  }
}


body:not(.fl-builder-edit) .footer-navegacion {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 999999;
    -webkit-transition: color 1s ease-in-out;
    -moz-transition: color 1s ease-in-out;
    -o-transition: color 1s ease-in-out;
    transition: color 1s ease-in-out;
}

html {
  overflow-y: scroll;
}
