/*===== GOOGLE FONTS =====*/
/* @import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500;600;700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&display=swap');

/*===== VARIABLES CSS =====*/
:root{
  --header-height: 3rem;

  /*===== Colors =====*/
  --first-color: #21990c;
  --first-color-dark: #1b7101;
  --text-color: #524748;
  --first-color-light: #7B6F71;
  --first-color-lighten: #FBF9F9;

  /*===== Font and typography =====*/
  /* --body-font: 'Roboto Slab', serif;   */
  --body-font: 'Montserrat', sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

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

  /*===== Margenes =====*/
  --mb-1: .5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  /*===== z index =====*/
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
}
  
@media screen and (min-width: 768px){
  :root{
    --biggest-font-size: 4.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*===== BASE =====*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
 
/* Firefox */
input[type=number] {
  -moz-appearance:textfield;
}

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

html{
  scroll-behavior: smooth;
}

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

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

h2,h3{
  font-weight: var(--font-semi-bold);
}

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

a{
  text-decoration: none;
}

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

/*===== CLASS CSS =====*/
.section{
  padding: 2rem 0 2rem;
}

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

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

.section-subtitle{
  display: block;
  font-size: 1.8rem;
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-2);
}

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

.bd-grid{
  display: grid;
  gap: 1.5rem;
}

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


/*===== NAV =====*/
.nav{
  /* 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-top: 1.5rem;
    text-align: center;
    background-color: transparent;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    border-radius: 0 0 1rem 1rem;
  }
}

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

.nav_link{
  color: var(--first-color-lighten);
  transition: .3s;
}

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

.nav_logo, .nav_toggle{
  color: var(--first-color-lighten);
}
.nav_logo{
  font-size: 1.7rem;
}

.nav_toggle{
  font-size: 1.7rem;
  cursor: pointer;
}
/* Show menu */
.show-menu{
  top: 2.65rem;
}

/* Active menu */
.active-link{
  position: relative;
}

.active-link::after{
  content: '';
  position: absolute;
  bottom: -.7rem;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--first-color-light);
}

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

.scroll-header .nav_logo, .scroll-header .nav_toggle, .scroll-header .nav_link{
  color: var(--first-color-dark);
}

.scroll-header .nav_menu{
  background-color: var(--first-color-lighten);
}

/*===== SCROLL DOWN =====*/
.scrolldown{
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .5rem;
  background: rgba(123, 111, 113, 7);
  border-radius: .5rem;
  z-index: var(--z-tooltip);
  transition: .4s;
  visibility: hidden;
}

.scrolldown_icon{
  font-size: 2rem;
  color: var(--first-color-lighten);
}

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

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

/*===== SCROLL TOP =====*/
.scrolltop{
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .5rem;
  background: rgba(123, 111, 113, 7);
  border-radius: .5rem;
  z-index: var(--z-tooltip);
  transition: .4s;
  visibility: hidden;
}

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

.scrolltop_icon{
  font-size: 2rem;
  color: var(--first-color-lighten);
}

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

/*===== HOME =====*/
.showcase{
  position: relative;
  right: 0;
  width: 100%;
  min-height: 100vh;
  padding: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  transition: 0.5s;
  z-index: 2;
}

.showcase video{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.overlay{
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #03a9f4;
  mix-blend-mode: overlay;
}

.home_social{
  color: #FFF;
  font-size: 4rem;
  margin: 0 var(--mb-1);
}

.social{
  position: absolute;
  z-index: 10;
  bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social li{
  list-style: none;
}

.social li a{
  display: inline-block;
  margin-right: 20px;
  transform: scale(0.5);
  transition: 0.5s;
}

.social li a:hover{
  transform: scale(0.5) translateY(-15px);
}

/*BUTTONS*/
.button{
  display: inline-block;
  background-color: var(--first-color);
  color: var(--first-color-lighten);
  padding: .5rem .5rem;
  border-radius: .25rem;
  transition: .3s;
}

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

/*===== ABOUT =====*/
.about_container-f{
  display: flex;
}

.about_data{
  text-align: center;
  align-items: center;
}

.about_description span{
  font-size: 1.5rem;
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
}

.about_description{
  font-size: 1.1rem;
}

.facts{
  text-align: center;
}

.about_number{
  font-size: var(--h1-font-size);
  color: var(--first-color);
  display: block;
}

.about_achievement{
  font-size: 1.2rem;
}

.about_img{
  justify-self: center;
  align-self: center;
  border-radius: .5rem;
  margin-top: 2rem;
  max-height: 750px;
}


/*===== GALLERY =====*/
.gallery_container{
  padding-top: 1rem;
  justify-content: center;
}

.gallery_filters{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: .5rem;
}

.gallery_item{
  cursor: pointer;
  color: var(--first-color-light);
  padding: .25rem .75rem;
  font-weight: var(--font-medium);
  border-radius: .5rem;
}

.gallery_card{
  padding: 1rem;
  border-radius: 1rem;
}

.video_container{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  justify-items: center;
  align-items: center;
  gap: 2rem;
}

.active_gallery{
  background-color: var(--first-color);
  color: var(--first-color-lighten);
}

.videowrapper {
  float: none;
  clear: both;
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
}

.videowrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
}

/* .swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  height: 400px;
  object-fit: cover;
} */

.swiper {
  width: 75%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mySwiper2 {
  height: 80%;
  width: 100%;
}

.mySwiper {
  height: 20%;
  box-sizing: border-box;
  padding: 10px 0;
} 

.mySwiper .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.4;
}

.mySwiper .swiper-slide-thumb-active {
  opacity: 1;
} 

.swiper-slide img {
  display: block;
  height: 400px;
  object-fit: cover;
}

.mySwiper .swiper-slide img{
  display: block;
  height: 140px;
  object-fit: cover;
}

/*===== SERVICE =====*/

.service_container{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
  justify-content: center;
  align-items: center;
}

.service_card{
  background-color: #FFF;
  width: 230px;
  padding: 3rem 1.5rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(174, 190, 205, .3);
}

.service_title{
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}

.service_subtitle{
  font-size: var(--small-font-size);
}

.service_button{
  color: var(--first-color);
  font-size: var(--normal-font-size);
  display: flex;
  align-items: center;
  column-gap: .25rem;
  cursor: pointer;
  bottom: 0;
}

.service_button:hover .service_icon{
  transform: translateX(.25rem);
}

.service_icon{
  transition: .4s;
}

/*===== service modal =====*/

.service_modal{
  position: fixed;
  inset: 0;
  background-color: hsla(219, 28%, 16%, .7);
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: .4s;
  z-index: 1000;
}

.service_modal-content{
  position: relative;
  background-color: #fff;
  padding: 4.5rem 1.5rem 2.5rem;
  border-radius: 1.5rem;
}

.service_modal-title,
.service_modal-description{
  text-align: center;
}

.service_modal-title{
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.service_modal-description{
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
}

.service_modal-list{
  display: grid;
  row-gap: .75rem;
}

.service_modal-item{
  display: flex;
  align-items: flex-start;
  column-gap: .5rem;
}

.service_modal-icon{
  font-size: 1.5rem;
  color: var(--first-color);
}

.service_modal-info{
  font-size: var(--small-font-size);
}

.service_modal-close{
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
}

.active-modal{
  opacity: 1;
  visibility: visible;
}

/*===== TESTIMONIAL =====*/


/*===== CONTACTME =====*/
.contact_container{
  row-gap: 2.5rem;
}

.contact_content{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact_box{
  background-color: #FFF;
  border-radius: .5rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(174, 190, 205, .3);
}

.contact_icon{
  color: var(--first-color);
}

.contact_title{
  color: var(--first-color-light);
}

.contact_icon{
  font-size: 2rem;
}

.contact_title{
  font-size: var(--h3-font-size);
  margin: var(--mb-1) 0;
}

.contact_social{
  color: var(--first-color-light);
  font-size: 2rem;
  margin: 0 var(--mb-1);
}

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

.contact_box:hover{
  box-shadow: 0 6px 8px rgba(174, 190, 205, .4);
}

.contact_inputs{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
}

.contact_input, .contact_button{
  outline: none;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

.contact_input{
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--first-color-light);
  color: var(--first-color);
  border-radius: 1rem;
  margin-bottom: var(--mb-1);
  resize: none
}

.contact::placeholder{
  color: var(--first-color-light);
  font-family: var(--body-font);
  font-weight: var(--font-semi-bold);
}

.button_container, .message_container{
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact_button{
  cursor: pointer;
  border: none;
  border-radius: .8rem;
}

.contact__message{
  font-size: var(--normal-font-size);
  position: relative;
  margin-bottom: 1.5rem;
}

/*===== status color =====*/
.color-red{
  color: red;
}

.color-blue{
  color: green;
}

/*===== FOOTER =====*/
.footer{
  background-color: var(--first-color-lighten);
  box-shadow: 0 2px 4px rgba(.1, 0, 0, .1);
  color: var(--first-color-light);
  text-align: center;
}

/* .footer_container{
  padding: 3rem 0;
} */

.footer_title{
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
}

.footer_link{
  font-size: 2rem;
  color: var(--first-color);
  margin: 0 var(--mb-1);
  transition: .3s;
}

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



/*===== MEDIA QUERIES =====*/
@media screen and (min-width: 576px){

  .about_img{
    justify-self: center;
    width: 290px;
    height: auto;
    margin-left: 0.5rem;
  }

  .about_container{
    display: flex;
    grid-template-columns: repeat(2, 1fr);
  }

  .contact_form{
    width: 450px;
    justify-self: center;
  }

  .service_modal-content{
    width: 500px;
    padding: 4.5rem 2.5rem 2.5rem;
  }
}

@media (max-width: 768px){
  .about_container-f{
    flex-direction: column-reverse;
  }

  .swiper {
    width: 100%;
  }
}

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

  .section{
    padding-top: 4rem;
  }

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

  .nav{
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav_list{
    display: flex;
  }

  .nav_item{
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }

  .nav_toggle{
    display: none;
  }

  .swiper-slide img {
    display: block;
    height: 550px;
    object-fit: cover;
  }

  .about_img{
    width: 300px;
  }

  .video_container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
  }

  .service_container{
    gap: 2rem;
  }

  .service_card{
    width: 300px;
    height: 250px;
  }

  .service_title{
    margin-bottom: 3rem;
  }

}

@media (max-width: 991px)
{
  .showcase
  {
    padding: 40px;
  }
}

@media screen and (min-width: 1024px){

  body{
    margin: 0rem;
  }

  .bd-container{
    margin-left: auto;
    margin-right: auto;
  }

  .about_img{
    width: 400px;
    margin-left: 1.5rem;
  }

  .swiper-slide img {
    display: block;
    height: 550px;
    object-fit: cover;
  }

  .contact_form{
    width: 700px;
    justify-self: center;
  }

  .videos{
    margin-left: 4rem;
    margin-right: 4rem;
  }

}