.container-layout {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Quitamos algunos estilos de bootstrap */
.list-group-item {
  border: none;
  padding: 0;
  background-color: transparent;
  border-bottom: 1px solid #f1f3f4;
}

a {
  color: #4a5568;
  text-decoration: none;
  display: block;
  background-color: transparent;
}

/* Contenedor del sidemenu */

.sidemenu-container {
  /* border: 1px solid red; */
  min-height: 100vh;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
}

/* Menu del sidemenu */

.sidemenu-nav {
  padding: 1rem;
  border-right: 1px solid #e0e0e0;
}

.sidemenu-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
  margin: 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
  line-height: 1.2;
}

.sidemenu-hr {
  border: 0;
  height: 1px;
  background-color: #e0e0e0;
  margin: 1rem 0.5rem 1rem 0;
}

.sidemenu-nav {
  padding: 1rem 0;
}

/* Navegación principal */
.sidemenu-nav {
  padding: 0.5rem 0;
}

.sidemenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidemenu-item {
  border-bottom: 1px solid #f1f3f4;
  transition: all 0.3s ease;
}

.sidemenu-item:last-child {
  border-bottom: none;
}

.sidemenu-item:hover {
  background: #f8f9fa;
}

/* Enlaces principales */
.sidemenu-link {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  background: white;
  border-left: 3px solid transparent;
}

.sidemenu-link:hover {
  background: linear-gradient(
    135deg,
    rgba(147, 189, 0, 0.5) 0%,
    rgba(103, 144, 0, 0.5) 100%
  );
  color: #2d3748;
  padding-left: 2rem;
  border-left-color: #93bd00;
  transform: translateX(2px);
}

.sidemenu-link.active {
  background: linear-gradient(
    135deg,
    rgba(147, 189, 0, 0.5) 0%,
    rgba(103, 144, 0, 0.5) 100%
  );
  color: white;
  border-left-color: #93bd00;
  box-shadow: 0 4px 15px rgba(147, 189, 0, 0.4);
}

.sidemenu-link.active:hover {
  padding-left: 1.5rem;
  transform: none;
}

/* Iconos del menú */
.sidemenu-icon {
  width: 22px;
  height: 22px;
  margin-right: 1rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.sidemenu-icon--2 {
  width: 15px;
  height: 15px;
}

.sidemenu-link-text {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  flex-grow: 1;
  letter-spacing: 0.025em;
}

/* Flecha desplegable */
.dropdown-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: auto;
  opacity: 0.7;
}

.sidemenu-item.open .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Submenús */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-left: 3px solid #e2e8f0;
}

.sidemenu-item.open .submenu {
  max-height: 400px;
}

.sidemenu-subitem {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.5rem 0.9rem 3.5rem;
  color: #718096;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.submenu-item::before {
  content: "";
  position: absolute;
  left: 2.8rem;
  width: 6px;
  height: 6px;
  background: #cbd5e0;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.submenu-item:hover {
  background: white;
  color: #4a5568;
  border-left-color: #93bd00;
  padding-left: 4rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.submenu-item:hover::before {
  background: #93bd00;
  transform: scale(1.2);
}

.submenu-item.active {
  background: white;
  color: #2d3748;
  border-left-color: #93bd00;
  font-weight: 600;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submenu-item.active::before {
  background: #93bd00;
}

.sidemenu-sublist-categories {
  padding-left: 1rem;
}

.sidemenu-sublink {
  padding: 1rem 0 1rem 2.5rem;
  font-size: 1.5rem;
  color: #718096;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.submenu-sublink:hover {
  text-decoration: underline !important;
}

/* Badge para ofertas */
.offer-badge {
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  margin-left: 0.5rem;
  animation: pulse 2s infinite;
  box-shadow: 0 2px 8px rgba(237, 137, 54, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.4);
  }
}

/* Badge especial para pedidos frecuentes */
.frequent-badge {
  background: linear-gradient(
    135deg,
    rgba(147, 189, 0, 0.5) 0%,
    rgba(103, 144, 0, 0.5) 100%
  );
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.5rem;
  box-shadow: 0 2px 6px rgba(72, 187, 120, 0.3);
}

/* Separador visual */
.menu-separator {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #e2e8f0 50%,
    transparent 100%
  );
  margin: 0.5rem 1rem;
}

/* Contenido principal */
.main-content {
  flex: 1;
  padding: 2rem;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  min-height: 100vh;
}

.content-header {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  border-left: 4px solid #93bd00;
}

.content-title {
  color: #2d3748;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.content-subtitle {
  color: #718096;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .sidemenu-container {
    width: 100%;
    /* position: fixed;
    left: -100%; */
    z-index: 1000;
    transition: left 0.3s ease;
  }

  .sidemenu-container.mobile-open {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .content-header {
    padding: 1.5rem;
  }

  .content-title {
    font-size: 1.5rem;
  }
}

.mobile-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: #93bd00;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(147, 189, 0, 0.4);
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(147, 189, 0, 0.4);
}

/* Overlay para móvil */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
  .mobile-overlay.active {
    display: block;
  }
}

/* Animación de entrada */
.sidemenu-item {
  animation: slideInLeft 0.3s ease forwards;
  opacity: 0;
  transform: translateX(-20px);
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Contenido del sidemenu, donde estan los articulos */

.sidemenu-content {
  /* border: 1px solid blue; */
  flex: 1;
}

.sidemenu-content-container {
  /* border: 1px solid red; */
}
