#servicios {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#servicios img {
  width: 100%;
  align-self: center;
}

#titulo-servicios {
  text-align: center;
  max-width: 50ch;
  margin: 0 1em;
}

#titulo-servicios a {
  text-decoration: none;
  color: white;
}

#servicios p {
  max-width: 50ch;
}

#contenido-servicios {
  display: grid;
  grid-template-columns: 15vw 70vw 15vw;
}

#cards-containers {
  display: flex;
  flex-direction: column;
  row-gap: 1em;
  width: 100%;
}

#cards-containers img {
  width: 40%;
}

#cards-containers h3 {
  font-size: 0.7em;
}

.card button {
  border-radius: 24px;
  font-size: 0.7em;
  color: black;
  margin-bottom: 2em;
  margin-top: auto;
  padding: 0.5em;
  cursor: pointer;
  background: linear-gradient(180deg, #FFEA00, #FF6C14);
}

.card button:hover {
  background:  #FFEA00
}



.rows {
  display: flex;
  flex-direction: row;
  gap: 1em;
  width: 100%;
}

.card {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: column;
  flex: 1 1 10%;
  text-align: center;
  /* background-color: #26597d; */
  /* background: linear-gradient(45deg, #3B014D, #A5005A); */
  /* background-color: #EFEFEF; */
  background-color: #B8BCBB;
  border-radius: 8px;
  padding: 2em 2em 0em;
  min-height: 300px;
  width: auto;
  box-sizing: border-box;
  color: #242827;
}


/* CHATGPT */
/* Estilos del contenedor del carrusel */
 /* Estilos del contenedor del carrusel */
 .swiper-container {
  width: 100%;
  height: 300px;
  /* Ajusta la altura según tus necesidades */
  margin: 0 auto;
  /* Centra el carrusel */
  overflow: hidden;
  /* Oculta el desbordamiento */
}

/* Estilos de cada carta */
.swiper-slide {
  background-color: #B8BCBB;
  /* Fondo de cada carta */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: #242827;
  /* Color de texto */
  border: 1px solid #ccc;
  /* Borde de las cartas */
  border-radius: 10px;
  /* Bordes redondeados */
  height: 100%;
  /* Mantiene la altura del contenedor */
  flex-shrink: 0;
  /* Para evitar que se reduzca el tamaño */
  width: 80%;
  /* Una carta ocupa el 100% del contenedor */
}

/* Estilo general de los puntos */
.swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 0 0.6rem !important;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Gradientes de color de izquierda a derecha */
.swiper-pagination-bullet:nth-child(1) {
  background: linear-gradient(90deg, #3B014D, #5A015A);
}
.swiper-pagination-bullet:nth-child(2) {
  background: linear-gradient(90deg, #5A015A, #7A0167);
}
.swiper-pagination-bullet:nth-child(3) {
  background: linear-gradient(90deg, #7A0167, #9A0174);
}
.swiper-pagination-bullet:nth-child(4) {
  background: linear-gradient(90deg, #9A0174, #B0016F);
}
.swiper-pagination-bullet:nth-child(5) {
  background: linear-gradient(90deg, #B0016F, #C3006A);
}
.swiper-pagination-bullet:nth-child(6) {
  background: linear-gradient(90deg, #C3006A, #D70066);
}
.swiper-pagination-bullet:nth-child(7) {
  background: linear-gradient(90deg, #D70066, #EA0061);
}
.swiper-pagination-bullet:nth-child(8) {
  background: linear-gradient(90deg, #EA0061, #A5005A); 
}

/* Punto activo para destacar */
.swiper-pagination-bullet-active {
  transform: scale(1.4);
}


@media (max-width: 1180px) {
  #contenido-servicios {
    display: flex;
    width: 90vw;
    font-size: 1.4em;
  }

  .rows {
    display: grid;
    grid: repeat(2, 1fr) / repeat(2, 1fr);
  }

  #contenido-servicios>img {
    display: none;
  }

  #servicios img {
    width: 70px;
  }
}


/* Estilos para las cards en versión móvil */
@media (max-width: 800px) {
  .card button {
    margin-top: 1em;
    padding-top: 1em;
  }

  .card {
    justify-content: center;
  }

  #cards-containers h3 {
    font-size: 1em;
  }
}





@media (max-width: 750px) {
  .card {
    width: 75%;
    padding-top: 0;
  }
  
  #cards-containers {
    overflow-x: hidden;
    position: relative;
  }
  
  .sliding-card {
    display: flex;
    overflow-x: auto;
    /* Permite el desplazamiento horizontal */
    scroll-snap-type: x mandatory;
    /* Para el efecto de 'snap' */
  }

  #contenido-servicios {
    width: 100vw;
  }
  
  .card {
    scroll-snap-align: start;
    /* Alineación de las cards al deslizar */
    flex: 0 0 auto;
    /* Mantener el tamaño de la card */
  }
}

@media (max-width: 600px) {
  #contenido-servicios {
    display: flex;
  }

  .rows {
    display: grid;
    grid: repeat(2, 1fr) / repeat(2, 1fr);
  }

  .card {
    padding: 1em;
  }

  .card button {
    margin-bottom: 0;
  }
}