
.w-bg {
    position: relative;
    background: var(--primary-blue-adistec);
}

.w-bg header {
    background: transparent;
    transition: all 0.3s ease;
}


html {
    scroll-behavior: smooth;
}

header {
    background: transparent;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

header .head-top {
    height: 51px;
    background: var(--primary-blue-adistec);
    padding-left: 50px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    z-index: 999;
    transition: all 0.3s ease;
}

.w-bg header.fixed {
    position: fixed;
}

header.fixed {
    position: fixed;
    width: 100%;
}

 header .head-top .menuNav ul li .submenu .wrap {
    max-width: 100%;
    width: calc(1110px + 80px);
    padding: 0 40px;
    margin: 0 auto;
}

 header nav ul li a {
    width: 70%;
 }

 nav ul li a {
    display: block;
    padding: 5px 10px 15px;
    color: var(--white);
    position: relative;
    font-size: 16px;
    font-weight: 700 ;
    line-height: 26px;
    text-transform: capitalize !important;
    text-decoration: none;
}

ul.submenu {
    display: none;
}

li.Home {
    height: 82px;
    padding: 0;
    margin: 0;
}

li.Home a img {
    width: 45px;
    height: 35px;
}

li.Home.dropdown {
    height: 82px;
    padding: 0;
    margin: 0;
}

li.Home.dropdown a {
    padding: 30px 22px 15px 38px !important;
}
h2#contact {
    scroll-margin-top: 140px;
}

 header nav.menu-mobile.visible {
    top: 50px;
    visibility: visible;
    -webkit-transform: translateY(0%);
    transform: translateY(0%);
    opacity: 1;
    overflow-y: scroll;
 }

 header .head-top .btn-menu span {
     width: 28px;
     height: 2px;
 }

 .btn-menu span {
     margin: 6px 0 !important;
 }

 header .head-top .btn-menu {
     display: block;
     top: 0px;
     left: 0px;
     z-index: 999;
     padding: 11px 13px;
     position: absolute;
     transition: padding 0.2s ease;~
 }

header .head-top .idioma {
    top: 3px;
    left: 135px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    padding: 5px 0px 5px 5px;
    position: relative;
}

header .head-top .idioma .idioma-actual {
    cursor: pointer;
}


header .head-top .idioma .lista-idiomas.visible {
    visibility: visible;
    opacity: 1;
}
header .head-top .idioma .lista-idiomas {
    text-align: center;
    position: absolute;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    top: calc(100% + 20px);
    width: 160px;
    left: -60px;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    -webkit-box-shadow: 0px 5px 13px -4px rgba(0, 0, 0, 0.65);
    -moz-box-shadow: 0px 5px 13px -4px rgba(0,0,0,0.65);
    box-shadow: 0px 5px 13px -4px rgba(0, 0, 0, 0.65);
}

.visible {
    opacity: 1;
}

header .head-top .idioma .lista-idiomas a {
    font-size: 14px;
    font-weight: bold;
    color: #0d32ac;
    display: block;
    margin-bottom: 5px;
    text-decoration: none;
}

header .head-top .idioma .lista-idiomas:after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 15px 15px 15px;
    border-color: transparent transparent #ffffff transparent;
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

 header .head-top .btn-menu.open .logo img {
    display: none ;
}

header .head-top .btn-menu.open ~.col-md-3 a.logo img {
    display: none;
}

header .head-top .btn-menu.open  {
   padding: 25px 45px;
} 

 header .logo {
    display: flex;
    max-height: 27px;
    justify-content: start;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    padding-left: 10px;
}
 header .logo img {
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    -webkit-transform-origin: left;
    transform-origin: left;
    width: 83px;
    height: 24px;
}

header .head-top .btn-adistec {
   display: inline-block;
   color: var(--white);
   font-size: 11px;
   font-weight: bold;
   border: 1px solid #fff;
   border-radius: 4px;
   padding: 4px 20px;
   margin-left: 40px;
   text-transform: uppercase;
}

header .head-top .btn-menu span {
    width: 26px;
    height: 2px;
    background-color: var(--white);
    -webkit-transition: 0.4s;
    transition: 0.4s;
    display: block;
}

header nav .submenu-small {
    width: 250px;
    position: absolute;
    background: var(--white);
    left: auto;
    margin: 0;
    display: block;
    padding-left: 0;
    display: none;
    margin-left: -75px;
    box-shadow: 0px 5px 13px -4px rgba(0, 0, 0, 0.65);
}

.submenu-small li a {
    padding: 13px 0;
    color: var(--primary-blue-adistec) !important;
    text-transform: none !important;
    text-align: center !important;
}

#sub-small.submenu-small li a:after {
    content: "";
    height: 4px;
    left: 0;
    bottom: 0px;
    right: 0px;
    display: block;
    position: absolute;
    background: #eff3ff;
    opacity: 0;
}


 nav.menuNav {
   display:none; 
 }

header nav.menu-mobile {
    display: block;
    position: absolute;
    top: 55px;
   -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
    right: 0px;
    width: 100%;
    height: auto;
    z-index: 99;
    background: var(--primary-blue-adistec);
    padding: 0;
    visibility: hidden;
   -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    opacity: 0;
 }
 header nav.menu-mobile.visible {
    top: 50px;
    visibility: visible;
    -webkit-transform: translateY(0%);
    transform: translateY(0%);
    opacity: 1;
    overflow-y: scroll;
    height: 80vh;
 }
 header nav.menu-mobile ul {
     display: block;
     margin: 0;
     padding: 0;
 }
 header nav.menu-mobile ul li {
     display: block;
     margin: 0;
     position: relative;
     background: var(--primary-blue-adistec);
     line-height: 22px;
 }
 header nav.menu-mobile ul li .submenu {
     position: relative;
     max-height: 0;
     -webkit-transition: max-height 0.3s ease-out;
     transition: max-height 0.3s ease-out;
     overflow: hidden;
     background: var(--primary-blue-adistec);
     padding-left: 0;
 }
 header nav.menu-mobile ul li a {
     font-size: 16px;
     padding: 28px 30px 28px 40px;
     display: block;
     position: relative;
     border: none;
     background: var(--primary-blue-adistec);
 }

header nav ul li:hover a:after {
    opacity: 1;
}

@media only screen and (min-width: 768px) {
   header .head-top {
      height: 120px;
      -webkit-box-pack: end;
      -ms-flex-pack: end;
      justify-content: flex-end;
      justify-content: left;
      padding-left: 80px;
   }

   header .head-top .idioma {
        left: 445px;
    	top: 6px;
        font-size: 14px;
   }

   header .head-top > .idioma {
        padding-right: 50px !important;
   }


   header .logo {
      max-height: 40px;
      max-width: unset;
      min-width: 141px;
   }
   header .logo img {
      width: 100%;
      height: auto;
   }

    header .head-top .btn-menu{
      top: 3px;
      left: 7px;
      padding: 25px 18px;
   }  
   header .head-top .btn-menu span {
      margin: 13px 0 !important;
      width: 58px;
      height: 4px;
   }


 header nav.menu-mobile.visible {
    top: 90px;
 }

 .menu-mobile.visible ul li a {
    font-size: 20px !important;
    line-height: 22px;
    font-weight: 700 !important;
 }

 h2#contact {
    scroll-margin-top: 205px;
 }
}

@media only screen and (min-width: 1200px) {
   header .head-top.short {
      height: 70px;
   }

   header .head-top {
        padding: 0px !important;
        -webkit-box-pack: start !important;
        -ms-flex-pack: end;
        padding-left: 80px;
        height: 88px;
        width: 100%;
        padding: 0;
        margin: 0;
   }

   header .head-top .idioma{
	font-size: 12px;
    	left: -60px;
    	top: 10px;
        white-space: nowrap;
   }

   header .logo {
      padding: 0;
      position: relative;
      float: inline-start;
      left: 50px;
   }
   header .logo img {
        width: unset !important;
   }


   header nav ul li a {
      font-size: 16px !important;
      font-weight: 700 !important;
      line-height: 26px;
      text-transform: capitalize !important;
      text-decoration: none;
      display: block;
      padding: 5px 15px 15px;
      color: var(--white);
   }

   header .head-top .menuNav {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      list-style: none;
      margin: 0;
      padding-left: 0;
      -webkit-transition: all .3s ease;
      transition: all .3s ease;
      justify-content: space-around;
      align-self: center;
      justify-content: space-evenly;
      justify-content: center;
      margin-left: -60px;
   }

   header .head-top nav.menuNav ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: flex-end;
        -webkit-box-align: end;
        -ms-flex-align: center;
        list-style: none;
        margin: 0 0 -40px 0px;
        padding-left: 0;
        transition: all .3s ease;
        text-align: justify;
        gap: 0 15px; 
        padding-bottom: 10px;
   }

   header .head-top .menuNav ul li .submenu {
    display: none;
  }

  header .head-top .menuNav ul li ul.submenu-small {
    display: none;
  }

  header nav.menuNav ul li:nth-child(1) a.no-link, .menuNav ul li:nth-child(1) a.no-link {
      cursor: pointer;
  }

  header nav ul li a {
     width: auto;
     white-space: nowrap;
  }

 header .head-top .menuNav ul li a:after {
	content: "";
        height: 4px;
        left: 0;
        bottom: 0px;
        right: 0px;
        display: block;
        position: absolute;
	background: #eff3ff;
        opacity: 0;
 }

 header .head-top .menuNav ul li:hover a:after {
      opacity: 1;
 }

  header .head-top .menuNav ul li a:after {
      background: #eff3ff;
  }

 header .head-top .menuNav ul li .submenu {
    position: absolute;
    left: 0;
    width: 100%;
    background: #eff3ff;
    z-index: 99;
    max-height: 0;
    -webkit-transition: max-height 0.3s ease-out;
    transition: max-height 0.3s ease-out;
    overflow: hidden;
 }
 header .head-top .menuNav ul li:hover .submenu {
    max-height: 1000px;
    -webkit-transition: max-height 0.25s ease-in;
    transition: max-height 0.25s ease-in;
    -webkit-box-shadow: 0px 0px 8px 0px rgba(143, 144, 148, 0.6);
    box-shadow: 0px 0px 8px 0px rgba(143, 144, 148, 0.6);
    display: block;
 }
 header .head-top .menuNav ul li .submenu .wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: flex-end;
    padding-top: 30px;
    padding-bottom: 10px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
 }
 header .head-top .menuNav ul li .submenu .wrap .item-submenu {
    width: 33%;
    padding: 0px 40px 0;
    min-height: 250px;
    max-height: 250px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
 }
  header .head-top .menuNav ul li .submenu .wrap .item-submenu .adis-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: start;
 }
  header nav .submenu .wrap .item-submenu img {
    margin-bottom: 10px;
    margin-left: 0px;
    margin-right: 30px;
 }
  header nav .submenu .wrap .item-submenu p {
    font-size: 13px;
    line-break: anywhere;
    line-height: 15px;
 }
 header nav .submenu .wrap .item-submenu h4 {
    font-size: 18px;
    color: var(--primary-blue-adistec);
    font-weight: bold;
    margin: 0;
 }
 header .head-top .menuNav ul li .submenu .wrap .item-submenu a.ver-mas {
    font-size: 12px !important;
    font-weight: bold;
    color: var(--primary-bu);
    text-transform: uppercase !important;
    padding-left: 0;
    width: 43%;
 }
 header nav ul li:hover .submenu-small {
    display: block !important
 }
  header .head-top .menuNav ul li ul.submenu-small {
    width: 250px;
    position: absolute;
    background: var(--white);
    left: auto;
    margin: 0;
    display: block;
    padding-left: 0;
    display: none;
    margin-left: -70px;
    box-shadow: 0px 5px 13px -4px rgba(0, 0, 0, 0.65);
 }


 header .head-top .menuNav ul li ul.submenu-small li a {
    font-size: 14px !important;
 }

  header .head-top .btn-menu {
    display: none;
 }

 h2#contact {
    scroll-margin-top: 180px;
 }
}



@media only screen and (min-width: 1400px){ 
     header .head-top nav.menuNav ul {
        gap: 0 70px;
    }
}



header .head-top{
  display:flex;
  align-items:center;
}


header .head-top > .col-md-3{
  /* flex:0 0 auto; */
}


header .head-top > nav.menuNav{
  flex:1 1 auto;
  margin-left:0 !important;      /* quita el -60px */
  justify-content:flex-start !important; /* deja de centrar */
}


header .head-top > .idioma{
  margin-left:auto;              /* empuja hacia el borde derecho */
  position:relative !important;  /* deja de depender de offsets */
  left:auto !important;
  padding-right: 30px;
}


header nav ul li a{ width:auto !important; }


header .head-top .idioma .lista-idiomas{ z-index: 1000; }


@media (min-width: 1200px){
  header .head-top nav.menuNav{ display:flex; }
  header .head-top > .idioma{padding-right: 70px !important;}
}



@media only screen and (max-width: 767px) {

 header .head-top .idioma .lista-idiomas {
        right: 0px;
        left: auto;
        width: 100vw;
        border-radius: 0;
        top: 35px !important;
        text-align: center;
        background: #eff3ff;

 }

}

@media only screen and (max-width: 991px) {
    header .head-top .idioma .lista-idiomas:after {
        display: none;
    }
  header .head-top .idioma .lista-idiomas {
    right: 0px;
    left: auto;
    width: 100vw;
    border-radius: 0;
    top: 70px;
    text-align: center;
    background: #eff3ff;
    
 }
}
