.submenu {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 999;
  top: 80px;
  transition: opacity 0.2s ease;
  height: auto;
  opacity: 0;
  visibility: hidden;
  background-color: #fff;
  /* overflow: hidden;
transition: opacity 0.2s ease;
display: none; */
}

@media screen and (max-width: 1024px) {
  h1 {
    font-size: 50px;
  }
  #header .header-content {
    width: 90%;
  }
  #header .header-content {
    padding: 30px 0%;
  }
  #header.fixed .header-content {
    border-bottom: 0 none;
    padding: 25px 0;
  }
  .span_movil {
    padding: 1rem;
    margin: 1rem;
  }

  .nav-toggle {
    display: block;
  }
  .submenu {
    position: static;
    top: 65px;
    opacity: 1;
    visibility: visible;
    padding: 0;
    margin: 0;
    max-height: 0px;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    background-color: #eaeaea;
  }
  .submenu {
    position: relative;
    top: -0.5rem;

    width: 100%;
    max-height: 0;
    padding: 0px;
    border: none;
    outline: none;
    opacity: 1;
    overflow: hidden;
    visibility: visible;
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
    -webkit-box-shadow: none;
    box-shadow: none;
  }
  .menu-dropdown:hover > .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  .menu-movil {
    display: block;
  }
  .navigation {
    position: fixed;
    background-color: #fff;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
    transition: opacity 0.5s, visibility 0s 0.5s;
  }
  .navigation .primary-nav {
    position: relative;
    top: 45%;
    -moz-transform: translateY(-45%);
    -ms-transform: translateY(-45%);
    -webkit-transform: translateY(-45%);
    transform: translateY(-45%);
  }
  .navigation li {
    display: block;
    font-size: 25px;
    text-align: center;
    margin-bottom: 00px;
  }
  .navigation a {
    font-size: 18px;
    margin: 0;
    margin-left: 0px;
    text-align: center;
  }
  .navigation .span_escritorio {
    display: none;
  }
  .navigation .servicios_movil {
    font-size: 25px;
    margin: 1rem;
    padding: 1rem;
    font-weight: bold;
  }
  .navigation .span_movil {
    display: block;
    font-weight: bold;
  }
  .flex-control-nav {
    bottom: 20px;
  }
  .service_section {
    padding-top: 25%;
  }
  .section {
    padding-top: 25%;
  }
}
@media screen and (max-width: 768px) {
  #header .header-content {
    padding: 30px 0%;
  }
  .navigation,
  .navigation a {
    margin-left: 0px;
  }
  .flexslider {
    padding-bottom: 80px;
  }
  .flex-control-nav {
    width: 100%;
  }
  .footer .footer-col {
    margin-bottom: 50px;
  }
  /* .hero {
    margin-top: 6%;
  } */
  .hero-content h1 {
    margin-top: 25%;
    font-size: 24px;
  }
  .hero-content p {
    margin-top: 0px;
  }
  .hero h4 {
    font-weight: 600;
    padding-left: 20%;
  }
  .hero-content h4 {
    padding-top: 0;
  }
  /* .service {
    margin: 50px 0 50px 0;
  } */
  .btn {
    margin-top: 40%;
  }
}
@media screen and (max-width: 640px) {
  #header .header-content {
    padding: 30px 0%;
  }
  .navigation,
  .navigation a {
    margin-left: 0px;
  }
  /* .hero {
    margin-top: 6%;
  } */
  .hero-content h1 {
    margin-top: 25%;
    font-size: 24px;
  }
  .hero-content h4 {
    margin-top: 25%;
  }
  /* .service {
    margin: 50px 0 50px 0;
  } */
  .btn {
    margin-top: 10%;
  }
}
@media screen and (max-width: 480px) {
  #header .header-content {
    padding: 30px 0%;
  }
  .navigation,
  .navigation a {
    margin-left: 0px;
  }
  /* .hero {
    margin-top: 6%;
  } */
  .hero-content h1 {
    margin-top: 25%;
    font-size: 24px;
  }
  .hero-content h4 {
    margin-top: 25%;
  }
  .hero-content p {
    margin-top: 0px;
  }

  .extra-padding {
    margin: 50px 0px;
  }
  /* .service {
    margin: 0.3rem 0 0.3rem 0;
  } */
}
@media screen and (max-width: 320px) {
  #header .header-content {
    padding: 30px 2%;
  }
  .navigation,
  .navigation a {
    margin-left: 0px;
  }
  /* .hero {
    margin-top: 6%;
  } */
  .hero-content h1 {
    margin-top: 25%;
    font-size: 24px;
  }
  .hero-content h4 {
    margin-top: 25%;
  }
  .hero-content p {
    margin-top: 0px;
  }
  /* .service {
    margin: 50px 0 50px 0;
  } */
  .extra-padding {
    margin: 50px 0px;
  }
}
