header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: transparent;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 11;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

header.scrolled {
  background-color: rgba(255,255,255,.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
  position: relative;
  display: flex;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  margin-right: 20px;
  display: flex;
  padding: 0px 25px;
  align-items: center
}

.menu li a::after {
  content: "";
  width: 90%;
  height: 1px;
  background-color: #fff;
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translate(-50%, 0);
  transition: 1.3s;
  opacity: 0;
}

.menu li:hover a::after {
  content: "";
  width: 90%;
  height: 1px;
  background-color: #fff;
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translate(-50%, 0);
  transition: 1.3s;
  opacity: 1;
}

.menu li a.activo::after {
  content: "";
  width: 90%;
  height: 1px;
  background-color: #fff;
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translate(-50%, 0);
  transition: 1.3s;
  opacity: 1;
}

.menu li a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-family: 'baloo-r';
  transition: 1.3s;
  position: relative;
  
}

.menu-icon {
  display: none;
  font-size: 30px;
  cursor: pointer;
}

.navbar--logo {
  max-width: 80px;
  width: 100% !important;
  height: auto !important;
  transition: 1.3s;
}

.close-icon {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
  position: absolute;
  top: 20px;
  right: 20px;
}

.navbar--button:hover {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

.navbar--button {
  border: none;
  background-color: #fff;
  color: #000;
  border-radius: 25px;
  width: 120px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #fff;
  cursor: pointer;
  text-decoration: none;
  transition: 1.3s;
}

.center-menu  header {
  background-color: #fff;
  position: fixed;
  justify-content: flex-end;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.center-menu  nav {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: center;
}

.center-menu  .menu li a {
  text-decoration: none;
  color: #0B1853;
  font-size: 18px;
  font-family: 'baloo-r';
  transition: 1.3s;
  position: relative;
}

.center-menu  .navbar--button {
  background-color: #0B1853;
  color: #fff
}

.center-menu  .menu {
  align-items: center;
  gap: 20px;
  padding-left: 50px;
}

.center-menu  .menu li a::after {
  content: "";
  width: 90%;
  height: 1px;
  background-color: #0B1853;
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translate(-50%, 0);
  transition: 1.3s;
  opacity: 0;
}

.center-menu  .menu li:hover a::after {
  content: "";
  width: 90%;
  height: 1px;
  background-color: #0B1853;
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translate(-50%, 0);
  transition: 1.3s;
  opacity: 1;
}

.center-menu  .menu li a.activo::after {
  content: "";
  width: 90%;
  height: 1px;
  background-color: #0B1853;
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translate(-50%, 0);
  transition: 1.3s;
  opacity: 1;
}

.center-menu  .navbar--button:hover {
  background-color: transparent;
  border-color: #0B1853;
  color: #0B1853;
  text-decoration: none;
} 

.detalle #header {
  background-color: transparent
}


/* Estilos responsive */
@media (max-width: 768px) {
  .menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 0;
      overflow: hidden;
      background-color: #9046A9;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: height 0.3s ease;
  }

  .menu li {
      margin: 20px 0;
  }

  .menu li a {
      color: white;
      font-size: 35px;
  }

  .center-menu .menu li a {
    color: white;
    font-size: 35px;
  }

  .menu.open {
      height: 100vh;
  }

  .menu-icon {
      display: block;
      font-size: 30px;
      color: #fff;
      line-height: 1;
      position: relative;
      top: -3px;
  }

  .close-icon {
      z-index: 9;
  }

  .navbar--button {
    margin-bottom: 10px;
    font-size: 35px;
    width: 245px;
    height: 55px;
    color: #0B1853
  }
  
  .center-menu .navbar--button {
    margin-bottom: 10px;
    font-size: 35px;
    width: 245px;
    height: 55px;
    color: #fff;
    border-color: #0B1853
  }

  .center-menu  .menu-icon{
    color: #0B1853
  }

  .center-menu  nav {
    justify-content: flex-end;
  }

}