/* MODULOS ESPECIALIZADOS ======================================================= */
#modules {
  position: relative;
  align-items: center;
  padding: 120px 0;
}

#modules.gray {
  background-color: #f8f8f9;
}

#modules h2 {
  font-weight: 200;
  font-size: 45px;
  color: #4f4da7;
  margin: 0 0 20px 0px;
  text-align: center;
}

#modules .pageWidth {
  z-index: 1;
}

#modules .pageWidth > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
#modules .pageWidth > div > div {
  width: calc(50% - 15px);
  background-color: #fff;
  margin: 0 7px 40px 7px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  border-radius: 5px;
  overflow: hidden;
}

#modules .pageWidth > div > div:hover {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

#modules .pageWidth > div > div .photo {
  min-height: 350px;
  position: relative;
  overflow: hidden;
}

#modules .pageWidth > div > div .photo img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

#modules .pageWidth .wrapper {
  padding: 35px 50px 50px 50px;
  display: flex;
  flex-direction: column;
}

#modules .pageWidth .wrapper img {
  max-width: 250px;
  margin: 0 auto 1.5em auto;
}

#modules h3 {
  font-weight: 300;
  font-size: 23px;
  margin: 0 0 20px 0;
}

#modules .pageWidth p {
  font-weight: 200;
  font-size: 20px;
  line-height: 29px;
  margin: 0 0 20px 0;
}

#modules .pageWidth p a {
  font-weight: 300;
}

#modules .pageWidth .crm p a {
  color: #fc636b;
}
#modules .pageWidth .hcm p a {
  color: #fd9a00;
}

#modules .pageWidth .crm p a:hover {
  cursor: pointer;
  text-decoration: underline;
}

#modules .pageWidth .hcm p a:hover {
  cursor: pointer;
  text-decoration: underline;
}

@media screen and (max-width: 850px) {
  #modules {
    padding: 120px 0;
  }
  #modules .pageWidth .wrapper {
    padding: 35px 30px 30px 30px;
  }

  #modules .texture {
    width: 70%;
  }
}

@media screen and (max-width: 750px) {
  #modules .pageWidth > div {
    flex-direction: column;
  }
  #modules .pageWidth > div > div {
    width: 100%;
    background-color: #fff;
    margin: 0 0 30px 0;
  }
}

#modules .cta {
  margin-bottom: 2em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
}

#modules .cta a {
  border-radius: 1em;
  padding: 0.3em 1em;
  font-weight: 700;
  font-size: clamp(0.8rem, 3.6vw, 1rem);
  background-color: var(--dorado-2);
  /* color: var(--marino); */
  color: #000;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-block;
}

#modules .cta a.qc {
  background-color: var(--azul-2);
}
#modules .cta a.lh {
  background-color: var(--verde-2);
}
#modules .cta a.crm {
  background-color: var(--dorado-3);
  margin-top: 3.3em;
}

#modules a.crm:hover {
  background-color: var(--dorado-2);
}

#modules a.lh:hover {
  background-color: var(--verde-1);
}

#modules a.qc:hover {
  background-color: var(--azul-1);
}

@media screen and (max-width: 1060px) {
  #modules .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
