@font-face {
  font-family: garetBook;
  src: url("./assets/garet-book.otf");
}
@font-face {
  font-family: garetBookHeavy;
  src: url("./assets/garet-heavy.otf");
}

html {
  font-family: garetBook;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 10px;
  height: 5px;
}
::-webkit-scrollbar-track {
  /* border-radius: 15px; */
  background-color: white;
}
::-webkit-scrollbar-thumb {
  /* border-radius: 15px; */
  background-color: #a22e2f;
}

.float-whatsapp {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1;
}
.float-whatsapp i {
  margin-top: 16px;
}

.menu-mobile {
  background-color: rgba(0, 0, 0, 0.6);
  position: fixed;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
  align-items: center;
  flex-direction: column;
  transform: scaleY(0);
  transform-origin: top;
  animation: show_menu 0.5s 0.1s forwards;
}
.menu-mobile a {
  width: 30%;
  margin: 2% 0;
  padding: 5%;
  color: #a22e2f;
  background-color: white;
  border-radius: 8px;
  text-align: center;
}
.menu-mobile a:first-of-type {
  margin-top: auto;
}
.menu-mobile a:last-of-type {
  margin-bottom: auto;
}
.menu-mobile img {
  align-self: end;
  width: 4vh;
  height: 4vh;
  padding: 2%;
  margin: 8%;
  background-color: white;
  border-radius: 50%;
}

.image-full-screen {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.image-full-screen img {
  max-width: 90%;
  max-height: 90%;
}

header {
  display: flex;
  align-items: center;
  padding: 2% 2%;
}
header img:first-of-type {
  width: 15%;
  height: 100%;
  margin: 0 auto 0 4%;
}
header img:last-of-type {
  display: none;
}
header a {
  cursor: pointer;
  margin: 0 2%;
  font-family: garetBookHeavy;
  font-size: 1.4rem;
  transition: 0.2s ease;
}
header a:hover {
  color: #a22e2f;
  transform: scale(1.1);
}
header a:last-of-type {
  margin: 0 10% 0 2%;
}

.section-home {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-home img {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.section-home article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  padding: 10% 0;
  /* margin-bottom: 8%; */
  margin-bottom: 25%;
  background-color: rgba(255, 255, 255, 0.6);
}
.section-home article h2 {
  margin: 0;
  font-family: garetBookHeavy;
  font-size: 3rem;
}
.section-home article h3 {
  font-size: 1.2rem;
  font-weight: normal;
}

.section-home a {
  cursor: pointer;
  position: relative;
  display: inline-block;
  width: 30%;
  top: -10rem;
  padding: 1.5%;
  margin: auto;
  color: white;
  background-color: #a22e2f;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s;
}
.section-home a:hover {
  letter-spacing: 4px;
}

.section-offices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* section cards */
.section-offices > article {
  display: flex;
  justify-content: center;
  width: 100%;
}
.section-offices > article {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16%;
  height: fit-content;
  padding: 2% 1%;
  background-color: white;
  border-radius: 30px;
  box-shadow: 10px 10px 20px -6px rgba(0, 0, 0, 0.75);
  transform: translateY(-7%);
  transition: all 0.25s;
}
.section-offices > article:hover {
  transform: scale(1.1) !important;
}
.section-offices > article h4 {
  margin: 0;
  font-family: garetBookHeavy;
  font-size: 1.6rem;
}
.section-offices > article img,
.section-offices > article embed {
  width: 55%;
  height: 20%;
  margin: 8% 0;
}
.section-offices > article:last-of-type img {
  width: 35%;
  height: 20%;
  margin: 8% 0;
}
.section-offices > article p {
  align-self: flex-start;
  margin: 1% 0;
}
.section-offices > article b {
  align-self: flex-end;
  margin-right: 15%;
  color: #6a6a6a;
  font-family: garetBookHeavy;
  font-size: 1.5rem;
}
.section-offices > article small {
  align-self: flex-end;
  margin-right: 15%;
  color: #6a6a6a;
  font-size: 0.7rem;
}
.section-offices > article a {
  width: 85%;
  margin-top: 5%;
  padding: 4% 0;
  color: white;
  background-color: #a22e2f;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}
/* section cards end*/

.section-offices__office_center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 18% !important;
  height: fit-content;
  margin: 0 6%;
  padding: 2% 1% !important;
  background-color: white;
  border-radius: 30px;
  box-shadow: 10px 10px 20px -6px rgba(0, 0, 0, 0.75);
  transform: translateY(-12%) !important;
  transition: all 0.25s;
}
.section-offices__office_center h4 {
  margin: 0;
  font-size: 1.6rem;
}
.section-offices__office_center img {
  width: 55%;
  height: 20%;
  margin: 12% 0 !important;
}
.section-offices__office_center p {
  margin: 0;
  text-align: center;
  align-self: center !important;
}
.section-offices__office_center a {
  width: 75% !important;
  margin-top: 27% !important;
  padding: 4% 0 !important;
  color: white;
  background-color: #a22e2f;
  border-radius: 16px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.section-offices > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 70%;
  margin: 5% 0;
}
.section-offices > div article {
  display: flex;
  align-items: center;
  margin: 6% 0;
  gap: 5%;
}
.section-offices > div article div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 12vh;
  height: 12vh;
  background-color: white;
  border-radius: 26px;
  box-shadow: 0px 0px 20px -2px rgb(0 0 0 / 25%);
}
.section-offices > div article div img,
.section-offices > div article div embed {
  width: 70%;
  height: 70%;
}
.section-offices > div article p {
  margin: 0;
  color: #a32429;
  font-family: garetBookHeavy;
  font-size: 1rem;
}

.section-our-offices {
  padding: 2rem 1rem;
}
.section-our-offices h2 {
  margin: 3% 0;
  font-size: 2.5rem;
  font-family: garetBookHeavy;
  text-align: center;
}
.section-our-offices h3 {
  cursor: pointer;
  position: absolute;
  bottom: 45%;
  left: 5%;
  margin: 0;
  padding: 0% 1%;
  background-color: #eeeff0;
  border-radius: 50%;
  font-size: 3rem;
  transition: 0.2s ease;
  z-index: 1;
}
.section-our-offices h3:last-of-type {
  left: initial;
  right: 5%;
}
.section-our-offices h3:active {
  transform: scale(1.1);
}
/*
.section-our-offices div {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-areas: "img1 img2 img3 img4";
    gap: 2%;
    width: 85%;
    height: 50vh;
}
.section-our-offices div img {
    cursor: pointer;
    width: 40vh;
}
*/
.our-office-img1 {
  /* width: 100%; */
  height: 100%;
  border-radius: 20px;
}
.our-office-img2 {
  /* width: 100%; */
  height: 100%;
  border-radius: 20px;
}
.our-office-img3 {
  /* width: 100%; */
  height: 100%;
  border-radius: 20px;
}
.our-office-img4 {
  /* transform: translateY(-25%); */
  /* width: 100%; */
  height: 100%;
  border-radius: 20px;
}

#image2do,
#image3ro,
#image4to {
  display: none;
}

.section-branch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.section-branch > h2 {
  flex-basis: 100%;
  margin: 0 0 3% 0;
  font-family: garetBookHeavy;
  font-size: 2.5rem;
  text-align: center;
}
.section-branch article {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
}
.section-branch section {
  display: flex;
  width: 100%;
  margin-bottom: 20%;
  overflow-x: auto;
}
.section-branch article > div {
  display: flex;
  flex-direction: column;
  width: 40%;
}
.section-branch iframe {
  align-self: center;
  width: 75%;
  border: 0;
  border-radius: 15px;
  box-shadow: 0px 0px 20px -2px rgb(0 0 0 / 30%);
}
.section-branch article > div h2 {
  margin: 5% 0;
  font-family: garetBookHeavy;
  font-size: 1.8rem;
  text-align: center;
}
.section-branch article > div div,
.section-branch article > div a {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 3%;
  width: 58%;
  text-decoration: none;
}
.section-branch article > div div img,
.section-branch article > div div embed,
.section-branch article > div a img {
  width: 4vh;
  height: 4vh;
}
.section-branch p {
  margin: 0;
}

.section-contact {
  position: relative;
  display: flex;
  justify-content: center;
  height: 110vh;
}
.section-contact img {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.section-contact div:first-of-type {
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  width: 50%;
  padding: 0 0 8% 6%;
}
.section-contact div:first-of-type h2 {
  margin: 0;
  font-family: garetBookHeavy;
  font-size: 3rem;
}

.section-contact div:last-of-type {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 3%;
  width: 85%;
  height: fit-content;
  margin-top: 10%;
}
.section-contact div:last-of-type form {
  display: flex;
  flex-wrap: wrap;
  column-gap: 3%;
}
.section-contact div:last-of-type input {
  width: 40%;
  height: fit-content;
  padding: 2%;
  margin: 1% 0;
  border: none;
  border-radius: 12px;
  font-family: garetBook;
  font-size: 1.1rem;
}
.section-contact div:last-of-type input:focus,
.section-contact div:last-of-type textarea:focus {
  outline: none;
}
.section-contact div:last-of-type textarea {
  width: 87%;
  height: 20vh;
  margin: 1% 0;
  padding: 2%;
  border: none;
  border-radius: 12px;
  font-family: garetBook;
  font-size: 1.1rem;
  resize: none;
}
.section-contact div:last-of-type button {
  cursor: pointer;
  width: 25%;
  margin: auto;
  padding: 1%;
  background-color: white;
  border: none;
  border-radius: 20px;
  font-size: 1.6rem;
  transition: all 0.25s;
}
.section-contact div:last-of-type button:hover {
  letter-spacing: 5px;
}

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  padding: 5% 0 1% 0;
}
footer > img {
  width: 15%;
  margin-left: 6%;
}
footer > div:first-of-type {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 40%;
}
footer > div:first-of-type p {
  cursor: pointer;
  margin: 2%;
  transition: all 0.25s;
}
footer > div:first-of-type p:hover {
  font-weight: 900;
}

footer > div:last-of-type {
  display: flex;
  justify-content: space-around;
  width: 25%;
}
footer > div:last-of-type img {
  cursor: pointer;
  width: 5vh;
  height: 5vh;
  transition: all 0.25s;
}
footer > div:last-of-type img:hover {
  transform: scale(1.1);
}

footer > p {
  flex-basis: 100%;
  text-align: center;
}

.container-recapch {
  display: flex;
  flex-basis: 100%;
  justify-content: center;
  margin-right: 16%;
}

.text-random {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 3%;
  color: #a22e2f;
  text-align: center;
  transform: translateY(-50%);
  text-decoration: none;
}
.text-random span {
  display: block;
  background-color: #fff;
  width: 4vh;
  height: 4vh;
  box-shadow: 0 40px 50px rgba(0, 0, 0, 0.1);
}
.text-random span:nth-child(odd) {
  animation: animation1 2.5s infinite;
}
.text-random span:nth-child(even) {
  animation: animation2 2.5s infinite;
}

@keyframes animation1 {
  50% {
    transform: skewY(15deg);
  }
}
@keyframes animation2 {
  50% {
    transform: skewY(-15deg);
    background-color: #dfd9d9;
  }
}
@keyframes show_menu {
  to {
    transform: scaleY(1);
  }
}

@media screen and (min-width: 1920px) {
  html {
    font-size: 130%;
  }
}
@media screen and (max-width: 1024px) {
  html {
    font-size: 60%;
  }

  header {
    flex-direction: column;
  }
  header img:first-of-type {
    width: 45%;
    margin: 7% 0;
  }
  header img:last-of-type {
    display: initial;
    order: -1;
    align-self: end;
    margin: 5% 5% 0;
  }
  header a,
  header a:last-of-type {
    display: none;
  }

  .section-home {
    flex-direction: column;
    padding-bottom: 15%;
  }
  .section-home article {
    width: 100%;
    text-align: center;
  }
  .section-home article h3 {
    margin: 0 2%;
  }
  .section-home a {
    width: 90%;
    top: 0;
    padding: 3% 0;
  }

  .section-offices {
    flex-direction: column;
    align-content: center;
  }
  .section-offices section {
    display: flex;
    align-items: center;
    width: 100%;
    overflow-x: auto;
  }
  .section-offices > article {
    min-width: 70vw;
    margin: 5% 12%;
    transform: translate(0);
  }
  .section-offices > article:hover {
    transform: scale(1) !important;
  }
  .section-offices > article a {
    margin-bottom: 5%;
  }

  .section-offices__office_center {
    width: 70% !important;
    transform: translate(0) !important;
    margin: 5% 0;
  }
  /* grid items section */
  .section-offices > div {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    margin: 20% 0;
    padding: 5% 0;
    overflow-y: hidden;
    overflow-x: auto;
  }
  .section-offices > div article {
    display: block;
    margin: 6%;
  }
  .section-offices > div article div {
    min-width: 12vh;
    box-shadow: 0px 0px 20px -2px rgb(0, 0, 0, 0.12);
    margin: 0 auto;
  }
  .section-offices > div article p {
    font-size: 1.3rem;
    text-align: center;
    margin: 1em auto;
  }

  .section-our-offices {
    padding: 3rem 3rem;
  }
  /*
  .section-our-offices div {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: auto;
    padding-bottom: 5%;
    overflow-x: auto;
  }
  .section-our-offices div img {
    min-height: 50vh !important;
    margin: 0 5%;
  }*/

  .our-office-img1,
  .our-office-img2,
  .our-office-img3,
  .our-office-img4 {
    margin: 5% 0;
  }

  #image2do,
  #image3ro,
  #image4to {
    display: initial;
  }

  .section-our-offices h3 {
    display: none;
  }

  .section-branch {
    flex-direction: column;
  }
  .section-branch article {
    justify-content: normal;
    margin-bottom: 15%;
    overflow-x: auto;
  }
  .section-branch article > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 100vw;
    margin: 5% 0;
  }
  .section-branch article > div div {
    margin: 2% 0;
  }

  .section-contact {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 6% 0;
    background-color: #a22e2f;
  }
  .section-contact img {
    display: none;
  }
  .section-contact > div:first-of-type {
    align-self: center;
    width: 100%;
    padding: 0;
    text-align: center;
  }
  .section-contact > div:last-of-type {
    height: auto;
    padding-bottom: 25%;
  }
  .section-contact div:last-of-type input,
  .section-contact div:last-of-type textarea {
    width: 100%;
    margin: 3% 0;
    padding: 3%;
  }

  .container-recapch {
    margin-right: 30%;
  }

  .section-contact div:last-of-type button {
    width: 100%;
    margin: 5% 0;
    padding: 4% 0;
  }

  footer {
    flex-direction: column;
  }
  footer > img {
    width: 45%;
    margin: 6% 0;
  }
  footer > div:first-of-type {
    text-align: center;
    grid-template-columns: 1fr;
  }
  footer > div:first-of-type p {
    margin: 5%;
  }
  footer > div:last-of-type {
    width: 90%;
    margin: 8% 0;
  }

  .text-random {
    width: 90%;
    margin: 10% 0;
  }
}

.image_fixer {
  object-fit: cover;
}
