/* =========================
   HEADER
========================= */

header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px;
  background:#111;
  color:white;
  position:relative;
}

header h1{
  font-size:28px;
}

nav{
  display:flex;
  gap:20px;
}

nav a{
  color:white;
  text-decoration:none;
  font-weight:500;
}

/* =========================
   HAMBURGUESA
========================= */

.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.hamburger span{
  width:28px;
  height:3px;
  background:white;
  border-radius:3px;
  transition:0.3s;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px){

  .hamburger{
    display:flex;
  }

  nav{
    position:absolute;
    top:80px;
    left:0;
    width:100%;
    background:#111;

    flex-direction:column;
    align-items:center;
    gap:25px;

    padding:0;

    max-height:0;
    overflow:hidden;

    transition:max-height 0.4s ease;
  }

  nav.active{
    max-height:300px;
    padding:30px 0;
  }
  .hamburger.active span:nth-child(1){
  transform:rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2){
  opacity:0;
}

.hamburger.active span:nth-child(3){
  transform:rotate(-45deg) translate(7px, -6px);
}

}