/** Landing page Treeestudio **/

/* Root */

:root {
  --primary: #9fc532;
  --secondary: #082324;
  --accent: #9ca3af;
  --white: #ffffff;
  --black: #000000;
  --kiwi-light: #f5f9ea;
  --borders: #e5e7eb;
  --neutral-gray: #d8d8d8;
  --royal-nightfall: #545d77;

  --safeZone: 1280px;

  --letterTight: -0.01em;
}

/* General */

* {
  font-family: "Sora", sans-serif;
  font-optical-sizing: auto;
  box-sizing: border-box;
}

html,
body {
  width: 100vw;
  max-width: 100%;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  display: none;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--kiwi-light);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

.flex {
  display: flex;
}

.container {
  width: 100%;
  max-width: var(--safeZone);
  margin: 0 auto;
  z-index: 3;
  position: relative;
}

.txtGreen {
  color: var(--primary);
}

.btn {
  cursor: pointer;
  pointer-events: all;
  border-radius: 60px;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  max-width: max-content;
  text-decoration: none;
}

.btnPrimary {
  background-color: var(--secondary);
  color: var(--white);
  font-size: 20px;
  line-height: 1.5;
}

.deco {
  position: absolute;
}

.brSpan {
  display: block;
}

button {
  cursor: pointer;
}

.reveal-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.reveal-content {
  display: inline-block;
}

.errorMsg,
.errorMsg2 {
  color: red;
  font-size: 12px;
  position: relative;
  top: -10px;
  left: 5px;
  display: none;
}

.shake {
  -webkit-animation: shake-horizontal 1s cubic-bezier(0.455, 0.03, 0.515, 0.955)
    both;
  animation: shake-horizontal 1s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
}

/* Nav */

nav {
  position: fixed;
  top: 16px;
  width: 100%;
  max-width: 1232px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  z-index: 10;
  padding: 12px 24px;
  transition: all 0.6s ease;
}

.burgerBtn,
.containerBurger {
  display: none;
}

.scrollActive nav {
  max-width: 1000px;
}

.containerNav .flex {
  justify-content: space-between;
  align-items: center;
}

.buildLogo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.txtLogo {
  color: var(--secondary);
  font-size: 22px;
  display: flex;
  gap: 8px;
}

.boldLogo {
  font-weight: bold;
}

.menuNav {
  display: flex;
  gap: 32px;
  flex-direction: row;
}

.menuNav button {
  font-size: 12px;
  line-height: 1.5;
  color: var(--royal-nightfall);
  text-decoration: none;
  font-weight: 600;
  display: block;
  border: unset;
  outline: unset;
  background: unset;
  cursor: pointer;
}

.whatsapp a {
  text-decoration: none;
  color: var(--white);
  display: flex;
  gap: 10px;
  padding: 8px 20px;
  background-color: var(--secondary);
  border-radius: 90px;
  align-items: center;
}

/* Hero */

#hero {
  position: relative;
  padding: 235px 0 512px;
}

.deco5 {
  top: 0;
  right: 0;
  z-index: 1;
}

.deco.deco1 {
  top: 0;
  left: 0;
}

.deco.deco2 {
  right: 0;
  z-index: 1;
  bottom: -470px;
}

.deco.deco3 {
  z-index: -1;
  bottom: -80px;
  right: 145px;
}

.deco.deco4 {
  bottom: 0;
  left: 0;
}

h1 {
  color: var(--secondary);
  font-size: 84px;
  line-height: 1;
  letter-spacing: var(--letterTight);
  text-transform: uppercase;
}

.titleDiv {
  width: 100%;
  max-width: 650px;
}

.formHero {
  width: 100%;
  max-width: 440px;
}

#hero .flex {
  justify-content: space-between;
}

.paragraphTitle {
  font-size: 18px;
  color: var(--secondary);
  line-height: 1.5;
  max-width: 453px;
  margin: 24px 0;
}

.circleArrow {
  position: relative;
  background-color: var(--secondary);
  display: grid;
  place-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.circleArrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url("../assets/generales/arrow.svg");
  background-size: contain;
  background-repeat: no-repeat;
  width: 23px;
  height: 26px;
}

#hero .ctaTitle.flex {
  justify-content: start;
}

.formHero {
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 25px 70px -12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  padding: 32px 32px 48px;
}

.formHero h2 {
  color: var(--primary);
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
  line-height: 1;
}

.txtForm {
  font-size: 18px;
  line-height: 1.5;
  color: var(--secondary);
  max-width: 300px;
  margin: 8px auto;
  text-align: center;
}

form {
  width: 100%;
  max-width: 100%;
}

form input,
form textarea {
  width: 100%;
  background-color: var(--white);
  border: 1px solid var(--borders);
  max-width: 100%;
  margin-bottom: 16px;
  color: var(--secondary);
}

form input::placeholder,
form textarea::placeholder {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

form input {
  border-radius: 40px;
  padding: 14px 16px 14px 44px;
  position: relative;
  background-position: 18px center;
  background-repeat: no-repeat;
}

#name {
  background-image: url("../assets/hero/person.svg");
  background-size: 12px;
}

#email {
  background-image: url("../assets/hero/email.svg");
  background-size: 15px 12px;
}

#phone {
  background-image: url("../assets/hero/phone.svg");
  background-size: 18px 15px;
}

form input:focus,
form input:active,
form input:focus-visible,
form textarea:focus,
form textarea:active,
form textarea:focus-visible {
  border: 1px solid var(--primary) !important;
  outline: none;
}

form textarea {
  padding: 16px;
  border-radius: 32px;
  min-height: 94px;
  max-height: 94px;
  resize: none;
}

#btnForm {
  background-color: var(--primary);
  color: var(--white);
  font-size: 20px;
  line-height: 1.5;
  outline: unset;
  border: unset;
  width: 100%;
  border-radius: 60px;
  height: 48px;
}

.innerForm {
  z-index: 2;
  position: relative;
}

.successForm {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 50%;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  z-index: 1;
  transition: all 0.3s ease-in;
  opacity: 0;
}

.activeForm .innerForm {
  opacity: 0;
  position: relative;
}

.txtSuccess h2 {
  color: var(--primary);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 6px;
}

.txtSuccess p {
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.5;
}

.activeForm .successForm {
  opacity: 1;
  z-index: 3;
}

/** Treee Big **/

#treeeBig {
  position: relative;
  margin-top: 128px;
}

.containerLetters {
  width: 1493px;
  max-width: 1493px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.containerLetters {
  align-items: end;
  gap: 24px;
}

.rLetter {
  margin-left: 26px;
}

.eLetter:not(:nth-child(3)) {
  margin-left: 22px;
}

.titleTreee {
  text-align: center;
  max-width: 852px;
  margin: 0 auto;
  padding: 190px 0 186px;
}

.titleTreee h2 {
  color: var(--secondary);
  letter-spacing: var(--letterTight);
  font-size: 48px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1;
}

.txtTreee {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.txtTreee p {
  font-size: 20px;
  line-height: 1.5;
  color: var(--secondary);
  text-align: center;
}

.txtTreee p .txtGreen {
  font-weight: bold;
}

/** Cards - About **/

#about {
  margin-top: -408px;
  background-color: var(--white);
  position: relative;
  z-index: 6;
  border-top-left-radius: 56px;
  border-top-right-radius: 56px;
  padding: 112px 104px;
}

.titleAbout {
  margin-bottom: 80px;
}

.titleAbout h2 {
  color: var(--secondary);
  font-size: 60px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: var(--letterTight);
  text-align: center;
  margin-bottom: 24px;
}

.txtAbout {
  color: var(--secondary);
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}

.innerCard.flex {
  justify-content: space-between;
}

.card {
  position: relative;
  width: 100%;
  max-width: 391px;
  overflow: hidden;
  border-radius: 30px;
}

.imgBg img {
  display: block;
}

.fixM {
  width: 331px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 104px;
  bottom: 26px;
}

.contentCard {
  position: absolute;
  width: 331px;
  left: 0;
  max-width: 270px;
  z-index: 3;
  transition: all 0.5s ease-in;
  top: 0;
}

.titleCard {
  color: var(--primary);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 8px;
  transition: color 0.3s linear;
}

.fakeTitle {
  color: var(--white);
  font-size: 40px;
  letter-spacing: var(--letterTight);
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.3s linear;
}

.txtCard {
  position: relative;
  max-width: 270px;
}

.hiddenTxt {
  position: absolute;
  opacity: 0;
  color: var(--secondary);
  font-size: 20px;
  line-height: 1.5;
  width: 325px;
  transition: all 0.5s ease-in;
  padding-top: 18px;
}

.openPlus {
  width: 56px;
  height: 56px;
  position: absolute;
  right: 0;
  background-color: var(--white);
  bottom: 17px;
  border-radius: 40px;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s linear;
}

.openPlus span::before,
.openPlus span::after {
  content: "";
  width: 2px;
  height: 26px;
  position: absolute;
  z-index: 3;
  background-color: var(--secondary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}

/* .openPlus span::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} */

.openPlus span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.openPlus::before {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 100%;
  background-color: var(--white);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.openPlus::after {
  content: "";
  width: 30px;
  height: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary);
  border-radius: 100%;
  z-index: 1;
  transition: all 0.5s ease-in;
}

.card.active .openPlus {
  transform: rotate(45deg);
}

.card.active .openPlus::after {
  width: 1200px;
  height: 1200px;
}

.card.active .contentCard {
  top: -230px;
}

.card.active .titleCard {
  color: var(--white);
}

.card.active .fakeTitle {
  color: var(--secondary);
}

.card.active .hiddenTxt {
  opacity: 1;
}

/** Metodologia **/

#triad {
  background-color: var(--white);
  border-bottom-left-radius: 56px;
  border-bottom-right-radius: 56px;
}

.titleTriad {
  margin-bottom: 35px;
}

.titleTriad h2 {
  font-weight: bold;
  font-size: 60px;
  color: var(--secondary);
  text-align: center;
  text-transform: uppercase;
}

.itemMeto {
  gap: 80px;
  padding: 74px 0;
  align-items: center;
}

.numberMeto {
  font-size: 224px;
  font-weight: bold;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  min-width: 305px;
  max-width: 305px;
}

.txtMeto * {
  color: var(--secondary);
}

.txtMeto h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
}

.txtMeto h3 {
  font-size: 48px;
  letter-spacing: var(--letterTight);
  font-weight: bold;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.txtMeto p {
  font-size: 20px;
  line-height: 1.5;
}

/** CTA **/

#cta {
  padding: 106px 0 35px;
}

.bubbleCta {
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
  border-radius: 40px;
  background-image: linear-gradient(94deg, #9fc532 -28.36%, #0c183e 109.91%);
  padding: 64px;
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.14);
  position: relative;
  overflow: hidden;
}

.bubbleCta::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  background-image: url(/assets/cta/bacteriaDesktop.webp);
  width: 486px;
  height: 189px;
}

.bubbleCta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 40px;
  background-image: url(/assets/cta/backteria2Desktop.webp);
  width: 110px;
  height: 195px;
  z-index: 1;
}

.bubbleCta h2 {
  font-size: 60px;
  letter-spacing: var(--letterTight);
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--white);
}

.bubbleCta p {
  font-size: 20px;
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 32px;
  width: 100%;
  max-width: 662px;
  margin: 0 auto 32px;
  text-align: center;
  border: unset;
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--white);
  font-size: 20px;
  line-height: 1.5;
  margin: 0 auto;
  border: unset;
}

/** Footer */

footer {
  padding: 75px 0 32px;
}

.firstFooter {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--neutral-gray);
}

.firstFooter .flex {
  justify-content: space-between;
  align-items: center;
}

.redes {
  gap: 12px;
}

.secondFooter {
  padding-top: 32px;
}

.secondFooter p,
.secondFooter a {
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
  text-decoration: unset;
  display: block;
}

.secondFooter > .flex {
  justify-content: space-between;
}

.tyc {
  gap: 24px;
}

@media only screen and (max-width: 768px) {
  :root {
    --safeZone: 350px;
  }

  /** Nav **/

  nav {
    max-width: 350px;
  }

  .menuNav {
    display: none;
  }

  .txtLogo {
    display: none;
  }

  .scrollActive nav {
    max-width: 350px;
  }

  .btnLeft {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .whatsapp a {
    height: 36px;
    width: 165px;
    padding: 8px 15px;
    gap: 5px;
  }

  .burgerBtn {
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border-radius: 60px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
  }

  .containerBurger {
    display: block;
  }

  .burgerBtn span {
    height: 2px;
    width: 15px;
    background-color: var(--primary);
    display: block;
    border-radius: 4px;
  }

  .containerBurger {
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 350px;
    z-index: -2;
    background: var(--white);
    padding: 18px;
    border-radius: 40px;
    opacity: 0;
    transition: all 0.3s ease-in;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }

  .innerBurger {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .innerBurger button {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    background: unset;
    border: unset;
    outline: unset;
    color: var(--royal-nightfall);
  }

  .containerBurger.activeBurger {
    z-index: 10;
    opacity: 1;
  }

  /** Hero **/

  #hero {
    padding-top: 202px;
    padding-bottom: 533px;
  }

  #hero .container > .flex {
    flex-direction: column;
    gap: 45px;
  }

  h1 {
    font-size: 40px;
    text-align: center;
  }

  h1 span {
    display: block;
  }

  .paragraphTitle {
    font-size: 16px;
    text-align: center;
    padding: 0 7px;
  }

  .formHero {
    padding: 18px;
  }

  form input,
  form textarea {
    margin: 0 auto;
  }

  .txtForm {
    margin-bottom: 24px;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .deco.deco1 picture,
  .deco.deco1 img {
    width: 100vw;
    max-width: 100vw;
    display: block;
    height: auto;
  }

  .deco.deco5 {
    right: unset;
    left: 0;
    top: 730px;
  }

  /** Letters **/

  #treeeBig {
    margin-top: 113px;
  }

  .containerLetters {
    max-width: 400px;
    gap: 12px;
  }

  .tLetter img {
    max-width: 67px;
  }

  .rLetter img {
    max-width: 55px;
  }

  .eLetter img {
    max-width: 77px;
  }

  .containerLetters .eLetter {
    margin-left: 0;
  }

  .rLetter {
    margin-left: 0;
  }

  .titleTreee h2 {
    font-size: 32px;
  }

  .titleTreee {
    padding: 58px 0 25px;
  }

  .txtTreee p {
    font-size: 16px;
  }

  .deco.deco2 {
    bottom: -195px;
    right: unset;
    left: 0;
  }

  .deco.deco2 picture,
  .deco.deco2 img {
    width: 100vw;
    max-width: 100vw;
    display: block;
  }
  .deco.deco4,
  .deco.deco3 {
    display: none;
  }

  /** Metodologia **/

  #about {
    padding: 65px 20px;
  }

  .innerCard.flex {
    flex-direction: column;
    gap: 32px;
  }

  .itemMeto {
    flex-direction: column;
    padding-top: 0;
    align-items: start;
    padding-bottom: 65px;
    gap: 4px;
  }

  .itemMeto:last-child {
    padding-bottom: 0;
  }

  .titleAbout h2 {
    font-size: 36px;
  }

  .txtAbout {
    font-size: 16px;
  }

  .titleAbout {
    margin-bottom: 45px;
  }

  .fixM {
    width: 309px;
    bottom: 30px;
  }

  .contentCard {
    width: 253px;
  }

  .openPlus {
    bottom: -18px;
    right: -8px;
  }

  .titleTriad h2 {
    font-size: 40px;
    line-height: 1;
  }

  #triad {
    padding: 65px 0;
    position: relative;
    z-index: 3;
  }

  .numberMeto {
    font-size: 110px;
  }

  .txtMeto h3 {
    font-size: 32px;
  }

  .txtMeto p {
    font-size: 16px;
  }

  .titleTriad {
    margin-bottom: 65px;
  }

  /** CTA **/

  #cta {
    padding-bottom: 23px;
    position: relative;
    z-index: 1;
  }

  #cta::before {
    content: "";
    width: 100vw;
    height: 251px;
    position: absolute;
    z-index: 0;
    background-image: url(/assets/footer/decoFooterMobile.png);
    background-size: cover;
    top: -110px;
    left: 50%;
    transform: translateX(-50%);
  }

  .bubbleCta h2 {
    font-size: 36px;
    line-height: 1;
    z-index: 2;
  }

  .bubbleCta {
    padding: 64px 25px;
  }

  .bubbleCta p {
    font-size: 16px;
    position: relative;
    z-index: 2;
    margin-bottom: 32px;
  }

  .btn-secondary {
    position: relative;
    z-index: 2;
  }

  .bubbleCta::after {
    background-image: url(/assets/cta/cardRightMobile.png);
    width: 56px;
    height: 175px;
    background-size: contain;
    bottom: unset;
    top: 35px;
  }

  .bubbleCta::before {
    background-image: url(/assets/cta/cardLeftMobile.png);
    width: 175px;
    height: 180px;
  }

  /** Footer **/

  footer {
    padding-top: 65px;
  }

  .firstFooter > .flex {
    flex-direction: column;
    gap: 35px;
  }

  .secondFooter > .flex {
    flex-direction: column;
    gap: 14px;
  }

  .secondFooter p,
  .secondFooter a {
    text-align: center;
  }

  .tyc.flex {
    justify-content: center;
  }
}

/** animacion css **/

@-webkit-keyframes shake-horizontal {
  0%,
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70% {
    -webkit-transform: translateX(-10px);
    transform: translateX(-10px);
  }
  20%,
  40%,
  60% {
    -webkit-transform: translateX(10px);
    transform: translateX(10px);
  }
  80% {
    -webkit-transform: translateX(8px);
    transform: translateX(8px);
  }
  90% {
    -webkit-transform: translateX(-8px);
    transform: translateX(-8px);
  }
}
@keyframes shake-horizontal {
  0%,
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70% {
    -webkit-transform: translateX(-10px);
    transform: translateX(-10px);
  }
  20%,
  40%,
  60% {
    -webkit-transform: translateX(10px);
    transform: translateX(10px);
  }
  80% {
    -webkit-transform: translateX(8px);
    transform: translateX(8px);
  }
  90% {
    -webkit-transform: translateX(-8px);
    transform: translateX(-8px);
  }
}
