/* Header */
.header {
  width: 100%;
  min-width: 300px;
  height: 85px;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 2px 2px 10px var(--shadow-color);
}

.header__name {
  font-size: 2.4rem;
  line-height: 1.8rem;
  margin-left: 15px;
}

.header__name a {
  text-decoration: none;
  color: var(--text-secondary-color);
}

.header__name-highlight {
  color: var(--text-primary-color);
}

/* Header button  menu */
.header__toggle {
  width: 45px;
  height: 35px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  padding: 5px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  background-color: var(--primary-color);
  outline: var(--text-primary-color) solid 2px;
}

.header__toggle-1,
.header__toggle-2 {
  display: inline-block;
  width: 50%;
  height: 2.5px;
  background-color: var(--line-primary-color);
  transition: 0.3s ease;
}

/* Transform menu hamburger  bars */
.change .header__toggle-1 {
  transform: translateY(4.5px) rotateZ(45deg);
}

.change .header__toggle-2 {
  transform: translateY(-4.5px) rotateZ(-45deg);
}

/* Header Nav */
.header__nav {
  width: 100vw;
  height: 100vh;
  position: fixed;
  z-index: 2;
  top: 85px;
  right: -77vw;
  right: -100vw;
  background-color: var(--primary-color);
  transition: transform 0.7s ease;
}

.header__list {
  height: calc(100vh - 85px);
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

.header__list a {
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--text-secondary-color);
}

.header__item--cta {
  border: var(--text-primary-color) solid 2px;
  border-radius: 4px;
  padding: 10px;
}

/* Estilo que hace aparecer el listado  menu */
.change__menu {
  transform: translateX(-77vw);
  transform: translateX(-100vw);
}

/* Media queries */
/* Tablet */
@media screen and (width >=768px) {
  .header__toggle {
    display: none;
  }

  .header__brand {
    width: 290px;
  }

  .header__name {
    display: block;
    font-size: 2.8rem;
    line-height: 1.8rem;
  }

  .header__nav {
    position: static;
    width: 400px;
    height: 50px;
  }

  .header__list {
    height: 50px;
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
  }

  .change__menu {
    transform: translateX(0vw);
  }
}

/* Desktop */
@media screen and (width >=1024px) {
  .header {
    max-width: 1440px;
    margin: 0 auto;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }

  .header__nav {
    width: 600px;
  }

  .header__list a {
    font-size: 2rem;
  }

  .header__list a:hover {
    color: var(--text-primary-color);
  }

  .header__item--cta {
    outline: var(--text-primary-color) solid 1px;
    border-radius: 4px;
    padding: 10px;
  }
}