/*
Theme Name: Miralles Asesores
Author: Pedro Ant. Duran
Description: Plantilla desarrollada a media para Miralles Asesores
Version: 1.1.0
*/

@font-face {
  font-family: ChaletBook;
  src: url("fonts/ChaletBook.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: ChaletBook;
  src: url("fonts/ChaletBook-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: bold;
}
@font-face {
  font-family: ITCGaramondStd;
  src: url("fonts/ITCGaramondStd-LtCond.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
}

:root {
  --colorPrimary: #FF0000;
  --colorFondo: #fff;

  --ani: all 0.6s ease-in-out;
}

html {
  font-size: 0.521vw;
}

*,
::after,
::before {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  -webkit-font-feature-settings: "lnum";
  -moz-font-feature-settings: "lnum";
  font-feature-settings: "lnum";
}
*,
*:focus {
  outline: none;
}
p {
  margin: 0px 0px 2rem 0px;
}
a {
  color: var(--colorPrimary);
  -moz-transition: var(--ani);
  -ms-transition: var(--ani);
  -o-transition: var(--ani);
  transition: var(--ani);
}

body {
  font-family: ChaletBook;
  padding: 0px;
  margin: 0px;
  background-color: var(--colorFondo);
  color: var(--colorPrimary);
  font-weight: 400;
  font-size: 1.8rem;
  font-style: normal;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

header {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: 1;
}
header .header__line {
  height: 9.2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--colorPrimary);
  display: flex;
  justify-content: center;
  align-items: end;
  background-color: var(--colorFondo);
  -moz-transition: var(--ani);
  -ms-transition: var(--ani);
  -o-transition: var(--ani);
  transition: var(--ani);
  opacity: 1;
}

header.activeHome .header__line-1,
.scrollActive header .header__line-1 {
  height: 0;
  margin-top: -1px;
}

.page-template-plantilla_nosotros .header__line-3 {
  height: 2.4rem !important;
}
.page-template-plantilla_nosotros .header__line-3:hover {
  height: 9.2rem !important;
}

.page-template-plantilla_areas .header__line-2 a {
  margin-bottom: -4rem;
}
.page-template-plantilla_areas .header__line-2 a:hover {
  margin-bottom: 0rem;
}

.header__home {
  position: absolute;
  top: 3rem;
  left: 1.8rem;
  text-decoration: none;
  font-size: 2rem;
  letter-spacing: -0.1rem;
  z-index: 1;
}

.header__home:hover {
  text-decoration: underline;
}

header .header__line.header__line-1 img,
header .header__line a {
  display: flex;
  -moz-transition: var(--ani);
  -ms-transition: var(--ani);
  -o-transition: var(--ani);
  transition: var(--ani);
}

header .header__line img {
  height: 8.3534rem;
}
header .header__line-3 img {
  height: 9.3119rem;
}
header .header__links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.8rem;
  font-size: 2rem;
  letter-spacing: -0.1rem;
  width: 100%;
  pointer-events: none;
  -moz-transition: var(--ani);
  -ms-transition: var(--ani);
  -o-transition: var(--ani);
  transition: var(--ani);
}

header .header__links a {
  text-decoration: none;
  pointer-events: initial;
}
header .header__links a:hover {
  text-decoration: underline;
}

.areas .area,
footer,
.aniEnter,
.init {
  -moz-transition: var(--ani);
  -ms-transition: var(--ani);
  -o-transition: var(--ani);
  transition: var(--ani);
  opacity: 0;
}
.areas .area.load,
footer.load,
.aniEnter.load,
.init.load {
  opacity: 1;
}

.home__top {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  padding-bottom: 2.4rem;
}
.home__top .home__top-txt {
  max-width: 39rem;
  text-align: center;
}

.home__body {
  padding: 30rem 0px 20rem;
  text-align: center;
}
.home__body h1 {
  font-family: ITCGaramondStd;
  font-size: 10rem;
  line-height: 8.4rem;
  margin: 0px auto 6rem;
  padding: 0px;
  font-weight: normal;
  max-width: 93rem;
}
.home__body-txt {
  width: 37.6rem;
  margin: 0px auto 12rem;
}
.home__body-txt2 {
  width: 37.6rem;
  margin: 8rem auto 20rem;
}

.home__body-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47.5rem;
  margin: auto;
}
.home__body-img span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--colorPrimary);
  position: absolute;
  z-index: -1;
}
.home__body-img img {
  width: 47.5rem;
  height: auto;
}

.nosotros {
  padding: 2.4rem;
  padding-top: 60rem;
  padding-bottom: 30rem;
}
.nosotros .nosotros__txt {
  max-width: 95.4rem;
  text-align: center;
  font-family: ITCGaramondStd;
  font-size: 5rem;
  line-height: 90%;
  margin: 0px auto 12rem;
}

.equipo {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.equipo .miembro {
  width: 45.621rem;
  position: relative;
  display: flex;
  overflow: hidden;
}
.equipo .miembro img {
  width: 45.621rem;
  height: auto;
}
.equipo .miembro .miembro__nombre {
  position: absolute;
  top: 1.2rem;
  left: 2rem;
  width: 28rem;
}
.equipo .miembro__descripcion {
  position: absolute;
  bottom: -10rem;
  left: 0px;
  width: 100%;
  min-height: 35rem;
  padding: 2rem 9rem 2rem 2rem;
  background-color: var(--colorPrimary);
  color: var(--colorFondo);
  font-size: 1.6rem;
  line-height: 1.8rem;
  opacity: 0;
  border-radius: 0.4rem;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;

  -moz-transition: var(--ani);
  -ms-transition: var(--ani);
  -o-transition: var(--ani);
  transition: var(--ani);
}
.equipo .miembro:hover .miembro__descripcion {
  opacity: 1;
  bottom: 0px;
}

.areas {
  padding: 2.4rem;
  padding-top: 60rem;
  padding-bottom: 30rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0rem 12rem;
  align-content: center;
  justify-content: center;
}
.areas a {
  font-family: ITCGaramondStd;
  font-size: 14rem;
  line-height: 12rem;
  display: flex;
  text-decoration: none;
  position: relative;
}
.areas .area {
  position: relative;
}
.areas a::before {
  height: 2px;
  width: 0%;
  content: "";
  bottom: 2.4rem;
  left: 20%;
  position: absolute;
  background-color: var(--colorPrimary);
  -moz-transition: var(--ani);
  -ms-transition: var(--ani);
  -o-transition: var(--ani);
  transition: var(--ani);
}
.areas a:hover::before {
  width: 100%;
  left: 0px;
}
.area__desc {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.98);
  padding: 3rem 4rem 12rem 4rem;
  z-index: 1;
  left: 50%;
  bottom: 0rem;
  transform: translateX(-50%);
  -moz-transition: var(--ani);
  -ms-transition: var(--ani);
  -o-transition: var(--ani);
  transition: var(--ani);
  opacity: 0;
  height: 85rem;
  width: 60rem;
}
.area__title {
  margin-bottom: 12rem;
  display: flex;
  justify-content: space-between;
}
.area__title svg {
  width: 6.5rem;
  cursor: pointer;
  padding: 2rem;
  margin-top: -2rem;
  margin-right: -2rem;
}
.area__desc-desc {
  padding-left: 20rem;
}

.area_f {
  top: 0px;
  left: 0px;
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #fff;
  -moz-transition: var(--ani);
  -ms-transition: var(--ani);
  -o-transition: var(--ani);
  transition: var(--ani);

  visibility: hidden;
  opacity: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.5); /* opacidad */
}
.area_f.active {
  opacity: 1;
  visibility: visible;
}
.area_f.active .area__desc {
  bottom: 2rem;
  opacity: 1;
}

.contacto {
  padding: 34rem 4rem 20rem;
  text-align: center;
}
.contacto .contacto__datos {
  margin-bottom: 10rem;
}
.contacto .contacto__form {
  max-width: 40rem;
  margin: auto;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 0px;
  padding: 0px;
  text-align: center;
  background: transparent;
  border-bottom: 1px solid var(--colorPrimary);
  margin-bottom: 2.4rem;
  font-family: ChaletBook;
  font-size: 1.8rem;
  line-height: 120%;
  color: var(--colorPrimary);
}
textarea {
  height: 10rem;
}
.wpcf7-submit {
  background-color: transparent;
  font-weight: 600;
  color: var(--colorPrimary);
  font-family: ChaletBook;
  font-size: 1.8rem;
  line-height: 120%;
  padding: 0px;
  margin: 0px;
  border: 0px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 1rem;
}
.wpcf7-submit:disabled {
  opacity: 0.4;
}
.wpcf7-spinner {
  position: absolute;
  background-color: var(--colorPrimary);
  width: 16px;
  height: 16px;
  opacity: 1;
  margin: 0px;
  margin-top: 0.8rem;
}

input[type="checkbox"] {
  -moz-appearance: none;
  -webkit-appearance: none;
  -o-appearance: none;
  outline: none;
  content: none;
  cursor: pointer;
  margin: 0px 0.3rem 0px 0px;
  padding: 0px;
}

input[type="checkbox"]:before {
  content: "";
  background: transparent;
  margin: 0px;
  padding: 0px;
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid var(--colorPrimary);
  -moz-transition: var(--ani);
  -ms-transition: var(--ani);
  -o-transition: var(--ani);
  transition: var(--ani);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7-not-valid-tip {
  color: #000;
}
.wpcf7-response-output {
  padding: 0px !important;
  border: 0px !important;
}

input[type="checkbox"]:checked:before {
  background: var(--colorPrimary) !important;
}
.wpcf7-spinner::before {
  background-color: #fff;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  transform-origin: 5px 5px;
  animation-name: spin;
  animation-duration: 1000ms;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.wpcf7-not-valid-tip {
  font-size: 1.8rem;
  margin-top: -1.5rem;
}

.pagedefault__content {
  display: flex;
  gap: 6rem;
}
.pagedefault__content > div {
  width: 33.33333%;
}
.pagedefault {
  padding: 36rem 6rem 10rem;
  min-height: calc(100vh - 8rem);
}
.pagedefault h1 {
  font-size: 2rem;
  margin: 0px 0px 1.6rem;
  line-height: 120%;
  font-weight: normal;
  text-transform: uppercase;
}

footer {
  padding: 0px 6rem 5rem;
  display: flex;
  gap: 8rem;
  justify-content: space-between;
}
footer > div {
  width: 30%;
}
footer ul {
  list-style: none;
  margin: 0px;
  padding: 0px;
  display: flex;
  gap: 4rem;
}
footer .footer__aviso {
  text-align: center;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

header .header__line.header__line-0 {
  display: none;
}
.menuMovil {
  display: none;
}

/*////////////////////////////////////////////////*/
/*///////////////////// RESPONSIVE //////////////////////*/
/*////////////////////////////////////////////////*/

@media screen and (max-width: 992px) {
  html {
    font-size: 2vw;
  }
  header .header__line img {
    height: 3.5rem;
  }
  header .header__line-3 img {
    height: 3.8rem;
  }
  .page-template-plantilla_nosotros .header__line-3:hover,
  .page-template-plantilla_nosotros .header__line-3,
  header .header__line,
  header.load .header__line {
    height: 4.8rem !important;
  }
  .page-template-plantilla_areas .header__line-2 a {
    margin: 0px !important;
  }
  .home__body h1 {
    font-size: 8rem;
    line-height: 7.4rem;
    margin: 0px auto 11rem;
  }
  .home__body {
    padding: 20rem 0px 13rem;
  }
  .home__body-img,
  .home__body-img img {
    width: 34.5rem;
  }
  .home__body-txt2 {
    margin: 8rem auto 10rem;
    font-size: 2.4rem;
    line-height: 110%;
    width: 40rem;
  }
  .nosotros {
    padding: 2.4rem;
    padding-top: 25rem;
    padding-bottom: 15rem;
  }
  footer {
    gap: 1rem;
    padding: 2rem 2rem 3rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  footer > div {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer__legal {
    width: 100%;
    margin-bottom: 1rem;
  }
  footer ul {
    gap: 0.4rem;
    flex-direction: column;
  }
  footer > div {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }
  footer > div:nth-child(1) {
    order: 1;
  }
  footer > div:nth-child(2) {
    order: 2;
  }
  footer > div:nth-child(3) {
    order: 3;
  }
  .nosotros .nosotros__txt {
    font-size: 3.6rem;
    line-height: 100%;
    margin: 0px auto 6rem;
  }
  .equipo .miembro {
    width: 100%;
  }
  .areas {
    padding: 2.4rem;
    padding-top: 27rem;
    padding-bottom: 20rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    align-content: center;
    justify-content: center;
    flex-direction: column;
  }
  .areas a {
    font-size: 3.6rem;
    line-height: 100%;
    display: block;
    text-decoration: none;
    position: relative;
    text-align: center;
    width: 100%;
  }
  .areas a::before {
    bottom: 0.7rem;
  }

  .area__desc {
    width: 46rem;
    height: 70rem;
    padding: 3rem 4rem 10rem 4rem;
    background-color: var(--colorPrimary);
    color: var(--colorFondo);
  }

  .area__desc-desc {
    padding-left: 10rem;
    font-size: 1.6rem;
    line-height: 120%;
  }

  .area__desc-desc img {
    display: none;
  }
  .area__title svg path {
    fill: var(--colorFondo);
  }
  .area__title svg {
    margin-top: -3rem;
    margin-right: -4rem;
  }
  .area__title {
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
  }
  .contacto {
    padding: 15rem 4rem 15rem;
    text-align: center;
  }
  .pagedefault {
    padding: 15rem 2rem 10rem;
  }
  .pagedefault__content {
    flex-direction: column;
    gap: 1rem;
  }
  .pagedefault__content > div {
    width: 100%;
  }
  .home__top {
    padding-bottom: 7.4rem;
  }
  .header__home {
    position: absolute;
    top: 0.9rem;
  }
  body.home .header__home {
    display: none !important;
  }

  header .header__links a,
  .header__home {
    font-size: 1.8rem;
    line-height: 1.8rem;
  }
  header .header__links {
    padding: 1rem 1.8rem;
  }
  .scrollActive header.load .header__line-1 {
    height: 0px !important;
    margin-top: -1px !important;
  }
  .home__top .home__top-txt {
    max-width: 34rem;
    text-align: center;
    font-size: 2.4rem;
    line-height: 110%;
  }
  .home__body-txt {
    font-size: 2.4rem;
    line-height: 110%;
  }
  .home__body-txt {
    width: 40rem;
    margin: 0px auto 6rem;
  }
  footer .footer__rs,
  footer .footer__aviso {
    text-align: left;
    width: auto;
  }

  .header__line-0 {
    display: flex !important;
  }
  .header__line-0 .btn_movil {
    display: block;
    width: 8rem;
    height: 4.5rem;
    text-decoration: none;
    position: relative;
    padding: 0px 2rem;
  }
  .header__line-0 .btn_movil span {
    width: 4rem;
    display: block;
    height: 1px;
    background-color: var(--colorPrimary);
    position: absolute;
    top: 1rem;
    -moz-transition: var(--ani);
    -ms-transition: var(--ani);
    -o-transition: var(--ani);
    transition: var(--ani);
  }
  .header__line-0 .btn_movil span:nth-child(1) {
    top: 1rem;
  }
  .header__line-0 .btn_movil span:nth-child(2) {
    top: 2rem;
  }
  .header__line-0 .btn_movil span:nth-child(3) {
    top: 3rem;
  }
  body.activeMenu .header__line-0 .btn_movil span:nth-child(3),
  body.activeMenu .header__line-0 .btn_movil span:nth-child(1) {
    top: 2rem;
    transform: rotate(45deg);
  }
  body.activeMenu .header__line-0 .btn_movil span:nth-child(3) {
    transform: rotate(-45deg);
  }
  body.activeMenu .header__line-0 .btn_movil span:nth-child(2) {
    opacity: 0;
  }

  header .header__home,
  header .header__links,
  header .header__line.header__line-1,
  header .header__line.header__line-3 {
    display: none;
  }

  .menuMovil {
    display: block;
    background-color: var(--colorPrimary);
    color: var(--colorFondo);
    position: fixed;
    top: 4.5rem;
    left: 0px;
    width: 100%;
    height: calc(100vh - 4.5rem);
    display: flex;
    align-content: center;
    justify-content: center;
    text-align: center;
    z-index: 9;
    opacity: 0;
    visibility: hidden;
    -moz-transition: var(--ani);
    -ms-transition: var(--ani);
    -o-transition: var(--ani);
    transition: var(--ani);
  }
  body.activeMenu .menuMovil {
    opacity: 1;
    visibility: visible;
  }
  body.activeMenu {
    overflow: hidden;
  }

  .menuMovil ul {
    margin: 0px;
    list-style: none;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    text-align: center;
    width: 28rem;
    gap: 3rem;
  }
  .menuMovil ul li a {
    text-decoration: none;
    color: var(--colorFondo);
    font-family: ITCGaramondStd;
    font-size: 6rem;
    line-height: 75%;
  }
  .areas a::before {
    display: none;
  }
}

@media screen and (max-width: 600px) {
}
