@import url("https://fonts.googleapis.com/css2?family=Jost:wght@600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand&display=swap");

:root {
  --green: #0e723a;
  --light-green: #21a366;
  --white: #ffffff;
  --strong-gray: #242038;
  --bar-orange: #f25022;
  --bar-green: #80bb01;
  --bar-blue: #02a4ef;
  --bar-yellow: #ffc122;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html,
body {
  position: relative;
  height: 100%;
}

body {
  overflow-x: hidden;
}

.title {
  font-family: "Jost", sans-serif;
}

.text {
  font-family: "Quicksand", sans-serif;
}

.cover {
  max-width: 1600px;
  height: auto;
  margin: auto;
  position: relative;
  height: calc(100vh - 10px);
  background: url(../images/assets_web/backup-cover-new.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 59%;
  background-attachment: scroll;
 
}

.headerimage{
  width: 100%;
}

.cover-title {
  position: relative;
  width: 65%;
  top: 2em;
  left: 2rem;
  color: var(--white);
  font-size: 4vw;
  line-height: 4vw;
  font-family: 'Jost', sans-serif;
  font-weight: 500; /* Medium */
  /* word-break: break-all; */
}
.cover-subtitle {
  position: relative;
  width: 50%; /* Ajusta el ancho según sea necesario */
  top: calc(3em + 1.5vw + 1rem); /* Coloca el subtítulo debajo del título */
  left: 2rem;
  color: var(--white);
  font-size: 2vw; /* Tamaño de fuente más pequeño que el título */
  line-height: 2.5vw;
  font-family: 'Jost', sans-serif;
  font-weight: 350; /* Regular */
}

.cover-title-logo {
  width: 6.5vw;
}

.services {
  overflow-x: hidden;
  margin: auto;
  max-width: 1600px;
  position: relative;
  padding: 6rem 10%;
  overflow-x: hidden;
  transition: height 0.2s linear;
  -webkit-transition: height 0.2s linear;
  -moz-transition: height 0.2s linear;
  -ms-transition: height 0.2s linear;
  -o-transition: height 0.2s linear;
}

.services-container-out {
  cursor: pointer;
  width: 90%;
}

.services::before,
.services::after {
  content: "";
  position: absolute;
  width: 15%;
  min-width: 190px;
  max-width: 270px;
  height: auto;
  background-size: contain;
  background-repeat: repeat-y;
  z-index: -1;
}

.services::before {
  width: 6%;
  height: 100%;
  left: 0;
  top: 0;
  background: url(../images/assets_web/left_green_squares.svg);
  background-position: right;
}

.services::after {
  width: 6%;
  height: 100%;
  right: 0;
  top: 0;
  background: url(../images/assets_web/right_green_squares.svg);
  background-position: left;
}

.services-header-title {
  text-align: center;
  font-size: 3.2vw;
  margin-bottom: 0.8em;
}

.services-header-title-logo {
  width: 5.5vw;
}

.services-header-description {
  width: 42%;
  margin: 0 auto 4em auto;
  text-align: center;
  font-size: 1.7vw;
  font-weight: 800;
}

.services-header-services {
  font-size: 3.2vw;
  text-align: center;
  margin-bottom: 0.7em;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, min-content);
  justify-content: center;
  gap: 1rem;
}

.service-container-card {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  width: var(20% - 20px);
}

.service-container-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  width: 100%;
  min-width: 130px;
  max-width: 150px;
  aspect-ratio: 1 / 1.2;
  background-color: var(--strong-gray);
  -webkit-border-radius: 0.7rem;
  -moz-border-radius: 0.7rem;
  -ms-border-radius: 0.7rem;
  -o-border-radius: 0.7rem;
  padding: 0.4rem;
  cursor: pointer;
  transition: background-color 100ms ease-in;
  -webkit-transition: background-color 100ms ease-in;
  -moz-transition: background-color 100ms ease-in;
  -ms-transition: background-color 100ms ease-in;
  -o-transition: background-color 100ms ease-in;
}

.service-container-card-header:hover {
  background-color: var(--green);
}

.service-container-card-header-img {
  width: 50%;
  /* pointer-events: none; */
}

.service-container-card-header-title {
  font-size: 0.9rem;
  line-height: 1.4rem;
  margin-top: 0.6rem;
  color: var(--white);
  text-align: center;
}

.services-container-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  /* margin-top: .5rem; */
  width: 100%;
  max-width: 270px;
  padding: 0 0.5rem 0.5rem 0.5rem;
  overflow: hidden;
  background-color: var(--white);
  border-radius: 0.3rem;
  -webkit-border-radius: 0.3rem;
  -moz-border-radius: 0.3rem;
  -ms-border-radius: 0.3rem;
  -o-border-radius: 0.3rem;
  transition: all 0.1s linear;
  -webkit-transition: all 0.1s linear;
  -moz-transition: all 0.1s linear;
  -ms-transition: all 0.1s linear;
  -o-transition: all 0.1s linear;
}

.is-collapsed .services-container-inner {
  max-height: 0;
  min-height: 0;
  overflow: hidden;
  margin-top: 0;
  opacity: 0;
}

.is-expanded .services-container-inner {
  width: 200%;
}

.is-expanded .services-container-inner::before {
  content: "";
  display: absolute;
  background: url(../images/assets_web/lines_1_web.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 5rem;
  width: 75px;
  transition: all 0.1s ease-in-out;
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  -ms-transition: all 0.1s ease-in-out;
  -o-transition: all 0.1s ease-in-out;
}

.services-container-inner-title {
  font-size: 1.3rem;
}

.services-container-inner-text {
  margin-top: 0.6rem;
  font-size: 1.1rem;
}

.services-container-inner-button {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--white);
  background-color: var(--green);
  border-radius: 0.3rem;
  -webkit-border-radius: 0.3rem;
  -moz-border-radius: 0.3rem;
  -ms-border-radius: 0.3rem;
  -o-border-radius: 0.3rem;
}

.whyUs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5vw;
  background-color: var(--green);
  margin: 0 auto 0 auto;
  max-width: 1600px;
  padding: 6rem 5%;
  /* overflow-x: hidden; */
}

.whyUs-grid {
  display: grid;
  row-gap: 3em;
  grid-template-columns: repeat(2, 50%);
  grid-auto-rows: minmax(100px -1fr);
  justify-items: center;
}

picture img {
  width: 100%;
  height: auto;
}

.whyUs-title {
  position: relative;
  color: var(--white);
  font-size: 5vw;
  margin-top: 0.5em;
}

.whyUs::before {
  content: "";
  position: absolute;
  background: url(../images/assets_web/why-line-web.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 55%;
  aspect-ratio: 2 / 1.5;
  top: 0%;
  right: 0;
  max-width: 770px;
  transform: translateY(-14%);
  -webkit-transform: translateY(-14%);
  -moz-transform: translateY(-14%);
  -ms-transform: translateY(-14%);
  -o-transform: translateY(-14%);
  z-index: 50;
}

.whyUs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  width: 100%;
}

.whyUs-text {
  color: var(--white);
  font-weight: 600;
  font-size: 1.5em;
  max-width: 560px;
}

.whyUs-text span {
  font-weight: 800;
}

.whyUs-item__image {
  width: 14em;
  height: 14em;
  object-fit: cover;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}
.figure-space-one {
  transform: translate(-5vw, 1em) scale(1.2);
  -webkit-transform: translate(-5vw, 1em) scale(1.2);
  -moz-transform: translate(-5vw, 1em) scale(1.2);
  -ms-transform: translate(-5vw, 1em) scale(1.2);
  -o-transform: translate(-5vw, 1em) scale(1.2);
}
.figure-space-two {
  width: 55%;
  justify-self: start;
  height: auto;
  transform: translate(-20%, -2em);
  -webkit-transform: translate(-20%, -2em);
  -moz-transform: translate(-20%, -2em);
  -ms-transform: translate(-20%, -2em);
  -o-transform: translate(-20%, -2em);
}
.figure-space-three {
  width: 90%;
  justify-self: flex-end;
}
.figure-space-four {
  justify-self: start;
  transform: translate(-5%, -2em);
  -webkit-transform: translate(-5%, -2em);
  -moz-transform: translate(-5%, -2em);
  -ms-transform: translate(-5%, -2em);
  -o-transform: translate(-5%, -2em);
}

.time-line {
  position: relative;
  max-width: 1600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.time-line::-webkit-scrollbar,
.carousel::-webkit-scrollbar {
  display: none;
}

.time-line-partner {
  display: flex;
  width: min-content;
  flex-direction: column;
  align-items: flex-end;
  justify-content: start;
  margin: 1.5rem 5% 0 5%;
  padding: 1em 1em 1em 0;
  gap: 0.6rem;
}

.time-line-partner-image {
  width: 4.5rem;
}

.time-line-partner-title {
  font-size: 1.5em;
  line-height: 1.1em;
  text-align: right;
}

.time-line-text {
  margin: 1.5rem 5% 0 5%;
  font-size: 3.5em;
}

.--b {
  font-weight: 1000;
}

.form {
  max-width: 1600px;
  margin: auto;
  position: relative;
  width: 100%;
}

#contact-form {
  width: 100%;
}

@media screen and (min-width: 1400px) {
  .services {
    padding: 6rem 210px;
  }
  .cover-title {
    font-size: 42px;
    line-height: 56px;
    /* width: 42%; */
  }
  .cover-title-logo {
    width: 91px;
  }
  .service-container-card-header-img {
    width: 60%;
  }

  .service-container-card-header-title {
    font-size: 1.1rem;
  }
  .services-container {
    gap: 2rem;
  }
  .services-header-title {
    font-size: 3rem;
  }
  .services-header-title-logo {
    width: 6rem;
  }
  .services-header-description {
    width: 70%;
    font-size: 1.5rem;
  }
  .services-header-services {
    font-size: 3rem;
  }
  .services-container-inner-title {
    font-size: 20px;
  }
  .services-container-inner-text {
    font-size: 18px;
  }
  .is-expanded .services-container-inner {
    width: 230%;
  }
  .whyUs {
    gap: 4rem;
    padding: 8rem calc(calc(1400px * 5) / 100) 6rem;
  }
  .whyUs-grid {
    grid-template-columns: repeat(2, 630px);
  }
  .whyUs-item__image {
    width: 18em;
    height: 18em;
  }
  .whyUs-title {
    font-size: 4rem;
  }
  .whyUs-text {
    font-size: 2em;
  }
  .figure-space-one {
    width: 600px;
    transform: translate(-40px, 30px) scale(1.15);
    -webkit-transform: translate(-40px, 30px) scale(1.15);
    -moz-transform: translate(-40px, 30px) scale(1.15);
    -ms-transform: translate(-40px, 30px) scale(1.15);
    -o-transform: translate(-40px, 30px) scale(1.15);
  }
  .figure-space-two {
    width: 330px;
    transform: translate(-15%, -35px);
    -webkit-transform: translate(-15%, -35px);
    -moz-transform: translate(-15%, -35px);
    -ms-transform: translate(-15%, -35px);
    -o-transform: translate(-15%, -35px);
  }
  .figure-space-three {
    width: 100%;
    transform: translateX(5%);
    -webkit-transform: translateX(5%);
    -moz-transform: translateX(5%);
    -ms-transform: translateX(5%);
    -o-transform: translateX(5%);
  }
  .figure-space-four {
    width: 330px;
    transform: translate(0, -35px);
    -webkit-transform: translate(0, -35px);
    -moz-transform: translate(0, -35px);
    -ms-transform: translate(0, -35px);
    -o-transform: translate(0, -35px);
  }
  .time-line {
    padding: 2rem 0 0 0;
  }
  .form::before {
    left: 0;
    top: -112px;
  }
}

@media screen and (max-width: 1024px) {
  .services-container-inner {
    max-width: 200px;
  }
}

@media screen and (max-width: 768px) {
  .cover {
    height: calc(60vh - 90px);
  }
  .cover-title {
    width: 65%;
    right: 1rem;
    bottom: 2em;
  }
  .services,
  .whyUs {
    padding: 5em 7%;
  }
  .whyUs::before {
    content: "";
    position: absolute;
    background: url(../images/assets_tablet/why-line-tablet.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 60%;
    aspect-ratio: 2 / 1.5;
    top: 0%;
    right: 0;
    max-width: 770px;
    transform: translateY(-14%);
    -webkit-transform: translateY(-14%);
    -moz-transform: translateY(-14%);
    -ms-transform: translateY(-14%);
    -o-transform: translateY(-14%);
    z-index: 50;
  }
  .whyUs-grid:nth-of-type(even) {
    grid-template-columns: 60% 40%;
  }
  .whyUs-grid:nth-of-type(odd) {
    grid-template-columns: 40% 60%;
  }
  .whyUs-item__image {
    width: 10em;
    height: 10em;
  }
  .services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .service-container-card {
    gap: 15px;
    width: 140px;
    align-items: center;
  }
  .service-container-card-header {
    cursor: context-menu;
  }

  .service-container-card-header:hover {
    background-color: var(--strong-gray);
  }

  .is-collapsed .services-container-inner {
    max-height: none;
    min-height: none;
    overflow: auto;
    margin-top: none;
    opacity: 1;
  }
  .services-container-inner {
    display: block;
    width: 100%;
    margin-top: 0.2rem;
  }
  .services-container-inner-button {
    display: none;
  }
  .services::before,
  .services::after {
    background: none;
  }
  .services-header-title {
    font-size: 4vw;
  }
  .services-header-title-logo {
    width: 8.5vw;
  }
  .services-header-description {
    position: relative;
    width: 60%;
    font-size: 2.5vw;
    margin-bottom: 6rem;
  }
  .services-header-description::after {
    content: "";
    background: url(../images/assets_tablet/lines_1_tablet.svg);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: -30%;
    left: -60%;
    width: 100%;
    height: 240%;
  }
  .services-header-services {
    position: relative;
    text-align: left;
    font-size: 4.5vw;
    margin-bottom: 5rem;
  }
  .services-header-services::before {
    content: "";
    background: url(../images/assets_tablet/lines_2_tablet.svg);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    width: 100%;
    height: 375%;
    top: 10%;
    right: -47%;
  }

  .whyUs {
    gap: 12.5vw;
  }
  .whyUs-title {
    font-size: 6vw;
  }
  .figure-space-one {
    transform: translate(-5vw, 2.5em) scale(1.3);
    -webkit-transform: translate(-5vw, 2.5em) scale(1.3);
    -moz-transform: translate(-5vw, 2.5em) scale(1.3);
    -ms-transform: translate(-5vw, 2.5em) scale(1.3);
    -o-transform: translate(-5vw, 2.5em) scale(1.3);
  }
  .figure-space-two {
    width: 75%;
    transform: translate(-20%, -2em);
    -webkit-transform: translate(-20%, -2em);
    -moz-transform: translate(-20%, -2em);
    -ms-transform: translate(-20%, -2em);
    -o-transform: translate(-20%, -2em);
  }
  .figure-space-three {
    width: 105%;
    transform: translateX(5%);
    -webkit-transform: translateX(5%);
    -moz-transform: translateX(5%);
    -ms-transform: translateX(5%);
    -o-transform: translateX(5%);
  }
  .figure-space-four {
    width: 85%;
    transform: translate(-25%, -2em);
    -webkit-transform: translate(-25%, -2em);
    -moz-transform: translate(-25%, -2em);
    -ms-transform: translate(-25%, -2em);
    -o-transform: translate(-25%, -2em);
  }
  .whyUs-text {
    font-size: 1.2em;
  }
  .point-year {
    font-size: 1.2rem;
  }
  .time-line-text {
    font-size: 2.5em;
  }
  .point-description {
    font-size: 1rem;
    width: 95%;
  }
}

@media screen and (max-width: 480px) {
  .cover-title {
    width: 75%;
    font-size: 4.5vw;
    line-height: 6vw;
    right: 0;
  }
  .services,
  .whyUs {
    padding: 2rem 5%;
  }
  .whyUs::before {
    content: "";
    position: absolute;
    background: url(../images/assets_mobile/why-line-mobile.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 55%;
    aspect-ratio: 2 / 1.5;
    top: 0%;
    right: 0;
    max-width: 770px;
    transform: translateY(-14%);
    -webkit-transform: translateY(-14%);
    -moz-transform: translateY(-14%);
    -ms-transform: translateY(-14%);
    -o-transform: translateY(-14%);
    z-index: 50;
  }
  .whyUs-item__image {
    width: 6em;
    height: 6em;
  }
  .whyUs-grid:nth-of-type(even) {
    grid-template-columns: 70% 30%;
  }
  .whyUs-grid:nth-of-type(odd) {
    grid-template-columns: 30% 70%;
  }
  .services-header-title {
    font-size: 6vw;
  }
  .services-header-title-logo {
    width: 11.5vw;
  }
  .services-header-description {
    font-size: 3.5vw;
    margin-bottom: 3rem;
    width: 65%;
  }
  .services-header-description::after {
    height: 150%;
    left: -50%;
  }
  .services-header-services::before {
    height: 250%;
    right: -60%;
    top: 30%;
  }
  .services-header-services {
    font-size: 5.5vw;
    margin-bottom: 2rem;
  }
  .services-container {
    flex-direction: column;
    justify-content: space-between;
  }
  .service-container-card {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
  }
  .service-container-card-header {
    min-width: max-content;
    width: 85px;
    height: 100px;
  }
  .service-container-card-header-title {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    line-height: 1rem;
  }
  .services-container-inner {
    width: calc(75% - 15px);
  }
  .services-container-inner-title {
    font-size: 3.5vw;
  }
  .services-container-inner-text {
    margin-top: 0.3rem;
    font-size: 3.4vw;
  }
  .whyUs-title {
    font-size: 7vw;
    margin-bottom: 0;
  }
  .whyUs-text {
    font-size: 1em;
  }

  .figure-space-one {
    transform: translate(-5vw, 1em) scale(1.1);
    -webkit-transform: translate(-5vw, 1em) scale(1.1);
    -moz-transform: translate(-5vw, 1em) scale(1.1);
    -ms-transform: translate(-5vw, 1em) scale(1.1);
    -o-transform: translate(-5vw, 1em) scale(1.1);
  }
  .figure-space-two {
    width: 80%;
    transform: translate(-55%, -2em);
    -webkit-transform: translate(-55%, -2em);
    -moz-transform: translate(-55%, -2em);
    -ms-transform: translate(-55%, -2em);
    -o-transform: translate(-55%, -2em);
  }
  .figure-space-three {
    width: 90%;
    transform: translate(0, -1em);
    -webkit-transform: translate(0, -1em);
    -moz-transform: translate(0, -1em);
    -ms-transform: translate(0, -1em);
    -o-transform: translate(0, -1em);
  }
  .figure-space-four {
    width: 80%;
  }
  .time-line-partner {
    gap: 0.4rem;
  }
  .time-line-partner-image {
    width: 3rem;
  }
  .time-line-partner-title {
    font-size: 1em;
    line-height: 1.1em;
  }
  .time-line-text {
    font-size: 1.7em;
  }
  .point-year {
    font-size: 1.1rem;
  }
  .point-description {
    width: 100%;
    font-size: 0.9rem;
  }
}
