/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #FE621D;
  --first-color-alt: #EF3E07;
  --white: #F9F9F9;
  --black: #131313;
  --gray-light: #D6D6D6;
  --gray-dark: #878787;
  --body-color: #F9F9F9;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Inter', sans-serif;

  --biggest-font-size: 2.4375rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: .875rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-bold: 700;
  --font-semi-bold: 600;
  --font-regular: 400;

  /*========== Margenes Bottom ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 728px) {
  :root {
    --biggest-font-size: 4rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1.125rem;
    /* --small-font-size: .875rem;
    --smaller-font-size: .75rem; */
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  /* margin: var(--header-height) 0 0 0; */
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .4s; /*For animation dark mode*/
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-bold);
}

h1 {
  font-size: var(--biggest-font-size);
  color: var(--White, #F9F9F9);
  line-height: 44px;
  letter-spacing: -2px;
}

h2 {
  font-size: var(--h2-font-size);
  margin-bottom: 3rem;
}

h3 {
  font-size: var(--h3-font-size);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

a, p {
  font-size: var(--normal-font-size);
}

img {
  /* max-width: 100%;
  height: auto; */
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

section {
  padding: 4rem 0;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  margin: 0 1rem;
}

.grid {
  display: grid;
}

.button {
  background-color: var(--first-color);
  padding: 1rem 1.25rem;
  display: inline-block;

  color: var(--white);
  font-weight: var(--font-bold);

  transition: all 0.3s ease-in;
}
.button:hover {
  background-color: var(--first-color-alt);
}

.button-black {
  background-color: var(--black);
}
.button-black:hover {
  background-color: #202020;
}

.button__container {
  text-align: center;
}

.desktop-display {
  display: none;
}

.fisrt-color {
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home {
  background-image: url('/assets/img/bg-mobile.png');
  background-size: cover;
  background-repeat: no-repeat;
  /* background-attachment: fixed; */
  background-position: center bottom;

  min-height: 669px;
}

.home__container {
  
}
.home__img {
  max-width: 100px;
  position: absolute;
  top: 2rem;
}

.home__title {
  /* margin-bottom: 1.5rem; */
  margin: 1.5rem 0;
}

.home__description {
  color: var(--gray-light);
  margin-bottom: 2rem;
  line-height: 24px;
}

/*=============== REASONS ===============*/
.reasons {
  
}

.reasons__container {
  background-color: var(--black);
  padding: 3rem 2rem 4rem;
  border-radius: 1.5rem;
  align-items: start;

  row-gap: 3.375rem;
}

.reasons__icon {
  display: none;
}
.reasons__icon > img {
  width: 54px;
  height: 54px;
}

.reasons__title {
  color: var(--white);
  margin-bottom: 1rem;
}

.reasons__description {
  color: var(--gray-light);
  margin-bottom: 2rem;
}

/* .reasons__data > a {
  margin-top: 1.5rem;
} */

.reasons__cards {
  gap: 2rem;
}

.reasons__card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 1.5rem;

  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.reasons__card > img {
  width: 48px;
  align-self: flex-end;
}

/*=============== STEPS ===============*/
.steps__carrousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 55%;

  /* gap: 1.5rem; */

  overflow-x: auto;
  overflow-y: scroll;
  overscroll-behavior-inline: contain;

  scrollbar-width: none;

  padding-left: 1rem;
}
.steps__carrousel::-webkit-scrollbar {
  height: 12px;
  display: none;
}
.steps__carrousel > span {
  cursor: pointer;
  display: inline-block;
  color: var(--gray-dark);
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 1rem;
  padding-right: 1.5rem;
  white-space: nowrap;

  margin-bottom: 2rem;

  transition: all 0.3s ease-in;

 /*  pointer-events: none; */
}
.steps__carrousel > span:hover {
  opacity: 0.7;
}
.steps__options-actived {
  color: var(--first-color) !important;
  border-color: var(--first-color) !important;
  visibility: visible;
}
.steps__options-actived:hover {
  color: var(--first-color-alt) !important;
  border-color: var(--first-color-alt) !important;
}

.steps__slide {
  display: none;
  padding: 0 1rem;
}

.steps__slide > img {
  margin-bottom: 2rem;
  width: 100%;
}

.steps__slide__data > h3 {
  margin-bottom: 1.5rem;
}
.steps__slide__data > p:not(:first-of-type) {
  margin-top: .5rem;
}
.steps__slide__data > a {
  margin-top: 2rem;
}

.steps__slide-actived {
  display: block;
}

/*=============== TESTIMONY ===============*/
.testimony {
  background-color: var(--first-color);
  padding: 4.5rem 0;
}

.testimony__container {
  /* gap: 3rem; */
}
.testimony__container > .button__container {
  margin-top: 3rem;
}

.testimony__title {
  color: var(--white);
}

.testimony__cards {
  gap: 1.5rem;

  grid-auto-flow: column;
  grid-auto-columns: 80%;

  overflow-x: auto;
  overflow-y: scroll;
  overscroll-behavior-inline: contain;

  scrollbar-width: none;

  padding-left: 1rem;
}
.testimony__cards::-webkit-scrollbar {
  height: 12px;
  display: none;
}

.testimony__card {
  background-color: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimony__profile {
  display: flex;
  align-items: center;
  gap: 1rem;

  margin-top: 2rem;
}

.testimony__person {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.testimony__person > small {
  font-size: var(--smaller-font-size);
  color: var(--gray-dark);
}

/*=============== FOOTER ===============*/
footer {
  background-color: var(--black);
  color: var(--gray-light);
  padding: 4.5rem 0;
}
footer a {
  color: var(--gray-light);
}
footer a:hover {
  color: var(--white);
}

footer img {
  max-width: 220px;
}

.footer__container {
  gap: 5rem;
}

.footer__cards {
  gap: 2rem;
}

.footer__card > strong {
  color: var(--white);
  font-size: var(--font-semi-bold);
  display: inline-block;
  margin-bottom: 1.5rem;
}
.footer__card > ul {
  display: grid;
  gap: 1rem;
}
.footer__card li {
  cursor: pointer;
}

.footer__social > ul {
  display: flex;
  justify-content: center;

  padding-top: 2.5rem;
  border-top: 1px solid var(--white);
}


/* Responsive */
@media screen and (min-width: 728px) {
  section {
    padding: 6rem 0;
  }

  h2 {
    margin-bottom: 4rem;
  }

  .home__img {
    max-width: 120px;
  }

  .container {
    margin: 0 5rem;
  }
  .steps__carrousel {
    display: flex;
    padding-left: 5rem;
    /* padding-left: 0; */
  }

  .reasons__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .steps__carrousel {
    padding-left: 5rem;
    grid-auto-columns: 44%;
  }
  .steps__slide {
    padding: 0 5rem;
  }

  .testimony__cards {
    padding-left: 5rem;
  }

  h1 {
    line-height: 68px;
    letter-spacing: 0px;
  }
}

@media screen and (min-width: 832px) {
  .home {
    background-image: url('/assets/img/bg-desktop.png');
    background-position: left center; 

    min-height: 546px;
  }

  .reasons__container {
    grid-template-columns: 1fr 160px;
    row-gap: 0;
  }
  .reasons__data {
    max-width: 430px;
    position: -webkit-sticky;
    position: sticky;
    top: 64px;
  }

  .reasons__title {
    width: 372px;
  }
  .reasons__cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .steps__container__slide {
    display: grid;
    grid-template-columns: 240px 1fr;
  }

  .steps__carrousel {
    display: flex;
    flex-direction: column;
  }
  .steps__carrousel > span {
    border-bottom: 0px;
    border-left: 1px solid var(--gray-dark);
    max-width: 100px;
    white-space: normal;
    margin: 0;
    padding: 2rem 1rem;
  }

  .desktop-mobile {
    display: none;
  }

  .desktop-display {
    display: block;
  }
}

@media screen and (min-width: 1020px) {
  .home__description {
    max-width: 680px;
  }

  .reasons__container {
    /* display: flex; */
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
    /* align-items: center;
    justify-content: space-between; */

    padding: /* 3rem  */4rem;
  }

  .reasons__data {
    max-width: 430px;
    position: static;
  }

  .reasons__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimony__cards {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-auto-columns: auto;  
    padding: 0 5rem;
  }

  footer {
    padding: 6rem 0 3.375rem;
  }

  .footer__cards {
    grid-template-columns: 300px 1fr 1fr;
    gap: 4rem;
  }
}

@media screen and (min-width: 1365px) {
  .container {
    margin: 0 6.25rem;
  }

  .steps__carrousel {
    padding-left: 6.25rem;
  }
  .steps__slide {
    padding: 0 6.25rem 0 5rem;
    display: none;
  }

  .testimony__cards {
    padding-left: 6.25rem;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    grid-auto-columns: auto;  
  }

  .reasons__container {
    grid-template-columns: 54px 1fr 1fr;
    column-gap: 6rem;
  }
  .reasons__icon {
    display: block;
    width: 54px;
  }
}


@media screen and (min-width: 592px) {
  .testimony__cards {
    grid-auto-columns: 68%;
  }
}

@media screen and (min-width: 704px) {
  .testimony__cards {
    grid-auto-columns: 43%;
  }
}

@media screen and (min-width: 1094px) {
  .testimony__cards {
    grid-auto-columns: 38%;
  }

  .steps__slide-actived {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .steps__slide > img {
    order: 1;
  }
}

@media screen and (min-width: 1366px) {
  .testimony__cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

h1, h2, h3, p, /* .testimony__card, */ .button, .reasons__card, li {
  visibility: hidden;
}

/* img, strong, li {
  visibility: hidden;
} */
