/*====== RESET =============================================*/
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul{
  list-style: none;
}

img{
  width: 100%;
  height: auto;
}

a{
  text-decoration: none;
}
/*====== VARIBLES =============================================*/
:root{
  /*=== COLORS ===*/
  --dark-color: #051367;
  --primary-color: #2D31FA;
  --second-color: #5D8BF4;
  --background-color-1: #F9F9F9;
  --background-color-2: #FFFFFF;
  --body-font-color: #767676;
  --divisor-color: #E4E4E4;

  /*=== FONTS ===*/
  --tittle-font-size: 1.875rem;
  --subtittle-font-size: 1rem;
  --body-font: "DM Sans", sans-serif;
  --tittle-font: "Poppins", sans-serif;
  --menu-font-size: 1.375rem;



}

/*====== BASE =============================================*/

html{
  scroll-behavior: smooth;
}

body{
  font: 400 1rem var(--body-font);
  background: var(--background-color-1);
  color: var(--dark-color);
}

.tittle{
  font: 700 var(--tittle-font-size) var(--tittle-font);
  color: var(--dark-color);
}

.button{
  background: var(--primary-color);
  color: var(--background-color-1);
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  border-radius: .25rem;
  font: 500 1rem var(--body-font);
  transition: background 0.3s;
}

.button:hover{
  background: var(--dark-color);
}

.divider-1{
  height: 1px;
  background: linear-gradient(-270deg, var(--divisor-color),var(--second-color));
}

/*====== LAYOUT =============================================*/
.container{
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

section.bg{
  background: var(--background-color-1);
}

.grid{
  display: grid;
  gap: 2rem;
}

.flex{
  display: flex;
  justify-content: center;
}

.section{
  padding: 5rem 0;
}

.section .tittle{
  margin-bottom: 1rem;
}

.section .subtittle{
  font-size: var(--subtittle-font-size);
}

.section header{
  margin-bottom: 4rem;
}

#header{
  border-bottom: 1px solid var(--divisor-color);
  margin-bottom: 2rem;
  display: flex;

  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  background-color: var(--background-color-2);
}

#header.scroll{
  box-shadow: 0rem 0rem 0.75rem rgba(0, 0, 0,0.08);
}

main{
  margin-top: 6.5rem;
}

/*====== LOGO =============================================*/
.imgLogo{
  width: 13.5rem;
  height: 4.5rem;
}

/*====== NAVIGATION =============================================*/

nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  width: 100%;
}

nav ul li a.tittle{
  font-size: var(--menu-font-size);
}

nav ul li{
  text-align: center;
}

nav ul li a{
  transition: color 0.3s;
  position: relative;
}


nav ul li a:hover{
  color: var(--second-color);
}

nav ul li a::after{
  content: "";
  width: 0%;
  height: 2px;
  background: var(--second-color);

  position: absolute;
  left: 0;
  bottom: -1rem;
  
  
  transition: width 0.2s;
}

nav ul li a:hover::after{
  width: 100%;
}

nav .menu{
  opacity: 0;
  visibility: hidden;
  top: -20rem;
  transition: 0.2s;
}

nav .menu ul{
  display: none;
  transition: 0.2s;
}

/*===== Mostrar Menu =====*/
nav.show .menu{
  opacity: 1;
  visibility: visible;

  background: var(--background-color-2);

  width: 100vw;
  height: 100vh;

  position: fixed;
  top: 0;
  left: 0;

  display: grid;
  place-content: center;
}

nav.show ul.grid{
  gap: 2rem;
}

nav.show .menu ul{
  display: grid;
}

/*====TOGGLE MENU====*/
.toggle{
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;

}

nav .fa-xmark{
  visibility: hidden;
  opacity: 0;

  position: absolute;
  top: -1.5rem;
  right: 1.5rem;

  transition: 0.2s;
}

nav.show div.fa-xmark{
  visibility: visible;
  top: 1.5rem;
  opacity: 1;
}



/*====== HOME =============================================*/
#home{
  overflow: hidden;
}

#home .container{
  margin: 0;
}


#home .image iframe{
  right: 2.93rem;
  width: 100%;
  height: 16.25rem;
}

#home .image iframe{
  border-radius: 0.25rem;
}

#home .text{
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  text-align: center;
}

#home .text h1{
  margin-bottom: 1rem;
}

#home .text p {
  margin-bottom: 2rem;
  max-width: 100%;
}

/*====== ABOUT =============================================*/
#about{
  background: var(--background-color-2);
  overflow: hidden;
}

#about img{
  width: 100%;
  height: 16.25rem;
}

#about .container{
  margin: 0;
}

#about .image img{
  position: relative;
}

#about .image img{
  border-radius: 0.25rem;
}

#about .text{
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  text-align: center;
}

/*====== SERVICES =============================================*/
.cards.grid{
  gap: 1.5rem;
}

#services header .text{
  text-align: center;
}


.card{
  padding: 3.625rem 2rem;
  box-shadow: 0rem 0rem 0.75rem rgba(0, 0, 0,0.08);
  border-bottom: .25rem solid var(--primary-color);
  border-radius: .25rem .25rem 0rem 0rem;
  text-align: center;
  transition: 0.3s;
}

.card:hover{
  background-color: var(--background-color-2);
}

.card i{
  display: block;
  margin-bottom: 1.5rem;
  font-size: 5rem;
  color: var(--primary-color);
}

.card .tittle{
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/*====== PRORDUCTS =============================================*/
#products{
  background: var(--background-color-2);
  text-align: center;
}

.products{
  gap: 1.5rem;

}

.product{
   padding: 2rem;
   border-radius: 0.25rem;
   box-shadow: 0px 0px 12px rgba(0, 0, 0,0.08);
   text-align: center;
}

.product img{
  width: 14.125rem;
  height: 11.125rem;
}

.product h2 .tittle{
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.product p {
  color: var(--dark-color);
}

#products .text {
  display: flex;
  justify-content: center;
}

/*====== CONTACT =============================================*/
#contact{
  text-align: center;
}

#contact .grid{
  gap: 4rem;
}

#contact .text p{
  color: var(--dark-color);
  margin-bottom: 2rem;
}

#contact .text a{
  margin-bottom: 2rem;
}

#contact .button i,
#contact ul li i{
  font-size: 1.5rem;
  margin-right: 0.625rem;
}

#contact ul.grid{
  gap: 2rem;
}

#contact ul li{
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

/*====== FOOTER =============================================*/
footer{
  background: var(--background-color-2);
}

footer.section{
  padding: 2rem;
}

footer .social,
footer .brand{
  display: flex;
  justify-content: center;
  gap: 2rem;
}

footer .social a{
  font-size: 1.75rem;
  color: var(--dark-color);
  transition: 0.3s;
}

footer .social a:hover{
  color: var(--primary-color);
}

/*====== BACK TO TOP =========*/

.back-to-top i{
  background: var(--dark-color);
  color: var(--background-color-2);
  font-size: 1.225rem;

  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 0.5rem;

  clip-path: circle();

  transition: 0.3s;

}

.back-to-top i:hover{
  background: var(--second-color);
}

.back-to-top{
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}

.back-to-top.show{
  visibility: visible;
  opacity: 1;
}

