/* Custom styles for slider - El Jap! */
.slider {
  position: relative;
  width: calc(100% + 2.5rem);
  max-width: calc(100% + 2.5rem);
  overflow: hidden;
  margin: auto;
  border-radius: 30px;
  height: auto;
  aspect-ratio: 16/7;
  min-height: 600px;
  margin-left: -1.25rem;
}

/* Contenedor de las slides */
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%; /* Se multiplica por el número de slides */
  aspect-ratio: 16/7;
  min-height: 600px;
}

/* Cada slide */
.slide {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

/* Enlace dentro de cada slide */
.slide a {
  text-decoration: none;
  color: white;
  display: block;
  text-align: left;
  box-sizing: border-box;
}

/* Contenedor del texto dentro del enlace */
.slide .content-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  flex-wrap: wrap;
  align-content: flex-start;
}

.slide p {
  font-size: 17px;
  margin: 0;
  text-transform: capitalize;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.slide_subtitle {
    font-size: 20px !important;
    text-transform: inherit !important;
    margin-top: 10px !important;
}

.slide h2 {
  font-size: 50px;
  line-height: 60px !important;
  margin: 10px 0 0 0;
  width: 45%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Contenedor de los bullets y la barra de progreso */
.slider-indicators-container {
  position: absolute;
  bottom: 30px;
  left: 30px;
  transform: translateX(0);
  display: flex;
  align-items: center;
  gap: 15px; /* Espacio entre la barra de progreso y los bullets */
}

/* Barra de progreso */
.progress-bar {
  width: 50px; /* Ancho de la barra de progreso */
  height: 10px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  margin-top: 1px;
}

.progress {
  height: 100%;
  width: 0;
  background-color: white;
  transition: width 5s linear; /* Duración del slide */
}

/* Estilo para los bullets */
.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.bullet {
  display: block;
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.bullet.active {
  background-color: white;
  display: none;
}


.slide .content-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  padding: 30px;
}


.slide .content-slide div {
  text-align: left;
  padding: 30px;
}


/*-----ENCUENTROS SLIDER------*/
.node--type-encuentros .slider,
.page-node-type-jornada .slider,
.page-node-type-taller .slider {
  width: 77%;
  max-width: 77%;
  margin: 60px auto 35px auto;
  min-height: 550px;
}

/* Responsive */

@media (min-width: 1400px) {
  .slider {
    min-height: 600px;
  }
  
  .slides {
    min-height: 600px;
  }

  .slide h2 {
    font-size: 60px;
    line-height: 65px !important;
    width: 40%;
  }  

  .slide {
    background-size: cover;
    background-position: bottom;
}
}

@media (max-width: 1200px) {
  .slider {
    min-height: 580px;
  }
  
  .slides {
    min-height: 580px;
  }

  .slide{
    background-size: cover;
  }

  .slide .content-slide{
    padding: unset;
    left: 0;
  }
  
  .slide p {
    font-size: 20px;
  }
  
  .slide h2 {
    font-size: 42px;
    line-height: 50px !important;
    width: 45%;
    margin: 0;
    line-height: unset;
  }  

  .node--type-encuentros .slider,
  .node--type-encuentros .slides,
  .page-node-type-jornada .slider, 
  .page-node-type-jornada .slides,
  .page-node-type-taller .slider,
  .page-node-type-taller .slides {
    min-height: 480px;
  }
}

@media (max-width: 993px) {
  .slider {
    min-height: 550px;
  }
  
  .slides {
    min-height: 550px;
  }

  .slide::before {
    filter: blur(4px); 
  }

  .slide .content-slide {
    left: -10px;
  }
  
  .slide h2 {
    font-size: 48px;
    line-height: 53px !important;
    width: 100%;
  }  

  .slide .content-slide div {
    padding: 0 0 0 60px;
}

  .slide {
    position: relative; 
    overflow: hidden; 
  }
  
  .slide::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit; 
    filter: blur(4px); 
    z-index: 1; 
  }
  
  .slide .content-slide {
    position: relative; 
    z-index: 2; 
  }

  /*-----ENCUENTROS SLIDER------*/
  .node--type-encuentros .slider,
  .page-node-type-jornada .slider,
  .page-node-type-taller .slider {
    width: 100%;
    max-width: 100%;
    min-height: 430px;
  }
  .node--type-encuentros .slide::before {
    filter: unset;
  }

  .node--type-encuentros .slides {
    min-height: 430px;
  } 
}

@media (max-width: 769px) {
  .slide .content-slide {
    left: -15px;
  }
  
  .slide h2 {
    font-size: 40px;
    line-height: 45px;
  }  

  .slider {
    width: calc(100% + 1.5rem);
    max-width: calc(100% + 1.5rem);
    margin-left: -0.75rem;
  }

  .node--type-encuentros .slider,
  .node--type-encuentros .slides,
  .page-node-type-jornada .slider,
  .page-node-type-jornada .slides, 
  .page-node-type-taller .slider,
  .page-node-type-taller .slides {
    min-height: 380px;
  }
}

@media (max-width: 550px) {
  .slider {
    min-height: 400px;
  }
  
  .slides {
    min-height: 400px;
  }

  .slide .content-slide {
    left: -20px;
  }
  
  .slide p {
    font-size: 18px;
  }
  
  .slide h2 {
    font-size: 36px;
    line-height: 40px !important;
  }  

  .node--type-encuentros .slider,
  .node--type-encuentros .slides,
  .page-node-type-jornada .slider,
  .page-node-type-jornada .slides,
  .page-node-type-taller .slider,
  .page-node-type-taller .slides {
    min-height: 300px;
  }
}




