/* CONTACTO ======================================================= */
#contact {
  padding: 0;
  position: relative;
  margin-top: 89px;
  padding: var(--paddingMedium) 0 0 0;
}

#contact .photo {
  height: 100%;
  position: relative;
  min-height: 400px;
  max-height: 700px;
}

#contact .photo picture {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#contact .photo picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 100%;
  /* max-height: 600px; */
}

#contact .wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
  align-items: flex-end;
}

#contact .wrapper .ctaAndForm {
  padding-bottom: var(--paddingMedium);
}

#contact .wrapper h1 {
  font-weight: 700;
  color: var(--azul-3);
  margin: 0 0 0.5em 0px;
  font-size: clamp(2.7rem, 11vw, 4rem);
}

#contact .wrapper h2 {
  font-weight: 700;
  color: var(--azul-3);
  margin: 0 0 0.5em 0px;
  font-size: clamp(1.6rem, 5.5vw, 2.1rem);
}

#contact .wrapper #confirmation p {
  font-weight: 600;
  color: var(--gris-9);
  font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  line-height: 1.4em;
}

#contact .wrapper #confirmation {
  /* margin-top: 20px; */
  /* margin-bottom: 80px; */
  padding-bottom: var(--paddingMedium);
  height: 100%;
}

#contact .wrapper p {
  font-weight: 600;
  color: var(--gris-9);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.4em;
}

#contact .wrapper #confirmation h1 {
  font-weight: 700;
  color: var(--azul-3);
  margin: 0 0 0.5em 0px;
  font-size: clamp(1.5rem, 10vw, 3.2rem);
}

#contact .wrapper form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

#contact .wrapper input[type="text"] {
  margin-bottom: 2px;
  margin-top: 30px;
  padding: 0px 2px 4px 0;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #b3bcc4;
  display: inline-block;
  box-sizing: border-box;
  font-size: 18px;
  width: 100%;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

#contact .wrapper textarea {
  margin-bottom: 2px;
  margin-top: 30px;
  padding: 0px 2px 4px 0;
  border-top: none;
  border-left: none;
  border-right: none;
  border: 1px solid #b3bcc4;
  display: inline-block;
  box-sizing: border-box;
  font-size: 18px;
  line-height: 24px;
  width: 100%;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  height: 150px;
}

#contact.gray .wrapper input[type="text"] {
  border-bottom: 1px solid #cdcfd2;
}

#contact .wrapper input[type="text"]:focus {
  border-bottom: 1px solid #b9bcc0;
}

#contact.gray .wrapper input[type="text"]:focus {
  border-bottom: 1px solid #898e95;
}

::-webkit-input-placeholder {
  font-weight: 600 !important;
}

::-moz-placeholder {
  /* Firefox 19+ */
  font-weight: 600 !important;
}

:-ms-input-placeholder {
  /* IE 10+ */
  font-weight: 600 !important;
}

:-moz-placeholder {
  /* Firefox 18- */
  font-weight: 600 !important;
}

#contact .wrapper .selector {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  margin: 24px 0 0 0;
}

#contact .wrapper .selector p {
  width: 120px;
  color: ##2b334c;
  font-weight: 300;
  font-size: 18px;
  padding-top: 5px;
  margin: 0;
}

#contact .wrapper .selector select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  padding: 0px 30px 4px 0px;
  width: 100%;
  height: 33px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #b3bcc4;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg baseProfile='tiny' version='1.2' viewBox='0 0 54.854 54.854' xml:space='preserve' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m27.427 36.506c-0.55 0-1.1-0.181-1.555-0.542l-16.566-13.158c-1.082-0.858-1.262-2.431-0.403-3.512 0.858-1.081 2.433-1.262 3.512-0.403l15.012 11.922 15.011-11.922c1.081-0.859 2.652-0.678 3.513 0.403 0.858 1.081 0.678 2.654-0.403 3.512l-16.565 13.158c-0.455 0.361-1.006 0.542-1.556 0.542z' fill='%23b3bcc4'/%3E%3Crect width='54.854' height='54.854' fill='none'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: calc(100% - 7px) 5px;
  background-size: 20px;
  position: relative;
}

#contact.gray .wrapper .selector select {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #cdcfd2;
  background-color: #f8f8f9;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg baseProfile='tiny' version='1.2' viewBox='0 0 54.854 54.854' xml:space='preserve' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m27.427 36.506c-0.55 0-1.1-0.181-1.555-0.542l-16.566-13.158c-1.082-0.858-1.262-2.431-0.403-3.512 0.858-1.081 2.433-1.262 3.512-0.403l15.012 11.922 15.011-11.922c1.081-0.859 2.652-0.678 3.513 0.403 0.858 1.081 0.678 2.654-0.403 3.512l-16.565 13.158c-0.455 0.361-1.006 0.542-1.556 0.542z' fill='%23b3bcc4'/%3E%3Crect width='54.854' height='54.854' fill='none'/%3E%3C/svg%3E%0A");
  font-weight: 400;
}

#contact .wrapper p.validation {
  font-size: 16px;
  padding-top: 10px;
}

::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: #b9bcc0;
  font-weight: 400;
}

::-moz-placeholder {
  /* Firefox 19+ */
  color: #b9bcc0;
  font-weight: 400;
}

:-ms-input-placeholder {
  /* IE 10+ */
  color: #b9bcc0;
  font-weight: 400;
}

:-moz-placeholder {
  /* Firefox 18- */
  color: #b9bcc0;
  font-weight: 400;
}

#contact .wrapper label {
  color: #e63b3b;
  font-size: 14px;
  font-weight: 600;
}

#contact .wrapper input[type="submit"] {
  margin-top: 21px;
  padding: 12px 30px 12px 30px;
  border: 1px solid #ffffff;
  display: inline-block;
  color: #ffffff;
  box-sizing: border-box;
  font-size: 20px;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.2s;
  background: rgb(255, 203, 0);
  background: -moz-linear-gradient(270deg, rgba(255, 203, 0, 1) 0%, rgba(246, 147, 0, 1) 50%, rgba(255, 109, 139, 1) 100%);
  background: -webkit-linear-gradient(270deg, rgba(255, 203, 0, 1) 0%, rgba(246, 147, 0, 1) 50%, rgba(255, 109, 139, 1) 100%);
  background: linear-gradient(270deg, rgba(255, 203, 0, 1) 0%, rgba(246, 147, 0, 1) 50%, rgba(255, 109, 139, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffcb00",endColorstr="#ff6d8b",GradientType=1);
}

#contact .wrapper input[type="submit"]:hover {
  background: rgb(228, 182, 0);
  background: -moz-linear-gradient(270deg, rgba(228, 182, 0, 1) 0%, rgba(232, 139, 0, 1) 50%, rgba(223, 96, 122, 1) 100%);
  background: -webkit-linear-gradient(270deg, rgba(228, 182, 0, 1) 0%, rgba(232, 139, 0, 1) 50%, rgba(223, 96, 122, 1) 100%);
  background: linear-gradient(270deg, rgba(228, 182, 0, 1) 0%, rgba(232, 139, 0, 1) 50%, rgba(223, 96, 122, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#e4b600",endColorstr="#df607a",GradientType=1);
}

#contact .wrapper #waiting {
  text-align: center;
  font-weight: 500;
  background: url(../../styles/images/throbber.gif) no-repeat center 0;
  padding: 40px 0 0 0;
}

@media screen and (max-width: 1100px) {
  #contact {
    /* padding: 0; */
  }
}

@media screen and (max-width: 1010px) {
  #contact {
    margin-top: 84px;
    /* padding: 0; */
  }
}

@media screen and (max-width: 800px) {
  #contact {
    margin-top: 0;
  }

  #contact .pageWidth {
    flex-direction: column;
  }

  #contact .wrapper {
    width: 100%;
  }

  #contact {
    /* padding: 0; */
    position: relative;
    display: block;
    flex-direction: column;
    flex: 1;
  }

  #contact .photo {
    height: 400px;
    width: 100%;
    position: relative;
    top: 0;
  }
}

@media screen and (max-width: 890px) {
  #contact .wrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    max-width: 550px;
    margin: 0 auto;
  }

  #contact .photo {
    height: 400px;
  }
}

/* MAPA ======================================================= */
#map {
  position: relative;
  background: #f8f8f9;
}

#map .photo {
  width: 50%;
  background: url(intro.jpg) no-repeat center center;
  background-size: cover;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

#map .pageWidth {
  display: flex;
  flex-direction: row;
  position: initial;
}

#map .wrapper {
  width: 50%;
  padding-right: 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: var(--paddingMedium) 0;
  font-weight: 500;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  line-height: 1.4em;
  color: var(--gris-8);
}

#map #mapWrapper {
  width: 50%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  top: 0;
  bottom: 0;
  right: 0;
  position: absolute;
}

#map .wrapper a.phone {
  color: var(--gris-8);
  margin-bottom: 1em;
}

#map .wrapper a.location {
  color: var(--gris-8);
  margin-bottom: 1em;
}

#map .wrapper a.mail {
  margin-bottom: 0.2em;
}

#map .wrapper a span {
  font-weight: 500;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
}

#map .wrapper p {
  margin-bottom: 40px;
}

#map .wrapper a {
  color: var(--purpura-2);
}

#map .wrapper a:hover {
  color: var(--purpura-3);
}

@media screen and (max-width: 800px) {
  #map {
    flex-direction: column;
    padding: 0px;
    position: relative;
  }

  #map .wrapper {
    width: 100%;
  }

  #map .pageWidth {
    flex-direction: column;
  }

  #map #mapWrapper {
    width: 100%;
    height: 500px;
    position: relative;
  }
}

@media screen and (max-width: 600px) {
  #map #mapWrapper {
    height: 300px;
  }
}
