/* Valores Start */
.valores-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.valores-card {
  padding-inline: 0.5rem;
  width: 18.875rem;
  height: 22rem;
  text-align: center;
  background-color: var(--light);
  border: 1px solid var(--primario);
  transition: 0.2s;
}

.valores-card i {
  color: var(--secundario);
  font-size: 5rem;
  transition: 0.2s;
}

.valores-card h3 {
  font-size: 1.75rem;
}

.valores-card:hover {
  background-color: var(--primario);
  color: var(--white);
}

.valores-card:hover i {
  color: var(--white);
}

/** About Start ***/
.about {
  position: relative;
  z-index: 1;
}

.about svg {
  position: absolute;
  overflow: hidden;
  bottom: 0;
  right: 0;
  width: 40rem;
  height: auto;
  z-index: 0;
}

.mv-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.mv-card {
  border: 2px solid var(--primario);
  padding: 15px 30px 30px 15px;
  color: var(--dark);
  max-width: 25rem;
  min-height: 287px;
  transition: 0.2s;
}

.mv-card:nth-last-of-type(1) {
  flex: 1 250px;
}

.mv-card:nth-last-of-type(2) {
  flex: 1 250px;
}

.mv-card:hover {
  background-color: var(--primario);
  color: var(--white);
}

/*** Servicios Start ***/
.service-body {
  height: 12.5rem;
}

.service-body h4 {
  font-family: "Roboto Slab", serif;
  font-size: 1.125rem;
}

.service-img {
  position: relative;
  z-index: 0;
}

.service-img::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 10rem;
  height: 10rem;
  background-color: red;
  z-index: 99;
}

.service .nav .nav-item {
  width: 75%;
  border: 1px solid var(--primario);
  background: var(--light);
}

.service .nav .nav-item a {
  display: flex;
  justify-content: start;
  text-decoration: none;
}

.owl-stage-outer {
  margin-right: -1px;
}
.service .nav-item a.active {
  background: var(--primario);
}

.service .nav-item a span {
  color: var(--dark);
}

.service .nav-item a.active span {
  color: var(--white);
}

.service-carousel .owl-nav .owl-prev,
.service-carousel .owl-nav .owl-next {
  position: absolute;
  padding: 10px 35px;
  color: var(--white);
  background: var(--dark);
  transition: 0.5s;
}

.service-carousel .owl-nav .owl-prev:hover,
.service-carousel .owl-nav .owl-next:hover {
  background: var(--primario);
  color: var(--white);
}

@media (min-width: 992px) {
  .service-carousel .owl-nav .owl-prev {
    top: 0;
    left: -115px;
  }

  .service-carousel .owl-nav .owl-next {
    bottom: 0;
    left: -115px;
  }
}

@media (max-width: 991px) {
  .owl-stage-outer {
    margin-bottom: 70px;
  }
  .service-carousel .owl-nav .owl-prev {
    bottom: -70px;
    left: 0;
  }

  .service-carousel .owl-nav .owl-next {
    bottom: -70px;
    right: 0;
  }

  .service .nav {
    display: flex;
    justify-content: center;
    text-align: center;
  }
}

/*** Equipo Start ***/
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 2rem;
}

.team-item {
  position: relative;
  width: 25rem;
}

.team .team-item .team-img {
  position: relative;
  overflow: hidden;
}

.team .team-item .team-img img {
  transition: 0.5s;
}

.team .team-item:hover .team-img img {
  transform: scale(1.1);
}

.team .team-item .team-img .team-icon {
  position: absolute;
  bottom: 20px;
  right: -100%;
  z-index: 9;
  transition: 0.5s;
}

.team .team-item:hover .team-img .team-icon {
  right: 25px;
}

.team .team-item .team-img::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  background: rgba(246, 138, 10, 0.2);
  transition: 0.5s;
  z-index: 1;
}

.team .team-item:hover .team-img::after {
  height: 100%;
}

.team .team-item .team-content {
  padding: 1rem;
  background-color: var(--light);
  transition: 0.5s;
}

.team .team-item:hover .team-content {
  background-color: var(--dark);
  color: var(--primario);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Why Us */
.whyus {
  position: relative;
  z-index: 1;
}

.whyus svg {
  position: absolute;
  overflow: hidden;
  bottom: 0;
  right: 0;
  width: 40rem;
  height: auto;
  z-index: 0;
}

.whyus-container {
  margin-bottom: 2rem;
}

.whyus-pair {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: start;
  column-gap: 1rem;
}

.whyus-pair i {
  font-size: 2.125rem;
  color: var(--quinto);
}

.whyus-razon {
  display: flex;
  flex-direction: column;
}

.whyus-titulo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secundario);
}

.img-whyus {
  width: 75%;
  height: auto;
  border-bottom: 1.125rem solid var(--secundario);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
