
html {
  scroll-behavior: smooth;
}


header {
  background-color: #2F2873;
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.yellow {
  color: #FECE17;
}

body {
  font-family: 'Open Sans', sans-serif;
}

section {
  padding: 50px 0px;
}

header a img {
  max-width: 20px;
  margin-left: 15px;
}

header a:first-child img {
  margin-left: 0px;
}

header a {
  transition: all ease 0.5s; 
}

header a:hover {
  opacity: 0.5; 
  transition: all ease 0.5s; 
}


.header-home {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(../img/bg-wall.jpg);
  background-attachment: fixed;
  flex-direction: column;
  padding: 50px 15px;
  border-bottom: 8px solid #FECE17;
}

.header-home img {
  max-width: 248px;
  margin: 50px auto;
}

/* animacion logo */
img.animate-wiggle {
  -webkit-animation-name: wiggle;
  -ms-animation-name: wiggle;
  -ms-animation-duration: 1000ms;
  -webkit-animation-duration: 1000ms;
  -webkit-animation-iteration-count: 1;
  -ms-animation-iteration-count: 1;
  -webkit-animation-timing-function: ease-in-out;
  -ms-animation-timing-function: ease-in-out;
}

@-webkit-keyframes wiggle {
  0% {-webkit-transform: rotate(10deg);}
  25% {-webkit-transform: rotate(-10deg);}
  50% {-webkit-transform: rotate(20deg);}
  75% {-webkit-transform: rotate(-5deg);}
  100% {-webkit-transform: rotate(0deg);}
}

@-ms-keyframes wiggle {
  0% {-ms-transform: rotate(1deg);}
  25% {-ms-transform: rotate(-1deg);}
  50% {-ms-transform: rotate(1.5deg);}
  75% {-ms-transform: rotate(-5deg);}
  100% {-ms-transform: rotate(0deg);}
}

@keyframes wiggle {
  0% {transform: rotate(10deg);}
  25% {transform: rotate(-10deg);}
  50% {transform: rotate(20deg);}
  75% {transform: rotate(-5deg);}
  100% {transform: rotate(0deg);}
}

h1 {
  font-size: 42px;
  color: white;
  font-family: 'Arvo', serif;
  margin-bottom: 30px;
}

h2 {
  font-family: 'Open Sans', sans-serif;
  color: #FECE17;
  font-size: 28px;
  margin-bottom: 30px;
}

a.btn {
  background-color: #FECE17;
  color: #000000;
  font-family: 'Arvo', serif;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 20px;
  transition: all ease 0.5s;
}

a.btn:hover {
  background-color: #ffffff;
  color: #16172B;
  transition: all ease 0.5s;
}

.service {
  display: flex; 
  justify-content: center;
  align-items: center;
  background-color: #16172B;
  height: 250px;
}

.service h2 {
  color: white;
  text-align: center;
  font-size: 28px;
  font-family: 'Arvo', serif;
}



.service:first-child {
    background-image: url('../img/analytics-bg.jpg');
    background-position: center center;
    background-size: cover;
}

.service:nth-child(2) {
    background-image: url('../img/social-bg.jpg');
    background-position: center center;
    background-size: cover;
}

.service:nth-child(3) {
    background-image: url('../img/programmatic-bg.jpg');
    background-position: center center;
    background-size: cover;
}

.service:nth-child(4) {
    background-image: url('../img/amazon-bg.jpg');
    background-position: center center;
    background-size: cover;
}

.tools {
  background-color: #16172B;
}

.tools h2 {
  color: white;
  text-align: center;
  font-family: 'Arvo', serif;
  font-size: 42px;
}

.tools .logos {
  display: flex;
  justify-content: space-between;
  text-align: center;
  max-width: 1200px;
    flex-wrap: wrap;
}

.tools .logos img {
  max-width: 80px;
  margin-right: 15px;
}

.tools .logos img:nth-child(2) {
  max-width: 70px;
  max-height: 70px;
}

.tools .logos img:nth-child(5), .tools .logos img:nth-child(6), .tools .logos img:nth-child(7), .tools .logos img:nth-child(8) {
  max-width: 60px;
  max-height: 60px;
}

.inversion {
  background-image: url(../img/bg-wall.jpg);
  background-attachment: fixed;
  text-align: center;
  align-items: center;
}

.inversion h3 {
  color: white;
  font-size: 19px;
}

.inversion p {
  font-family: 'Arvo', serif;
  font-size: 28px;
}

.clients h2 {
  color: #16172B;
  text-align: center;
  font-family: 'Arvo', serif;
  font-size: 42px;

}

.clients img:first-child {
  max-width: 90px;
}

.clients img:nth-child(2), .clients img:nth-child(4) {
  max-width: 100px;
}

 .clients img:nth-child(5) { 
  max-width: 120px;
 }

.carousel-item {
  align-items: center;
  justify-content: space-between;

}

.carousel-item img {
  max-width: 140px;
  margin-right: 30px;
  height: auto;
}

.contact {
  background-image: url(../img/bg-contact.jpg);
  background-size: cover;
}

.contact h2 {
  color: white;
  font-family: 'Arvo', serif;
  font-size: 42px;
}

.contact a {margin-bottom: 20px;
margin-right: 15px;}

footer {
  background-color: #16172B;
  color: white;
  padding: 15px;
  text-align: center;
}

.hide-mobile {
    display: block; 
  }

  .show-mobile {
    display: none;
  }

/* be water my friend */

@media only screen and (max-width: 600px) {
  .tools .logos { 
    max-width: 450px;
    justify-content: center !important;
  }

  .show-mobile {
    display: block; 
  }

  .hide-mobile {
    display: none; 
  }
}