* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  font: normal 16px sans-serif;
  color: #555;
}

ul,
nav {
  list-style: none;
}

a {
  text-decoration: none;
  opacity: 0.75;
  color: #fff;
}

a:hover {
  opacity: 1;
}

a.btn {
  border-radius: 4px;
  text-transform: capitalize;
  text-align: center;
  background-color: #3f51b5;
  opacity: 1;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 80px;
  border-radius: 85% 85% 85% 85% / 5%;
}

@media (max-width: 800px) {
  section {
    padding: 50px 20px;
    border-radius: 85% 85% 85% 85% / 1%;
  }
}

section:not(.hero):nth-child(even) {
  background-color: #e5efff;
}

section h3.title {
  text-transform: capitalize;
  font: bold 46px sans-serif;
  margin-bottom: 30px;
  text-align: center;
}

section p {
  max-width: 780px;
  line-height: 2;
  padding: 0 20px;
  margin-bottom: 30px;
  text-align: center;
}

.grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

hr {
  width: 300px;
  height: 3px;
  background-color: #3f51b5;
  border: 0;
  margin-bottom: 50px;
}

#arrow {
  display: block;
  padding: 30px 0;
  text-align: center;
}

/* Header Styles */

header {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 18px 100px;
  opacity: 0;
  color: #fff;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 85% 85% / 40%;
  animation: fadein 1s 0.5s forwards;
}

@keyframes fadein {
  100% {
    opacity: 1;
  }
}

header nav {
  display: flex;
  margin-right: -15px;
}

header nav li {
  margin: 0 15px;
}

header nav li a {
  opacity: 1;
  font-size: 20px;
}

@media (max-width: 1000px) {
  header {
    justify-content: center;
  }
}

/* hero styles */

.hero {
  position: relative;
  justify-content: center;
  text-align: center;
  min-height: 85vh;
  color: #fff;
}

.hero .background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  z-index: -1;
  background-color: #80a3db;
  background-position: center;
}

.hero h1 {
  font: normal 56px sans-serif;
  margin-bottom: 15px;
  margin-top: -40px;
  letter-spacing: 5px;
  text-shadow: 0px 4px 3px rgba(0, 0, 0, 0.8), 0px 8px 13px rgba(0, 0, 0, 0.5),
    0px 18px 13px rgba(0, 0, 0, 0.3);
}

.hero h3 {
  font: normal 28px sans-serif;
  margin: 20px 40px 46px;
  text-shadow: 0px 4px 3px rgba(0, 0, 0, 0.8), 0px 8px 13px rgba(0, 0, 0, 0.5),
    0px 18px 13px rgba(0, 0, 0, 0.3);
}

.hero a.btn {
  padding: 15px 46px;
}

.hero-content-area {
  opacity: 0;
  margin-top: 100px;
  animation: slidefade 1s 1s forwards;
}

@keyframes slidefade {
  100% {
    opacity: 1;
    margin: 0;
  }
}

/* wave styles */
.editorial {
  display: block;
  width: 100%;
  height: 60px;
  max-height: 60px;
  margin: 0;
  margin-top: -45px;
  z-index: 3;
  bottom: 0;
  position: relative;
  left: 0px;
  float: left;
}

.editorial-2 {
  display: block;
  width: 100vw;
  height: 100px;
  max-height: 100px;
  margin: 0;
  margin-top: -45px;
  z-index: 3;
  bottom: 0;
  position: relative;
  left: 0px;
  float: left;
}
.parallax1 > use {
  animation: move-forever1 10s linear infinite;
}

.parallax1 > use:nth-child(1) {
  animation-delay: -2s;
}

.parallax2 > use {
  animation: move-forever2 8s linear infinite;
}

.parallax2 > use:nth-child(1) {
  animation-delay: -2s;
}

.parallax3 > use {
  animation: move-forever3 6s linear infinite;
}

.parallax3 > use:nth-child(1) {
  animation-delay: -2s;
}

.parallax4 > use {
  animation: move-forever4 4s linear infinite;
}

.parallax4 > use:nth-child(1) {
  animation-delay: -2s;
}

@keyframes move-forever1 {
  0% {
    transform: translate(85px, 0%);
  }
  100% {
    transform: translate(-90px, 0%);
  }
}

@keyframes move-forever2 {
  0% {
    transform: translate(-90px, 0%);
  }
  100% {
    transform: translate(85px, 0%);
  }
}

@keyframes move-forever3 {
  0% {
    transform: translate(85px, 0%);
  }
  100% {
    transform: translate(-90px, 0%);
  }
}

@keyframes move-forever4 {
  0% {
    transform: translate(-90px, 0%);
  }
  100% {
    transform: translate(85px, 0%);
  }
}

@media (max-width: 800px) {
  .hero h1 {
    font-size: 42px;
    font-weight: 300;
  }

  .hero h3 {
    font-size: 24px;
  }
}

/* Nosotros styles */

.nosotros .grid li {
  height: 350px;
  padding: 20px;
  background-clip: content-box;
  background-size: cover;
  background-position: center;
}

.nosotros .grid li.small {
  flex-basis: 30%;
}

.nosotros .grid li.large {
  flex-basis: 70%;
}

@media (max-width: 1100px) {
  .nosotros .grid li.small,
  .nosotros .grid li.large {
    flex-basis: 50%;
  }
}

@media (max-width: 800px) {
  .nosotros .grid li.small,
  .nosotros .grid li.large {
    flex-basis: 100%;
  }
}

/* Servicios styling */

.servicios .grid li {
  padding: 20px;
  flex-basis: 30%;
  text-align: center;
}

.servicios .grid li h4 {
  font-size: 25px;
  margin: 15px 0;
}

@media (max-width: 800px) {
  .servicios .grid li {
    flex-basis: 100%;
    padding: 0px;
  }
}

/* Footer styling */

footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: #1f1f1f;
  color: #fff;
  padding: 20px 0;
}

footer ul {
  display: flex;
}

footer i {
  margin: 0 10px;
}

@media (max-width: 800px) {
  footer {
    flex-direction: column;
  }

  footer p {
    text-align: center;
    margin-bottom: 5px;
  }

  footer #title-desc {
    text-align: center;
    margin-bottom: 20px;
  }

  footer ul li {
    margin: 0 8px;
  }
}

/* MOBILE HAMBURGER MENU */
/* Don't display on web page */
@media (min-width: 600px) {
  .hamburger {
    display: none;
  }
}
/* Basic Styles */
@media (max-width: 600px) {
  header {
    display: none;
  }

  /* Basic Styles */
  .hamburger {
    position: fixed;
    z-index: 4;
    opacity: 0;
    animation: fadein 1s 0.5s forwards;
  }

  /* Toggle Functionality */
  #toggle {
    display: none;
  }

  #toggle:checked ~ .toggle-container .button-toggle {
    box-shadow: 0 0 0 550px rgba(0, 0, 0, 0.9),
      inset 0 0 0 20px rgba(0, 0, 0, 0.9);
  }

  #toggle:checked ~ .toggle-container .button-toggle {
    border-radius: 1%;
  }

  #toggle:checked ~ .toggle-container .button-toggle:before {
    transform: translateY(-50%) rotate(45deg) scale(1);
  }

  #toggle:checked ~ .toggle-container .button-toggle:after {
    transform: translateY(-50%) rotate(-45deg) scale(1);
  }

  #toggle:checked ~ .nav {
    margin-bottom: 100px;
    pointer-events: auto;
    transform: translate(50px, 50px);
  }

  #toggle:checked ~ .nav .nav-item {
    z-index: 4;
    color: #fff;
    letter-spacing: 0;
    height: 40px;
    line-height: 40px;
    margin-top: 0;
    opacity: 1;
    transform: scaleY(1);
    transition: 0.5s, opacity 0.1s;
  }

  #toggle:checked ~ .nav .nav-item:nth-child(1) {
    transition-delay: 0.2s;
  }

  #toggle:checked ~ .nav .nav-item:nth-child(1):before {
    transition-delay: 0.2s;
  }

  #toggle:checked ~ .nav .nav-item:nth-child(2) {
    transition-delay: 0.15s;
  }

  #toggle:checked ~ .nav .nav-item:nth-child(2):before {
    transition-delay: 0.15s;
  }

  #toggle:checked ~ .nav .nav-item:nth-child(3) {
    transition-delay: 0.1s;
  }

  #toggle:checked ~ .nav .nav-item:nth-child(3):before {
    transition-delay: 0.1s;
  }

  #toggle:checked ~ .nav .nav-item:nth-child(4) {
    transition-delay: 0.05s;
  }

  #toggle:checked ~ .nav .nav-item:nth-child(4):before {
    transition-delay: 0.05s;
  }

  #toggle:checked ~ .nav .nav-item:nth-child(5) {
    transition-delay: 0s;
  }

  #toggle:checked ~ .nav .nav-item:nth-child(5):before {
    transition-delay: 0s;
  }

  #toggle:checked ~ .nav .nav-item:before {
    opacity: 0;
  }

  /* Toggle Button */
  .button-toggle {
    position: absolute;
    display: inline-block;
    width: 25px;
    height: 25px;
    margin: 25px;
    border-radius: 100%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: 0.6s;
    box-shadow: 0 0 0 16px rgb(0, 0, 0), inset 0 0 0 20px rgb(0, 0, 0);
  }

  .button-toggle:before,
  .button-toggle:after {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000a1d;
    border-radius: 1%;
    transition: 0.5s;
  }

  .button-toggle::before,
  .button-toggle::after {
    background-color: white;
    border-radius: 0%;
  }

  .button-toggle:before {
    transform: translateY(-50%) rotate(45deg) scale(0);
  }
  .button-toggle:after {
    transform: translateY(50%) rotate(-45deg) scale(0);
  }

  /* Menu */
  .nav {
    display: inline-block;
    margin: 25px 25px 20px;
    pointer-events: none;
    transition: 0.5s;
  }
  .nav-item {
    position: relative;
    float: left;
    clear: both;
    color: rgba(0, 0, 0, 0.9);
    font-size: 18px;
    letter-spacing: -6.2px;
    height: 7px;
    line-height: 7px;
    text-transform: uppercase;
    white-space: nowrap;
    transform: scaleY(0.2);
    transition: 0.5s, opacity 1s;
  }

  .nav-item:nth-child(1) {
    transition-delay: 0s;
  }

  .nav-item:nth-child(1):before {
    transition-delay: 0s;
  }

  .nav-item:nth-child(2) {
    transition-delay: 0.05s;
  }

  .nav-item:nth-child(2):before {
    transition-delay: 0.05s;
  }

  .nav-item:nth-child(3) {
    transition-delay: 0.1s;
  }

  .nav-item:nth-child(3):before {
    transition-delay: 0.1s;
  }

  .nav-item:nth-child(4) {
    transition-delay: 0.15s;
  }

  .nav-item:nth-child(4):before {
    transition-delay: 0.15s;
  }

  .nav-item:nth-child(5) {
    transition-delay: 0.2s;
  }

  .nav-item:nth-child(5):before {
    transition-delay: 0.2s;
  }

  .nav-item:nth-child(1) {
    letter-spacing: -8px;
  }

  .nav-item:nth-child(2) {
    letter-spacing: -7px;
  }

  .nav-item:nth-child(n + 4) {
    letter-spacing: -8px;
    margin-top: -7px;
    opacity: 0;
  }

  .nav-item:before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: translateY(-50%) scaleY(5);
    transition: 0.5s;
  }
}

/* Blog articles */

.title-blog {
  text-align: justify;
  margin: 30px auto !important;
  max-width: 868px;
  margin: 0 auto;
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  font-weight: 300;
  color: black;
}

article {
  padding: 30px 0 30px 0;
  max-width: 750px;
  margin: 0 auto;
}

.blog-item {
  font-size: 1.3rem;
  margin-bottom: 40px; 
  text-align: justify;
}

.blog-item-title {
  font-size: 2rem;
  font-weight: 400;
  padding: 20px 0;
  color: black
}

.btn-blog {
  padding: 15px 46px;
}

.btn-blog-spacer {
  margin: 70px 0 50px 0 !important;
  display: flex;
  justify-content: center
}

@media (max-width: 1100px) {
  .blog-item {
    font-size: 1.3rem;
    margin-bottom: 40px; 
    text-align: justify;
  }
  
  .blog-item-title {
    font-size: 1.5rem;
    font-weight: 400;
    padding: 20px 0;
    color: black
  }

  .title-blog {
    font-size: 34px;
    max-width: 730px;
  }
}

@media (max-width: 700px) {
  .blog-item {
    font-size: 1.2rem;
    margin-bottom: 40px; 
    text-align: justify;
    max-width: 370px;
  }
  
  .blog-item-title {
    font-size: 1.3rem;
    font-weight: 400;
    padding: 20px 0;
    color: black;
    max-width: 370px;
  }

  .title-blog {
    font-size: 28px;
    max-width: 370px;
    padding-top: 80px !important;
    text-align: center
  }

  article {
    padding: 15px 0;
    max-width: 370px;
    margin: 0 auto;
  }
}