.v-service {
  display: flex;
  flex-direction: column;
}

.v-servicio-agile {
  width: 400px;
  min-width: 400px;
  position: sticky;
  top: 60px; // margin: 0 auto;
  // height: 100%;
  margin-right: 2rem;
  // border-radius: 4px;
  height: 100%;
  &__slide {
    // width: 50%;
    height: 300px;
    img {
      width: 400px;
      border-radius: 4px;
      height: 300px;
      display: block;
      object-fit: cover;
    }
  }
}

.v-service-card {
  display: flex;
  flex-direction: row;
  margin-bottom: 2rem;
  margin-top: 3rem;
  // border-radius: $br;
  position: relative;
  &-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: $br 0 0 $br;
  }
  &-overlay {
    position: absolute;
    height: 300px;
    top: 0;
    // bottom: 300px;
    left: 0;
    right: 0;
    background-color: rgba(black, 0.4);
    pointer-events: none;
    border-radius: $br 0 0 $br;
    color: var(--primary-text);
    text-align: center;
  }
  &-title {
    // padding-top: 2.5rem;
    position: absolute;
    top: -3rem;
    z-index: 1;
    color: var(--primary);
    font-size: 1.5rem;
  }
  &-content {
    width: 100%;
    line-height: 2;
    padding: 2rem;
    font-weight: 400;
    color: var(--primary-text-invert);
    @include boxshadow-md($primary);
    // box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    border-radius: 8px;
    h3 {
      margin-bottom: 0.5rem;
    }
    ul {
      list-style: none;
      li:before {
        width: 20px;
        height: 20px;
        content: '\e904';
        font-family: 'IconSelect';
        font-size: 1.2rem;
        padding-right: 0.5rem;
        // background-color: red;
        color: var(--primary);
      }
    }
  }
}

.service {
  // margin-top: 1rem;
  margin-bottom: 1rem;
}

.v-grid-service {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.v-card-service {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  &.reverse {
    flex-direction: row-reverse;
    .v-card-service-img {
      transform: translateX(-20%);
    }
    .v-card-service-content-box {
      padding-left: 5%;
      padding-right: 10%;
    }
  }
  &-title {
    padding-bottom: 1rem;
    font-size: 2rem;
  }
  &-description {
    font-weight: 400;
    line-height: 2;
    margin-bottom: 1rem;
    // text-align: left;
  }
  &-btn {
    text-transform: uppercase;
    border: 1px solid white;
    padding: 1rem;
    text-decoration: none;
    color: var(--primary-text);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    &:hover {
      background-color: var(--primary-text);
      color: var(--primary);
    }
  }
  &-img {
    width: 600px;
    height: 400px;
    z-index: 3;
    img {
      width: 120%;
      z-index: 2;
      height: 400px;
      border-radius: $br;
      display: block;
      object-fit: cover;
      @include gradient-gen($primary);
      @include boxshadow-md($primary);
    }
  }
  &-content-box {
    color: var(--primary-text);
    width: 80%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 10%;
    padding-right: 5%;
    border-radius: $br;
    @include boxshadow-md($primary);
    @include gradient-gen($primary);
  }
}

@media (max-width: 997px) {
  .v-service {
    flex-direction: column;
  }
  .v-servicio-agile {
    min-width: 100%;
    width: 100%;
    // padding-top: 1rem;
    background-color: white;
    &__slide {
      width: 100%;
      height: 250px;
      img {
        width: 100%;
        height: 250px;
      }
    }
  }
  .v-grid-service {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 2rem;
  }
  .v-card-service {
    flex-direction: column;
    // width: 100%;
    justify-content: flex-start;
    height: 100%;
    margin-bottom: 0;
    padding: 0rem;
    &.reverse {
      flex-direction: column;
      .v-card-service-img {
        transform: translateX(0);
      }
      .v-card-service-content-box {
        padding: 1rem;
      }
    }
    &-title {
      font-size: 1.5rem;
    }
    &-img {
      width: 100%;
      height: 250px;
      img {
        width: 100%;
        height: 250px;
        border-radius: $br $br 0 0;
        object-fit: cover;
      }
    }
    &-content-box {
      height: auto;
      padding: 1rem;
      margin: 0;
      text-align: center;
      width: 100%;
      height: 100%;
      justify-content: space-between;
      align-items: center;
      border-radius: 0 0 $br $br;
    }
  }

  .v-service-card {
    flex-direction: column;
    &-overlay {
      height: 250px;
      min-height: 250px;
      width: 100%;
      border-radius: $br $br 0 0;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    &-title {
      padding-top: 0;
    }
    &-img {
      height: 250px;
      min-height: 250px;
      border-radius: $br $br 0 0;
    }
  }
}

@media (max-width: 768px) {
  .v-grid-service {
    grid-template-columns: 1fr;
    grid-gap: 2rem;
  }
  .v-servicio-agile {
    &__slide {
      height: 230px;
      img {
        height: 230px;
      }
    }
  }
}

@media (max-width: 360px) {
  .v-servicio-agile {
    &__slide {
      height: 160px;
      img {
        height: 160px;
      }
    }
  }
}
