header {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  overflow:hidden;
  position: absolute;
  z-index: 90000000;
}

header .menu-top{
  width: 70%;
  box-sizing: border-box;
  padding-left: 30px;
}
header .logo {
  width: 30%;
  text-align: right;
  box-sizing: border-box;
  padding-right: 20px;
}

header .logo-up{
    width: 300px;
    height: 200px;
    display: block;
    float: right;
    background-image: url(../img/logo-up-blanco.png);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    margin-top: 2em;
}

header nav {
}

header nav .menu-cursos a:link {
  color: #ffff00;
  background-image: url(../img/icono-cursos-oscuro.png);
  background-repeat: no-repeat;
  background-size: 35px;
  background-position: 5px;
  padding-left: 45px;
  padding-right: 35px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-right: 1em;
  font-size: 0.9em;
  border: none;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

header nav .menu-cursos a:visited {
  color: #ffff00;
}
header nav .menu-cursos a:hover {
  color: #ffff00;
  background-color: rgba(114, 183, 201, 0.35);
  -webkit-border-radius: 10px 10px 10px 10px;
  border-radius: 10px 10px 10px 10px;
}


header nav .menu-preguntas a:link {
  color: #ffff00;
  background-image: url(../img/icono-preguntas-oscuro.png);
  background-repeat: no-repeat;
  background-size: 35px;
  background-position: 5px;
  padding-left: 45px;
  padding-right: 35px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-right: 1em;
  font-size: 0.9em;
  border: none;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

header nav .menu-preguntas a:visited {
  color: #ffff00;
}
header nav .menu-preguntas a:hover {
  color: #ffff00;
  background-color: rgba(114, 183, 201, 0.35);
  -webkit-border-radius: 10px 10px 10px 10px;
  border-radius: 10px 10px 10px 10px;
}

header nav .menu-mas a:link {
  color: #ffff00;
  background-image: url(../img/icono-mas-oscuro.png);
  background-repeat: no-repeat;
  background-size: 35px;
  background-position: 5px;
  padding-left: 45px;
  padding-right: 35px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-right: 1em;
  font-size: 0.9em;
  border: none;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

header nav .menu-mas a:visited {
  color: #ffff00;
}
header nav .menu-mas a:hover {
  color: #ffff00;
  background-color: rgba(114, 183, 201, 0.35);
  -webkit-border-radius: 10px 10px 10px 10px;
  border-radius: 10px 10px 10px 10px;
}




.header2 {
  height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  position: fixed;
  background-color: rgba(255, 255, 255, 0.87);
  -webkit-box-shadow: 0 0 9px 1px rgba(0,0,0,0.5);
box-shadow: 0 0 9px 1px rgba(0,0,0,0.5);
}

.header2 .logo-up{
    width: 180px;
    display: block;
    float: right;
    background-image: url(../img/logo-up-oscuro.png);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    margin-top: 0.1em;
}

.header2 nav .menu-cursos a:link {
  color: rgb(61, 61, 61);
  background-image: url(../img/icono-cursos-blanco.png);
  background-repeat: no-repeat;
  background-size: 35px;
  background-position: 5px;
  padding-left: 45px;
  padding-right: 35px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-right: 1em;
  font-size: 0.85em;
  border: none;
}

.header2 nav .menu-cursos a:visited {
  color: rgb(61, 61, 61);
}

.header2 nav .menu-cursos a:hover {
  color: rgb(61, 61, 61);
}

.header2 nav .menu-cursos a:active {
  color: rgb(61, 61, 61);
}

.header2 nav .menu-preguntas a:link {
  color: rgb(61, 61, 61);
  background-image: url(../img/icono-preguntas-blanco.png);
  background-repeat: no-repeat;
  background-size: 35px;
  background-position: 5px;
  padding-left: 45px;
  padding-right: 35px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-right: 1em;
  font-size: 0.85em;
  border: none;
}

.header2 nav .menu-preguntas a:visited {
  color: rgb(61, 61, 61);
}

.header2 nav .menu-preguntas a:hover {
  color: rgb(61, 61, 61);
}

.header2 nav .menu-preguntas a:active {
  color: rgb(61, 61, 61);
}

.header2 nav .menu-mas a:link {
  color:rgb(61, 61, 61);
  background-image: url(../img/icono-mas-blanco.png);
  background-repeat: no-repeat;
  background-size: 35px;
  background-position: 5px;
  padding-left: 45px;
  padding-right: 35px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-right: 1em;
  font-size: 0.85em;
  border: none;
}

.header2 nav .menu-mas a:visited {
  color: rgb(61, 61, 61);
}

.header2 nav .menu-mas a:hover {
  color: rgb(61, 61, 61);
}

.header2 nav .menu-mas a:active {
  color: rgb(61, 61, 61);
}


@media screen and (max-width:1400px){
  header {
    height: 90px;
  }
  header .logo-up{
      width: 250px;
      margin-top: 0;
  }
  header nav .menu-cursos a:link {
    margin-right: 0.1em;
  }
  .header2 {
    height: 70px;
  }

  .header2 .logo-up{
      width: 150px;
  }
  .header2 nav .menu-cursos a:link {
    margin-right: 0;
    font-size: 0.75em;
    padding-right: 15px;
  }
  .header2 nav .menu-preguntas a:link {
    margin-right: 0;
    font-size: 0.75em;
    padding-right: 15px;
  }
  .header2 nav .menu-mas a:link {
    margin-right: 0;
    font-size: 0.75em;
    padding-right: 15px;
  }
}

@media screen and (max-width:1024px){
  header {
    height: 70px;
  }
  header .logo-up{
      width: 250px;
  }
  header nav .menu-cursos a:link {
    margin-right: 0.1em;
    padding-right: 10px;
  }
  header nav .menu-preguntas a:link {
    margin-right: 0.1em;
    padding-right: 10px;
  }
  header nav .menu-mas a:link {
    margin-right: 0.1em;
    padding-right: 10px;
  }
  .header2 {
    height: 60px;
  }

  .header2 .logo-up{
      width: 250px;
      height: 60px;
  }
  .header2 nav .menu-cursos a:link {
    margin-right: 0;
    font-size: 0.75em;
    padding-right: 8px;
  }
  .header2 nav .menu-preguntas a:link {
    margin-right: 0;
    font-size: 0.75em;
    padding-right: 8px;
  }
  .header2 nav .menu-mas a:link {
    margin-right: 0;
    font-size: 0.75em;
    padding-right: 8px;
  }
}




@media screen and (max-width: 950px) {
  header {
    height: 100px;
    width: 100%;
    display: block;

  }

  header .menu-top{
    display: none;
  }
  header .logo-up{
      width: 300px;
      height: 80px;
      display: block;
      float: right;
      margin-right: 30px;
      margin-top: 10px;
  }
  .header2 {
    height: 100px;
    width: 100%;
    display: block;
    background-color: rgba(2, 34, 61, 0.5);
  }
  .header2 .logo-up{
    width: 300px;
    height: 80px;
    display: block;
    float: right;
    margin-right: 30px;
    margin-top: 10px;
  }
}

@media screen and (max-width: 570px) {

  header .logo-up{
      width: 200px;
      height: 60px;
      display: block;
      float: right;
      margin-right: 30px;
      margin-top: 5px;
  }

  .header2 .logo-up{
    width: 200px;
    height: 60px;
    display: block;
    float: right;
    margin-right: 30px;
    margin-top: 5px;
  }
}

@media screen and (max-width: 420px) {
  header {
    height:60px;
    width: 100%;
    background-color: #1aa6b7;
    position: relative;

  }
  header .logo-up{
      width: 200px;
      height: 60px;
      display: block;
      float: right;
      margin-right: 30px;
      margin-top: 5px;
      background-image: url(../img/logo-up-blanco.png);
      background-color: #1aa6b7;

  }

  .header2 {
    height:60px;
    width: 100%;
    background-color: #1aa6b7;
    position: relative;

  }
  .header2 .logo-up{
    width: 200px;
    height: 60px;
    display: block;
    float: right;
    margin-right: 30px;
    margin-top: 5px;
  }
}
