html {
  font-size: 62.5%;
  font-family: 'Lato', sans-serif;
  font-style: normal;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  font-family: 'lato', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-family: 'lato', sans-serif;
}

.logo {
  display: block;
  width: 10vw;
}

header {
  position: relative;
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 8vh;
  background-color: transparent;
  position: absolute;
  margin-top: 1px;
}

.ham {
  display: none;
  background-color: transparent;
  cursor: pointer;
  border: none;
  margin: 0;
  padding: 0;
}

.ham span {
  background-color: black;
  display: block;
  height: 3px;
  width: 28px;
  margin: 10px auto;
  border-radius: 2px;
}

.enlaces-menu {
  display: flex;
  padding: 0;
  max-width: 100%;
}

.enlaces-menu li {
  padding: 0 20px;
  list-style-type: none;
  transition: 0.3s;
}

.enlaces-menu li a {
  text-decoration: none;
  font-size: 1.8rem;
  color: black;
  font-weight: 600;
}

.enlaces-menu li a:hover,
.enlaces-menu li a:focus,
.enlaces-menu li a:active {
  color: var(--color-secondary);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .ham {
    display: block;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 25px;
    transition: 0.2s 0.1s;
    z-index: 9999;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 25px;
    padding-bottom: 25px;
    position: fixed;
  }

  .logo {
    display: none;
  }

  .enlaces-menu {
    top: 1px;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    height: 92%;
    margin: 0;
    padding: 0;
    display: none;
    opacity: 0;
    transition: opacity 5s ease-out;
    width: 100%;
    background-color: #f5f5f5;
    z-index: 9;
    position: fixed;
    text-justify: auto;
  }

  .enlaces-menu li a {
    font-size: 2em;
    text-align: center;
    margin-block: 15px;
    padding: 15px;
  }
}

@keyframes muestraMenu {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.enlaces-menu.activado {
  display: flex;
  animation: muestraMenu 350ms ease-in-out both;
}

.br-1.animado {
  transform: rotate(-45deg) translate(-10px, 8px);
}

.br-2.animado {
  opacity: 0;
}

.br-3.animado {
  transform: rotate(45deg) translate(-10px, -8px);
}
