/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 80px;

  /*========== Colors ==========*/
  --first-color: #27374D;
  --first-color-alt: #526D82;
  --title-color: #393939;
  --text-color: #707070;
  --text-color-light: #A6A6A6;
  --body-color: #9DB2BF;
  --container-color: #FFFFFF;

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 36px;
  --h1-font-size: 24px;
  --h2-font-size: 20px;
  --h3-font-size: 16px;
  --normal-font-size: 15px;
  --small-font-size: 13px;
  --smaller-font-size: 12px;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes ==========*/
  --mb-1: 8px;
  --mb-2: 16px;
  --mb-3: 24px;
  --mb-4: 32px;
  --mb-5: 40px;
  --mb-6: 48px;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;

  /*========== brand ==========*/
  --total-brand: 14;
  --logo-width: 200px;
  --total-logo-width: calc(var(--total-brand)* var(--logo-width) * 2);
  --animation-duration: calc(var(--total-brand) * 1.5s);
}

@media screen and (min-width: 768px){
  :root{
    --biggest-font-size: 64px;
    --h1-font-size: 36px;
    --h2-font-size: 24px;
    --h3-font-size: 20px;
    --normal-font-size: 20px;
    --small-font-size: 17.5px;
    --smaller-font-size: 15px;
  }
}

/*========== BASE ==========*/
*,::before,::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

/*========== Variables Dark theme ==========*/
body.dark-theme{
  --title-color: #F1F3F2;
  --text-color: #C7D1CC;
  --body-color: #1D2521;
  --container-color: #27374D;
}

/*========== Button Dark/Light ==========*/
.change-theme{
  position: absolute;
  right: 16px;
  top: 30px;
  color: var(--text-color);
  font-size: 16px;
  cursor: pointer;
}

body{
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1,h2,h3,p,ul{
  margin: 0;
}

ul{
  padding: 0;
  list-style: none;
}

a{
  text-decoration: none;
}

img{
  max-width: 100%;
  height: auto;
}

/*========== CLASS CSS ==========*/
.section{
  padding: 64px 0 32px;
}

.section-title, .section-subtitle{
  text-align: center;
}

.section-title{
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
}

.section-subtitle{
  display: block;
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

/*========== LAYOUT ==========*/
.bd-container{
  max-width: 1060px;
  width: calc(100% - 32px);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.bd-grid{
  display: grid;
  gap: 24px;
}

.l-header{
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*========== NAV ==========*/
.nav{
  max-width: 1200px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 768px){
  .nav__menu{
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background-color: var(--body-color);
    transition: .4s;
    box-shadow: 0 4px 4px rgba(0,0,0,.1);
    border-radius: 0 0 1rem 1rem;
    z-index: var(--z-fixed);
  }
}

.nav__item{
  margin-bottom: var(--mb-2);
}

.nav__logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__logo-container img {
  width: 90px;
  height: 70px;
}

.nav__link, .nav__logo, .nav__toggle{
  color: var(--text-color);
  font-weight: var(--font-medium);
}


.nav__logo:hover{
  color: var(--first-color);
}

.nav__link{
  font-size: 16px;
  transition: .3s;
}

.nav__link:hover{
  color: var(--first-color);
}

.nav__toggle{
  font-size: 1.3rem;
  cursor: pointer;
}

/* Show menu */
.show-menu{
  top: var(--header-height);
}

/* Active menu */
.active-link{
  color: var(--first-color);
}

/* Change background header */
.scroll-header{
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Scroll top */
.scrolltop{
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .3rem;
  background: rgba(6,156,84,.5);
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
  visibility: hidden;
}

.scrolltop:hover{
  background-color: var(--first-color-alt);
}

.scrolltop__icon{
  font-size: 1.8rem;
  color: var(--body-color);
}

/* Show scrolltop */
.show-scroll{
  visibility: visible;
  bottom: 1.5rem;
}

/*========== HOME ==========*/
.home__container{
  height: calc(100vh - var(--header-height));
  align-content: center;
}

.home__title{
  font-size: var(--biggest-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.home__subtitle{
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-4);
}

.home__img{
  width: 300px;
  justify-self: center;
  border-radius: 5px;
}

/*========== BUTTONS ==========*/
.button{
  display: inline-block;
  background-color: var(--first-color);
  color: #FFF;
  padding: .75rem 1rem;
  border-radius: .5rem;
  transition: .3s;
}

.button:hover{
  background-color: var(--first-color-alt);
}

/*========== ABOUT ==========*/
.about__data{
  text-align: center;
}

.about__description{
  margin-bottom: var(--mb-3);
}

.about__img{
  width: 280px;
  border-radius: .5rem;
  justify-self: center;
}

/*========== SERVICES ==========*/
.services__container{
  row-gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.services__content{
  text-align: center;
}

.services__img{
  width: 64px;
  height: 64px;
  fill: var(--first-color);
  margin-bottom: var(--mb-2);
}

.services__title{
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
}

.services__description{
  padding: 0 1.5rem;
}

/*========== MENU ==========*/
.menu__container{
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
}

.menu__content{
  position: relative;
  justify-self: center;
  display: flex;
  flex-direction: column;
  background-color: var(--container-color);
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(3,74,40,.15);
  padding: .75rem;
}

.menu__img{
  width: 100px;
  align-self: center;
  margin-bottom: var(--mb-2);
}

.menu__name, .menu__preci{
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.menu__name{
  font-size: var(--normal-font-size);
}

.menu__detail, .menu__preci{
  font-size: 14px;
  display: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.menu__detail{
  margin-bottom: var(--mb-1);
}

.menu__content:hover .menu__detail {
  display: block;
  opacity: 1;
}

.menu__content:hover .menu__detail {
  display: block;
  opacity: 1;
}

.menu__content:hover ~ .menu__content .menu__detail {
  display: none;
  opacity: 0;
}

.menu__content:hover ~ .menu__content + .menu__content .menu__detail {
  display: none;
  opacity: 0;
}

.menu__button{
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  padding: .625rem .813rem;
  border-radius: .5rem 0 .5rem 0;
}

/*========== APP ==========*/
.app__data{
  text-align: center;
}

.app__description{
  margin-bottom: var(--mb-5);
}

.app__stores{
  margin-bottom: var(--mb-4);
}

.app__store{
  width: 120px;
  margin: 0 var(--mb-1);
}

.app__img{
  width: 230px;
  justify-self: center;
}

/* ========= Partner ==========*/
.body-partner {
  margin-top: 0px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.partner-wrapper h1 {
  text-align: center;
  margin-bottom: 50px;
  padding: 15px;
  /* border-bottom: #08346c solid 2px; */
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.partner-wrapper {
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 940px;
  width: 100%;
}

.arrow {
  position: absolute;
  top: 70%;
  transform: translateY(-50%);
  width: 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 20px;
  cursor: pointer;
  border: none;
  outline: none;
}

.arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.arrow.prev {
  left: 0;
}

.arrow.next {
  right: 0;
}

.card-wrapper {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% / 2) - 12px);
  overflow-x: auto;
  padding: 24px;
  gap: 24px;
  cursor: grab;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.card-wrapper::-webkit-scrollbar {
  display: none;
}

.card-wrapper.grab {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.card-wrapper.no-smooth {
  scroll-behavior: auto;
}

.card-item {
  scroll-snap-align: start;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.1);

  display: flex;
  align-items: center;
  justify-content: center;
}

.card-item img {
  background-color: #f3f3f3;
  padding: 5px;
  border-radius: 6px;
  object-fit: contain;
  width: 100%;
  height: 200px;
}

/*========== CONTACT ==========*/
.contact__container{
  text-align: center;
}

.contact__description{
  margin-bottom: var(--mb-3);
}

/*========== FOOTER ==========*/
.footer__container{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}

.footer__logo{
  font-size: var(--h3-font-size);
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.footer__description{
  display: block;
  font-size: var(--small-font-size);
  margin: .25rem 0 var(--mb-3);
  color: var(--text-color);
}

.footer__social{
  font-size: 1.5rem;
  color: var(--title-color);
  margin-right: var(--mb-2);
}

.footer__title{
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-2);
}

.footer__content ul li {
  font-size: var(--small-font-size);
}

.footer__link{
  display: inline-block;
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-bottom: var(--mb-1);
}

.footer__link:hover{
  color: var(--first-color);
}

.footer__copy{
  text-align: center;
  font-size: var(--small-font-size);
  color: #1b1b1b;
  margin-top: 3.5rem;
}

/*========== Certificates ==========*/
.sijil {
  margin-top: 50px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sijil-wrapper h1 {
  text-align: center;
  margin-bottom: 50px;
  padding: 15px;
  /* border-bottom: #08346c solid 2px; */
  color: var(--title-color);
  font-size: var(--h1-font-size);
}

.sijil-wrapper {
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 940px;
  width: 100%;
}

.bt {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  width: 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 20px;
  cursor: pointer;
  border: none;
  outline: none;
}

.bt:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.bt.prev {
  left: 0;
}

.bt.next {
  right: 0;
}

.sijil .sijil-wrapper .sijil-wrapper-card {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% / 2) - 12px);
  overflow-x: auto;
  padding: 24px;
  gap: 24px;
  cursor: grab;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.sijil .sijil-wrapper .sijil-wrapper-card::-webkit-scrollbar {
  display: none;
}

.sijil .sijil-wrapper .sijil-wrapper-card.grab {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.sijil .sijil-wrapper .sijil-wrapper-card.no-smooth {
  scroll-behavior: auto;
}

.sijil .sijil-wrapper .sijil-wrapper-card .sijil-card {
  scroll-snap-align: start;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.1);

  display: flex;
  align-items: center;
  justify-content: center;
}

.sijil .sijil-wrapper .sijil-wrapper-card .sijil-card img {
  padding: 5px;
  object-fit: contain;
  width: 400px;
  height: 500px;
}

@media (max-width: 700px) {
  .sijil-wrapper .sijil-wrapper-card {
    grid-auto-columns: calc(100% - 24px);
    padding: 0;
    gap: 0;
    scroll-snap-type: none;
  }

  .sijil .sijil-wrapper .sijil-wrapper-card .sijil-card {
    border-radius: 0;
    box-shadow: none;
  }

  .sijil .sijil-wrapper .sijil-wrapper-card .sijil-card img {
    width: 100%;
    height: auto;
  }

  .bt {
    top: 70%;
  }
}

/*========== MEDIA QUERIES ==========*/
@media screen and (min-width: 576px){
  .home__container,
  .about__container,
  .app__container{
    grid-template-columns: repeat(2,1fr);
    align-items: center;
  }

  .about__data, .about__initial,
  .app__data, .app__initial,
  .contact__container, .contact__initial{
    text-align: initial;
  }

  .about__img, .app__img{
    width: 380px;
    order: -1;
  }

  .contact__container{
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
  }
  .contact__button{
    justify-self: center;
  }
}

@media screen and (min-width: 768px){
  body{
    margin: 0;
  }

  .section{
    padding-top: 128px;
  }

  .nav{
    height: calc(var(--header-height) + 28px);
  }
  .nav__list{
    display: flex;
  }
  .nav__item{
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }
  .nav__toggle{
    display: none;
  }

  .change-theme{
    position: initial;
    margin-left: var(--mb-2);
  }

  .home__container{
    height: 100vh;
    justify-items: center;
  }

  .services__container,
  .menu__container{
    margin-top: var(--mb-6);
  }

  .menu__container{
    grid-template-columns: repeat(3, 210px);
    column-gap: 4rem;
  }
  .menu__content{
    padding: 1.5rem;
  }
  .menu__img{
    width: 130px;
  }

  .app__store{
    margin: 0 var(--mb-1) 0 0;
  }
}

@media screen and (min-width: 960px){
  .bd-container{
    margin-left: auto;
    margin-right: auto;
  }

  .home__img{
    width: 500px;
  }

  .about__container,
  .app__container{
    column-gap: 7rem;
  }
}

/* For tall screens on mobiles y desktop*/
@media screen and (min-height: 721px) {
    .home__container {
        height: 640px;
    }
}

/*====== Client ======*/
/* .infinite {
  height: 300px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: auto;
}

.infinite .infinite-track {
  animation: scroll 40s linear infinite;
  display: flex;
  width: calc(250px * 14);
}

.infinite .infinite-items img {
  align-items: center;
} */

/* @keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.client-container {
  overflow: hidden;
  padding: 60px 0;
  white-space: nowrap;
  background: #f2f2f2;
}

.client-container h1 {
  text-align: center;
  padding-bottom: 80px;
}

.client-logos-container {
  display: flex; Display children (client-logo divs) in a row
  animation: 15s slide infinite linear;
}

.client-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: 15s slide infinite linear;
}

.client-logo img {
  background-color: #fff;
  height: 100px;
  margin: 20px 40px;
} */


/*New*/

/* .slider {
    width: 2179px;
    margin: auto;
    overflow: visible;
}
.slider ul {
    display: flex;
    align-items: center;
    padding: 0;
    animation: cambio 15s infinite linear;
}
.slider li {
    padding:0 10px;
    list-style: none;
    width: 250px;
    height: 250px;
}
.slider img {
    width: 100px;
    max-width: fit-content !important;
    height: auto !important;
}
@keyframes cambio {
    from {margin-left: 0%}
    to {margin-left: -100%}
} */


section h1 {
  margin-top: 100px;
  margin-bottom: 24px;
  text-align: center;
  color: var(--title-color);
}

.slider {
  position: relative;
  width: 100vw;
  height: 200px;
  background-color: #fff;

  box-shadow: 0.8rem 1.4rem -0.2rem #0001;

  display: flex;
  align-items: center;
  overflow: hidden;
}

.slider::before,
.slider::after {
  position: absolute;
  content: "";

  height: 100%;
  width: var(--logo-width);
}

.slider::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, #fff0 100%);
}

.slider::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, #fff0 100%);
}

.slider ul.brands {
  list-style: none;

  width: var(--total-logo-width);

  display: flex;

  animation: slideLeft var(--animation-duration) linear infinite;
}

.slider:hover ul.brands {
  animation-play-state: paused;
}

@keyframes slideLeft {
  100% {
    transform: translateX(calc(-100% / 2));
  }
}

ul.brands li.brand-logo {
  width: var(--logo-width);
  text-align: center;
  margin-left: 48px;
}

ul.brands li.brand-logo img {
  width: 120px;
  height: 90px;
  object-fit: contain;
}

