.navbar {
  height: 12vh;
  background-color: #FEF2F2;
  border-bottom: 0.5px solid #FCA5A5;
  display: flex;
  justify-content: space-between;
}

.navbar .logo-container {
  height: 100%;
  margin-left: 2%;
  display: flex;
  align-items: center;
}

.navbar .logo {
  height: 9.2vh;
  transition: 0.1s;
  /* cursor: auto; */
}

.name {
  color: #f64b5f;
  font-weight: bolder;
  margin: 0;
}

.navbar .logo-container h2 {
  padding-left: 5%;
  display: none;
}

.navbar .logo:hover {
  scale: 1.02;
}

.navbar .logo img {
  height: 100%;
  object-fit: cover;
}

.navbar .menu {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2%;
  margin-right: 2%;
  transition: 0.1s;
  border: none !important;
  width: 80vw;
  flex: 1;
}

.navbar .menu a {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .menu a img {
  height: 55%;
  transition: 0.1s;
}

.navbar .menu a img:hover {
  scale: 1.05;
}

.menu .name-rol h2 {
  padding-left: 10%;
}

.menu .container-buttons {
  display: flex;
  align-items: center;
  justify-content: end;
  height: 100%;
  /* gap: 30px;  */
  min-width: 50%;
  width: auto;
}

.navbar .menu .buttons {
  /* width: 100%; */
  height: 70%;
  /*Buttons height*/
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
  margin-right: 40px;
}

.navbar .menu .btn {
  /* width: 8vw; */
  min-width: 8vw;
  transition: 0.1s;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

.navbar .menu .btn-activated {
  /* filter: saturate(4) brightness(1); */
  background-color: red !important;
  color: white;
  scale: 1.0 !important;
}

.dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown a i {
  margin-left: 3% !important;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 1vw;
  background: #FEF2F2 !important;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
  z-index: 1000;
  border: none !important;
  min-width: unset !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden;
}

.dropdown-menu a {
  position: relative;
  padding: 10px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: 0.05s;
}

.dropdown-menu a:hover {
  background: #eee;
  scale: 1.05;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.user {
  cursor: pointer;
  scale: 1.1;
  /* margin-left: 30px; */
}

.login {
  margin-right: 5%;
}

.mobile-menu img {
  cursor: pointer;
}

.mobile-menu img:hover {
  scale: 1.05;
}

/* MODO MOBILE */
@media (max-width: 1000px) {

  .navbar .menu {
    flex: initial;
  }

  .menu .name-rol{
    background-color: blue;
    width: 100vw !important;
    margin: 0;
    margin-left: -5%;
    padding: 2% 5%;
    background-color: rgba(0, 0, 0, .1);
    border-top: 1px solid #FCA5A5;
  }

  .menu .name-rol h2 {
  padding-left: 0;
  }

  .menu .container-buttons {
    width: 100%;
  }

  .mobile-menu {
    display: flex !important;
  }

  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
  }

  .logo-container h2 {
    display: flex !important;
  }

  .navbar .menu {
    width: 100vw !important;
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    /* display:none;                ----- FIXED VIEW MENU */
    display: none;
    background: #FEF2F2;
    padding: 10px 4%;
    border-top: 1px solid #FCA5A5;
  }

  .navbar .menu.active {
    display: flex !important;
  }

  .navbar .menu .buttons {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 10px;
    margin-right: 0;
  }

  .navbar .menu .btn {
    width: 100%;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: relative;
    box-shadow: none;
  }

  .navbar .menu .buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown-menu {
    position: static !important;
    /* CLAVE */
    display: none;
    flex-direction: column;
    width: 100%;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-menu {
    display: flex;
  }

  .menu .name-rol {
    width: 100%;
    margin-bottom: 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .menu .name-rol a {
    display: flex !important;
  }

  .user {
    display: none !important;
  }
}

.inactive:hover {
  scale: 1.0 !important;
}

.inactive:active {
  scale: 1.0 !important;
}


/* ------------------------------------------------------------------------------------------------------------------------------- */

#checkbox {
  display: none;
}

.toggle {
  width: 60px;
  height: calc(60px * 0.884);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22%;
  transition-duration: .5s;
  display: none;
  scale: 0.7;
}

.bars {
  width: 100%;
  height: 13%;
  background-color: #f64b5f;
  border-radius: 4px;
  visibility: hidden;
}

#bar2 {
  transition-duration: .8s;
}

#checkbox:checked+.toggle .bars {
  position: absolute;
  transition-duration: .5s;
}

#checkbox:checked+.toggle #bar2 {
  transform: scaleX(0);
  transition-duration: .5s;
}

#checkbox:checked+.toggle #bar1 {
  width: 100%;
  transform: rotate(45deg);
  transition-duration: .5s;
}

#checkbox:checked+.toggle #bar3 {
  width: 100%;
  transform: rotate(-45deg);
  transition-duration: .5s;
}

#checkbox:checked+.toggle {
  transition-duration: .5s;
  transform: rotate(180deg);
}


@media only screen and (max-width: 1000px) {

  .bars,
  .toggle {
    visibility: visible;
    position: relative;
    display: flex;
  }
}

@media only screen and (max-width: 700px) {

  .navbar .logo-container h2 {
    display: none !important;
  }
}