.lista-servicios {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 2rem auto 0;
max-width: 1439px;
}

.servicio {
  text-align: left;
  margin: 20px 0 30px;
  max-width: max(250px, 30%);
}

.servicio a {
  font: var(--p)
}


.servicios {
    margin: 0 auto;
    text-align: center;
    padding-top: 40px;
}

.servicios h1.azul {
    text-align: center;
    margin: 0 auto 2rem;
    max-width: max(300px, 60%);
    justify-self: center;
}

.servicio img {
    width: 172px;
    height: auto;
}

.servicio p {
    font-weight: 300;
    color: #333;
    margin-top: 10px;
}

.servicio .btn-conocenos {
    background-color: var(--azul);
}

.servicio .fh2 {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--azul2);
    margin-bottom: 10px;
}

.servicio p {
    font: var(--small);
    color: var(--azul);
    max-width: 250px;
}



/* Carrusel de servicios */

/* Estilos para el carrusel en móviles y pantallas pequeñas */
.carousel-container {
  position: relative;
  width: 90%; 
  max-width: 400px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.servicio {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
  margin-right: 10px;
  border: 2px solid #f0f0f0;
}

.carousel-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px
}

.carousel-buttons button {
  background-color: white;
  color: var(--azul);
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  font: var(--h1); 
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


@media (min-width: 990px) {
  .carousel-container {
    max-width: 1200px; 
    overflow: visible;
  }

  .carousel-track {
    justify-content: space-between;
    gap: 20px;
    transform: none !important; /* Asegura que no haya deslizamiento */
  }

  .servicio {
    flex: 1;
    max-width: 350px;
    border: 1px solid #eee; 
    background-color: white;
    justify-items: center;
  }

  .carousel-buttons {
    display: none;
  }
}

