.navbar {
  height: 60px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: relative;
  z-index: 100;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
}

.ul-links {
  display: flex;
  list-style: none;
  justify-content: space-around;
}


.main-option {
  text-decoration: none;
  color: black;
  border-bottom: 2px solid white;
  padding: 10px 10px;
  font-size: 17px;
  font-family: 'Albert Sans', sans-serif;
  font-weight: 500;
}

.main-option {
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.3s;
}

.main-option.hovered {
  border-bottom: 2px solid #252E68;
}


.nav-links {
  position: relative;
  z-index: 200;
}


.dropdown-menu {
  display: none;
  position: absolute;
  top: 145%;
  left: 50%;
  transform: translateX(-50%);

  background-color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 1;
  width: auto;
  min-width: 120px;
  white-space: nowrap;
}


.nav-links:hover .dropdown-menu {
  display: block;
}



.dropdown-option {
  position: relative;
  text-decoration: none;
  color: black;
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-family: 'Albert Sans', sans-serif;
}

.dropdown-option:hover {
  background-color: #252e68b7;
  color: white;
}

.nav-right {
  display: flex;align-items: center;
  justify-content: center;
}

.input {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #686868;
  height: 35px;
  padding: 1px 5px;
}

.input input{
  outline: none;
  border: none;
}

.resultados {
  top: 8%;
  left: 0;
  right: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.result-container {
  width: 70%;
  padding: 40px 10px;
}

.resultados ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.resultados li {
  flex: 1 1 calc(14.28% - 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 40px;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  width: fit-content;
}

.resultados li span {
  font-weight: 600;
  font-size: 18px;
}

/* .resultados li:hover {
  background: #f0f0f0;
} */


.menu {
  display: none;
}





.mobile-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  max-height: 0;
  z-index: 100;
}

.mobile-menu.active {
  max-height: 1000px;
}

.mobile-ul-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-links {
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
}

.mobile-main-option {
  text-decoration: none;
  color: black;
  font-size: 17px;
  font-family: 'Albert Sans', sans-serif;
}

.sub-menu {
  background-color: rgb(240, 240, 240);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  padding-left: 0;
  margin: 0;
  list-style-type: none;
}

.sub-menu li {
  padding-top: 5px;
  padding-bottom: 5px;
}

.sub-menu li a {
  color: black;
  text-decoration: none;
  text-align: left;
  -webkit-text-align: center;
}

.sub-open {
  max-height: 1000px;
}


.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background-color: white;
  color: black;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  min-height: 100%;
}

.submenu-li {
  cursor: pointer;
  margin-top: auto;
  margin-bottom: auto;
  padding: 5px;
  text-align: center;
  font-size: 17px;
  font-family: 'Albert Sans', sans-serif;
  min-height: 25px;
  width: auto;
  min-width: 120px;
  white-space: nowrap;
}

.submenu-li a {
  width: 100%;
  text-decoration: none;
  color: black;
}

.submenu-li:hover {
  background-color: #252e68b7;
  color: white;
}


.dropdown-option>.submenu {
  left: 100%;
  top: 0;
}


.dropdown-option:hover .submenu {
  display: block;
}

.product-list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 0;
  list-style-type: none;
}

.rotated {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}


/* Estilo para dispositivos pequeños (teléfonos) */
@media (max-width: 576px) {
  .nav-center {
    display: none;
  }

  .nav-right {
    display: none;
  }

  .menu {
    cursor: pointer;
    display: block;
    transform: scale(1.5);
  }

  .menu:hover {
    background-color: lightgray;
  }



}


/* Estilo para tablets */
@media (min-width: 576px) and (max-width: 768px) {
  .nav-center {
    display: none;
  }

  .nav-right {
    display: none;
  }

  .menu {
    display: block;
    transform: scale(1.5);
  }
}

/* Estilo para laptops y escritorios pequeños */
@media (min-width: 768px) and (max-width: 992px) {
  .nav-center {
    width: 60%;
  }
}

/* Estilo para escritorios grandes */
@media (min-width: 1200px) and (max-width: 1440px) {

  .mobile-menu {
    display: none !important;
  }

  .nav-center {
    width: 65%;
  }


}