/* BASE */
.h1-servicios {
  margin-top: 0;
  font-size: 2rem;
}

.h2-servicios {
  font-family: "Avenir";
  font-size: 1.3rem;
  color: #363735;
  font-weight: 500;
}

.servicios-link {
  text-decoration: none;
  display: flex;
  justify-content: center;
  width: 100%;

  margin: 0;
  padding: 0;
}

.p-servicios {
  font-family: "Avenir";
  font-size: 1rem;
  color: #767774;
  font-weight: 300;

  margin: 0;
  padding: 0 1rem 0.3rem 1rem;

  text-align: justify;
}

.servicios-img {
  height: 220px;

  object-fit: cover;
  border-radius: 1.5rem;
}

.cv-servicios {
  background: linear-gradient(to right, #ffa041, #ffc52e);
  color: white;
  border: none;
  border-radius: 10px;

  font-family: "Avenir";
  font-size: 1.2rem;
  font-weight: 600;

  display: block;
  margin: auto;
  padding-left: 35px;
  padding-right: 35px;
  padding-bottom: 10px;
  padding-top: 10px;
}

/* DESKTOP */
@media screen and (min-width: 1119px) {
  .h2-servicios {
    margin: 0;
    padding: 0.5rem 1rem 0 1rem;
  }

  .servicios-img {
    width: 350px;
  }

  .servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;

    align-items: stretch;

    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    padding: 2rem;
    box-sizing: border-box;
  }

  .contenedor-servicio {
    display: flex;
    flex-direction: column;

    background: #f5f5f5;
    border: 1px solid #d3d3d3;
    border-radius: 2rem;
    padding: 1rem;

    height: 100%;

    row-gap: 0.5rem;

    align-items: center;
  }

  .contenedor-servicio h2 {
    text-align: center;
    max-width: 80%;
  }

  .cv-servicios {
    cursor: pointer;

    transition: all 0.5s ease;
  }

  .cv-servicios:hover {
    background: linear-gradient(to right, #0377a8, #3db3e3);
    cursor: pointer;
  }
}

/* NAV MOBILE */
@media screen and (max-width: 1118px) {
  
  .h2-servicios {
    padding: 0.5rem;
  }

  .servicios-img {
    width: 100%;
  }

  .carrusel {
    margin: 2rem auto;
    width: 100%;
    overflow: hidden;

    position: relative;
    border: 5px solid none;
  }

  .servicios-grid {
    display: flex;
    gap: 1rem;

    animation: carrusel 20s linear infinite;
  }

  .contenedor-servicio {
    flex: 0 0 300px;
    align-items: center;
    justify-content: center;
    gap: 1em;

    background: #f5f5f5;
    border: 1px solid #d3d3d3;
    border-radius: 2rem;
    padding: 0.9rem;

    min-width: 300px;
    height: 430px;
  }

  .cv-servicios {
    margin-top: 1rem;
  }

  .carrusel::-webkit-scrollbar {
    display: none;
  }

  @keyframes carrusel {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-300px * 4));
  }
}
}
