/* ESTILOS GENERALES */
.benefits,
.servicios {
  margin-top: 20px;
  margin: 20px;
}

.benefits h2,
.servicios h2 {
  text-align: center;
}

.servicios h2::before {
  content: "Nuestros servicios";
  border-bottom: 3px solid #53a75d;
}

.benefits h2::before {
  content: "Beneficios";
  border-bottom: 3px solid #53a75d;
}

/* ESTILOS US SERVICES */
.servicio {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  margin-top: 50px;
  gap: 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.servicio.visible {
  opacity: 1;
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

.servicios img {
  width: 40%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.img_2 {
  width: 20% !important;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.servicios .descripcion {
  width: 100%;
}

.servicios .descripcion p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  text-align: justify;
  padding: 10px;
}

.servicio-btn {
  font-size: 20px;
  font-weight: 800;
  background-color: #53a75d;
  text-decoration: none;
  color: white;
  padding: 15px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

h3 {
  padding-left: 10px;
  border-left: 5px solid gray;
  color: #6bc66e !important;
}

/* ESTILOS BENEFITS */

.benefits-content-cards {
  display: flex;
  flex-direction: row;
  margin: 20px 0;
  padding: 20px;
}

.benefits-content-cards .benefits-card:hover {
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.benefits-card-img-top {
  width: 50px !important;
  margin: 10px;
}

.benefits-card {
  margin: 10px;
  padding: 15px;
  width: 33%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  box-shadow: 0px 0px 10px rgb(212, 212, 212);
  border-radius: 10px;
}

/* ESTILOS DE TESTIMONIOS */
.testimonios h2 {
  text-align: center;
  margin-bottom: 30px;
}

.testimonios h2::before {
  content: "Testimonios de nuestros clientes";
  border-bottom: 3px solid #53a75d;
}

.testimonios {
  padding: 2rem;
  text-align: center;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.cards-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 90%;
}

.servicios-card {
  width: 50%;
  flex: 0 0 100%; /* En móviles */
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 1rem;
  margin: 10px;
  max-width: none;
  background-color: #f4f4f4 !important;
  text-align: center;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.servicios-card i::before {
  content: "\002605";
  color: #ffd726;
  font-size: 30px;
  font-style: normal;
}

.servicios-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.servicios-card p {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.servicios-card span {
  font-weight: bold;
  color: #555;
}

.arrow {
  background-color: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
  padding: 0 1rem;
  z-index: 10;
  transition: color 0.3s ease;
}

.arrow:hover {
  color: #000;
}

/* RESPONSIVE */
@media (max-width: 667px) {
  .servicio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .descripcion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .img_1,
  .img_2,
  .img_3,
  .img_4 {
    width: 100% !important;
    height: auto !important;
  }
  .servicio-btn {
    width: 100% !important;
    text-align: center;
  }
  .benefits-content-cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
  }
  .benefits-card {
    width: 100% !important;
    margin: 10px 0;
  }

  .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    z-index: 100;
    padding: 0 1rem;
  }

  .arrow.left {
    left: 0;
  }

  .arrow.right {
    right: 0;
  }

  .arrow:hover {
    color: #000;
  }

  .servicios-card {
    width: 100%;
  }
}

/* RESPONSIVE PARA TABLETS */
@media (min-width: 667px) and (max-width: 1024px) {
  .servicio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .descripcion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .img_1,
  .img_2,
  .img_3,
  .img_4 {
    width: 100% !important;
    height: auto !important;
  }
  .servicio-btn {
    width: 100% !important;
    text-align: center;
  }
  .benefits-content-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0px;
  } 
  .benefits-card {
    width: 40%;
    margin: 10px;
  }
}