/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.8rem;

  /*========== Colors ==========*/
  /* Change favorite color to match images */
  /*Green dark 190 - Green 171 - Grren Blue 200*/
  --hue-color: 200;

  /* HSL color mode */
  --first-color: hsl(var(--hue-color), 64%, 22%);
  --first-color-second: hsl(var(--hue-color), 250%, 250%);
  --first-color-alt: hsl(var(--hue-color), 94%, 14%);
  --title-color: hsl(var(--hue-color), 64%, 18%);
  --text-color: hsl(var(--hue-color), 24%, 35%);
  --text-color-light: hsl(var(--hue-color), 8%, 60%);
  --input-color: hsl(var(--hue-color), 24%, 97%);
  --body-color: hsl(var(--hue-color), 100%, 99%);
  --white-color: #FFF;
  --icon-color:hsl(198, 95%, 16%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 75%);
  --box-shadow-color: hsla(244, 75%, 48%, .5);

  /*========== Font and typography ==========*/
  --body-font: 'Montserrat', sans-serif;
  --title-font: 'Montesrrat', sans-serif;
  --biggest-font-size: 2.5rem;
  --big-font-size: 1.2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes Bottom ==========*/
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;

  /*========== Hover overlay ==========*/
  --img-transition: .3s;
  --img-hidden: hidden;
  --img-scale: scale(1.1);
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --first-color-second: hsl(var(--hue-color), 54%, 12%);
  --title-color: hsl(var(--hue-color), 24%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);
  --icon-color:hsl(0, 0%, 100%);
  --input-color: hsl(var(--hue-color), 29%, 16%);
  --body-color: hsl(var(--hue-color), 29%, 12%);
  --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
  --box-shadow-color: hsla(245, 100%, 93%, 0.5);
}

/*========== Button Dark/Light ==========*/
.nav__dark {
  display: flex;
  align-items: center;
  column-gap: 2rem;
  position: absolute;
  left: 3rem;
  bottom: 4rem;
}

.change-theme, .change-theme-name {
  color: var(--text-color);
}

.change-theme {
  cursor: pointer;
  font-size: 1rem;
}

.change-theme-name {
  font-size: var(--small-font-size);
}
/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

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);
  transition: all .5s;
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  font-family: var(--title-font);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  height: auto;
}

button,
input {
  border: none;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

button {
  cursor: pointer;
}

input {
  outline: none;
}

.main {
  overflow-x: hidden;
  margin-top: 100px;
}
/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: 5.5rem 0 1rem;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  text-align: center;
  text-transform: capitalize;
  margin-bottom: var(--mb-2);
}

.container {
  max-width: 968px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/*=============== HEADER ===============*/
.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;
}

.nav__logo, .nav__toggle {
  color: var(--white-color);
}

.nav__logo {
  margin-top: .75rem;
  width: 100px;
}

.nav__toggle {
  font-size: 1.2rem;
  cursor: pointer;
}

.nav__menu {
  position: relative;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    background-color: var(--body-color);
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    box-shadow: -1px 0 4px rgba(14, 55, 63, 0.15);
    padding: 3rem;
    transition: .4s;
  }

  .nav__submenu{
    padding: 10px;
    margin-bottom: -40px;
    opacity: 0;
    transition: all .3s ease-in-out;
  }
  
  nav li:hover .nav__submenu{
    margin-bottom: -20px;
    margin-top: 20px;
    opacity: 1;
  }
}


.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--text-color-light);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
}

.nav__link:hover {
  color: var(--text-color);
}

.nav__close {
  position: absolute;
  top: .75rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/* show menu */
.show-menu {
  right: 0;
}

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 0 4px rgba(14, 55, 63, 0.15);
}

.scroll-header .nav__logo,
.scroll-header .nav__toggle {
  color: var(--title-color);
}

/* Active link */
.active-link {
  position: relative;
  color: var(--title-color);
}

.active-link::before {
  content: '';
  position: absolute;
  background-color: var(--title-color);
  width: 100%;
  height: 2px;
  bottom: -.75rem;
  left: 0;
}
/*=============== HOME ===============*/

.privacity__title{
  text-align: center;
  margin: 50px;
}

.privacity__puntos{
  text-align: justify;
}

.privacity__puntos > li{
  margin: 20px;
}

.privacity__content{
  margin: 15px;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.22);
}
/*=============== FOOTER ===============*/
.footer__container {
  row-gap: 5rem;
}

.footer__content {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  row-gap: 2rem;
}

.footer__title, 
.footer__subtitle {
  font-size: var(--h3-font-size);
}

.footer__title {
  margin-bottom: var(--mb-0-5);
}

.footer__description {
  margin-bottom: var(--mb-2);
}

.footer__social {
  font-size: 1.25rem;
  color: var(--title-color);
  margin-right: var(--mb-1-25);
}

.footer__subtitle {
  margin-bottom: var(--mb-1);
}

.footer__item {
  margin-bottom: var(--mb-0-75);
}

.footer__link {
  color: var(--text-color);
}

.footer__link:hover {
  color: var(--title-color);
}

.footer__rights {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  text-align: center;
}

.footer__copy, .footer__terms-link {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.footer__terms {
  display: flex;
  column-gap: 1.5rem;
  justify-content: center;
}

.footer__terms-link:hover {
  color: var(--text-color);
}

/*========== SCROLL UP ==========*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  padding: .5rem;
  display: flex;
  opacity: .9;
  z-index: var(--z-tooltip);
  transition: .4s;
}

.scrollup:hover {
  background-color: var(--first-color-alt);
  opacity: 1;
}

.scrollup__icon {
  color: var(--white-color);
  font-size: 1.2rem;
}

/* Show scroll */
.show-scroll {
  bottom: 5rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .60rem;
  background-color: var(--scroll-bar-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/*=============== MEDIA QUERIES ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .home__info {
    width: 190px;
    padding: 1rem;
  }
  .video__container {
    padding: 0;
  }
  .compromiso__container{
    display: grid;
    padding: 20px;
    gap: 2rem;
  }
}

@media screen and (min-width: 400px){
  .compromiso__content{
    grid-template-columns: 325px;
    justify-content: center;
  }

  .compromiso__bg{
    margin-left: 50px;
    margin-right: 50px;
  }
}
/* For medium devices */
@media screen and (min-width: 568px) {
  .home__group{
    column-gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: -1rem;
    width: 100vw;
    background: rgba(0, 0, 0, 0.341);
  }

  .home__img{
    border-radius: 0px;
    height: 100%;
  }

  .home__content{
    height: 380px;
  }

  .home__data{
  margin-left: 0;
  margin-right: 0;
  }

  .home__data{
    position: absolute;
    justify-self: center;
    align-self: center;
    color: #FFF;
    font-weight: 900;
    width: 100%;
    padding: 15px;
  }
  .home__title{
    color: #fff;
    text-align: center;
  }

  .home__description{
    text-align: center;
  }

  .home__container-dawn{
    grid-template-columns: repeat(2,auto);
    align-items: center;
    justify-content: space-between;
    margin: 10px;
  }

  .home__social-link{
    color: #e3e0e0;
  }
  
  .video__container {
    display: grid;
    grid-template-columns: .6fr;
    justify-content: center;
  }

  .service__container {
    grid-template-columns: repeat(2,auto);
  }

  .contact__form{
    width: 450px;
    justify-self: center;
  }

  .contact__inputs{
    display: grid;
    grid-template-columns: repeat(2,auto);
    column-gap: 1rem;
  }

  .modal__container{
    height: 130vh;
  }
  .modal__content{
    margin: auto;
    width: 80%;
    border-radius: 1.25rem;
  }

  .modal__img{
    width: 100%;
  }
}

@media screen and (min-width: 768px) {
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__logo{
    width: 100px;
    margin-top: 1rem;
  }
  .nav__link {
    color: var(--white-color);
    text-transform: initial;
  }
  .nav__link:hover {
    color: var(--white-color);
  }
  .nav__dark {
    position: initial;
  }
  .nav__menu {
    display: flex;
    column-gap: 1rem;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }

  .nav__submenu{
    position: absolute;
    margin-top: 9px;
    margin-left: -130px;
    opacity: 0;
    transition: all .3s ease-in-out;
  }

  nav li:hover .nav__submenu{
    margin-left: 0px;
    opacity: 1;
  }

  nav li:hover .nav{
    height: 6 rem;
  }
  .nav__toggle, .nav__close {
    display: none;
  }
  .change-theme-name {
    display: none;
  }
  .change-theme {
    color: var(--white-color);
  }
  .active-link::before {
    background-color: var(--white-color);
  }
  .scroll-header .nav__link {
    color: var(--text-color);
  }
  .scroll-header .active-link {
    color: var(--title-color);
  }
  .scroll-header .active-link::before {
    background-color: var(--title-color);
  }
  .scroll-header .change-theme {
    color: var(--text-color);
  }
  .section {
    padding: 7rem 0 2rem;
  }

  .home__content{
    height: 500px;
  }

  .home__data{
    display: grid;
    place-items: center;
    position: absolute;
    margin-top: -35px;
  }

  .home__title{
    font-size: 30px;
  }

  .home__container-dawn{
    display:flex;
    justify-content: center;
    margin: 10px;
  }

  .home__social-container{
    position: absolute;
    margin-top: 220px;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
  .about__data, .about__title {
    text-align: initial;
  }
  .about__title {
    margin-bottom: var(--mb-1-5);
  }
  .about__description {
    margin-bottom: var(--mb-2);
  }

  .modal__container{
    height: 150vh;
    margin-top: 24px;
  }
  .modal__content{
    margin: auto;
    width: 70%;
    border-radius: 1.25rem;
  }

  .modal__img{
    width: 100%;
  }
  .footer__rights {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .home__data{
    margin-top: -250px;
  }

  .home__title{
    font-size: 40px;
  }

  .nav__logo{
    margin-left: var(--mb-1-25);
  }
  .nav__menu{
    margin-right: var(--mb-1-25);
  }

  .about__img-one {
    width: 230px;
  }
  .about__img-two {
    width: 290px;
  }
  .about__data{
    margin-left: var(--mb-1-25);
    margin-right: var(--mb-1-25);
  }

  .compromiso__content{
    grid-template-columns: repeat(3,max-content);
    column-gap: 6.5rem;
    padding-top: 3rem;
  }

  .compromiso__card{
    width: 225px;
  }

  .compromiso__card-move{
    display: flex;
    flex-direction: column;
    margin-top: 7rem;
  }

  .compromiso__card-move .compromiso__circle{
    margin: initial;
  }

  .compromiso__card-move .compromiso__description{
    order: -1;
    text-align: justify;
    margin-bottom: 3rem;
  }

  .compromiso__card-move .compromiso__title{
    order: -1;
    text-align: center;
  }

  .compromiso__circle{
    width: 190px;
    height: 190px;
  }

  .compromiso__img{
    width: 130px;
  }
  .compromiso__subcircle{
    width: 85px;
    height: 85px;
    top: -1.25rem;
    outline: 15px solid hsla(198, 65%, 34%, 1);
  }
  .compromiso__border{
    transform: rotate(85deg);
    width: 200px;
    left: 0;
    top: 2rem;
  }
  .experience__content {
    margin: var(--mb-1) 0;
    column-gap: 3.5rem;
  }
  .experience__overlay:nth-child(1) {
    width: 463px;
    margin-right: 7rem;
  }
  .experience__overlay:nth-child(2) {
    width: 220px;
    top: 3rem;
  }
  .video__container {
    grid-template-columns: .7fr;
  }
  .video__description {
    padding: 0 8rem;
  }
  .service__container {
    gap: 3rem 2rem;
  }
  .service__card, .service__img {
    height: 263px;
  }
  .contact__container{
    height: 120vh;
    display: grid;
    place-items: center;
  }

  .contact__content{
    width: 800px;
    height: 600px;
  }
  .contact__img{
    border-radius: 3.5rem;
    box-shadow: 10px 10px 10px rgba(14, 55, 63, 0.15);
  }

  .contact__inputs{
    display: grid;
    grid-template-columns: repeat(2,auto);
    column-gap: 1rem;
  }
  textarea{
    height: 60px;
  }
  .contact__form{
    justify-self: flex-end;
    margin-right: 3.5rem;
    top:-20px
  }

  .modal__container{
    height: 200vh;
    margin-top: 24px;
  }

  .modal__content{
    margin: auto;
    width: 60%;
    border-radius: 1.25rem;
  }

  .show-modal .modal__content{
    transform: translateY(-150px);
  }

  .modal__img{
    width: 100%;
  }

  .footer__content {
    justify-items: center;
    margin-left: var(--mb-1-25);
    margin-right: var(--mb-1-25);
  }
  .footer__rights{
    margin-left: var(--mb-1-25);
    margin-right: var(--mb-1-25);
  }
}

@media screen and (min-width: 1200px) {

  .home__data{
    margin-top: -450px;
  }

  .home__title{
    font-size: 40px;
  }
  
  .home__social-container{
    margin-top: 300px;
  }

  .nav__logo{
    margin-left: var(--mb-1-25);
  }
  .nav__menu{
    margin-right: var(--mb-1-25);
  }

  .compromiso__card{
    width: 275px;
  }

  .contact__content{
    height: 650px;
    width: 1200px;
  }
  .contact__img{
    width: 1200px;
  }

  .show-modal .modal__content{
    transform: translateY(-200px);
  }

  .modal__content{
    margin: auto;
    width: 50%;
    border-radius: 1.25rem;
  }
}

