.map-contacto {
  width: 100%;
  height: 550px;
  min-height: 550px;
  // margin: 1em 0;
  // margin-bottom: em;
  // overflow: hidden;
  // @include boxshadow-md($primary);
}

.ubicacion,
.formulario {
  color: var(--primary-text);
}

.banner-contact {
  width: 100%;
  height: 450px;
  object-fit: cover;
  @include boxshadow-md(black);
}

.contacto {
  // background-image: url('~@/assets/img/contacto.jpg');
  background-size: cover;
  background-attachment: fixed;
}
.formulario {
  // height: calc(100vh - 70px);
  padding-top: 12%;
  width: 100%;
  padding-bottom: 12%;
  // display: flex;
  // flex-direction: column;
  // justify-content: center;
  // transform: translateY(-20em);
}
.ubicacion {
  // transform: translateY(-17em);
  &__box {
    // transform: translateY(-17em);
    background-color: #ffffff;
    @include boxshadow-md($primary);
    margin-bottom: 10%;
  }
  &__datos {
    color: var(--primary-text);
    @include gradient-gen($primary);
    border-radius: 0px $br $br 0px;
    padding: 2rem;
    font-weight: 300;
    .center {
      &-title {
        text-align: center;
        margin-bottom: 1em;
        position: relative;
      }
      .group-center {
        display: grid;
        grid-template-columns: 48px 1fr;
        line-height: 1.5;
        margin-bottom: 2em;
        color: var(--primary-text);
        align-items: center;
        .icon {
          // margin-top: 0.5rem;
          font-size: 1.5em;
          text-align: center;
          // color: darken($primary-text, 25);
          color: lighten($primary, 30);
        }
      }
    }
  }
}
.title-form {
  // grid-column: span 2;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  // padding-bottom: 1em;
}
.formulario__box {
  background-color: white;
  // margin-top: 30%;
  display: grid;
  grid-template-columns: 60% 1fr;
  border-radius: $br;
  color: #333333;
  @include boxshadow-md($primary);
  .contact-form {
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 2em 1em;
    // grid-auto-rows: auto;
    width: 95%;
    margin: 0 auto;
    column-gap: 2em;
    row-gap: 1em;
    .gs2 {
      grid-column: span 2;
    }
    .group-form {
      color: black;
      display: grid;
      font-size: 12px;
      text-transform: uppercase;
      font-weight: bold;
      row-gap: 5px;
      color: var(--primary-text);
      &.gs2 {
        grid-column: span 2;
      }
      textarea,
      input {
        color: #333;
      }
      textarea,
      input {
        font-family: 'Avenir', Helvetica, Arial, sans-serif;
        padding: 0.5em 0;
        border: 0;
        border-bottom: 1px solid rgba(black, 0.15);
        transition: border 0.35s ease;
        &:focus {
          will-change: border;
          border-bottom: 1px solid rgba(black, 0.45);
        }
      }
      label {
        color: lighten(black, 30);
        font-size: 12px;
        font-weight: 400;
      }
    }
    .btn-form {
      margin-top: 1rem;
      padding: 1.3rem 0;
      border-radius: 4px;
      border: 0;
      background-color: var(--primary);
      @include gradient-gen($primary);
      @include boxshadow-md($primary);
      text-transform: uppercase;
      color: var(--primary-text);
      cursor: pointer;
    }
  }
}

@media (max-width: 997px) {
  .formulario__box {
    grid-template-columns: 1fr;
    height: auto;
    .contact-form {
      order: 2;
      grid-template-columns: 1fr;
      .gs2 {
        grid-column: span 1;
      }
      .group-form {
        &.gs2 {
          grid-column: span 1;
        }
      }
    }
    .ubicacion__datos {
      order: 1;
      border-radius: $br $br 0 0;
    }
  }
}

@media (max-width: 760px) {
  .formulario__box {
    .contact-form {
      .group-form {
        label {
          color: lighten(black, 50);
          font-weight: 700;
        }
      }
    }
  }
}
