
/* Estilos para el menú desplegable */
.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  min-width: 200px;
  z-index: 1000;
  border-radius: 4px;
  padding: 8px 0;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu-item {
  display: block;
  padding: 8px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 12px;
}

.submenu-item:hover {
  background: #f5f5f5;
  color: #007bff;
}

/* Reducir tamaño de letra del menú principal y ajustar espaciado */
.main_nav_list > li > a {
  font-size: 12px;
  padding: 10px 8px;
  white-space: nowrap;
}

/* Ajustar contenedor del menú para que todo quepa en una línea */
.main_nav {
  width: 100%;
}

.main_nav_list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

/* Indicador de flecha para elementos con submenú */
.has-submenu > a::after {
  content: " ▾";
  font-size: 11px;
}

/* Reducir espacio del lado derecho */
.header_side {
  min-width: 160px;
  padding: 0 10px;
}

.header_side span {
  font-size: 11px;
  line-height: 1.2;
}

/* Para el menú móvil */
.menu_mm .has-submenu {
  width: 100%;
  position: relative;
}

.menu_mm .submenu {
  position: static;
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  box-shadow: none;
  padding-left: 20px;
  background: transparent;
}

.menu_mm .submenu.show {
  max-height: 500px;
}

.menu_mm .submenu-toggle {
  position: absolute;
  right: 20px;
  top: 15px;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 16px;
  background: #f8f9fa;
  border-radius: 3px;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 15px;
}

/* Optimización de imágenes */
.prlx {
  will-change: transform;
}

/* Ajustar logo si es necesario */
.logo_container {
  max-width: 120px;
}

.logo span {
  font-size: 14px;
}

/* Estilos mejorados para el menú móvil */
@media (max-width: 991px) {
  .menu_mm .has-submenu > a {
    cursor: pointer;
    padding-right: 50px !important;
  }
  
  .menu_mm .submenu {
    background: rgba(0, 0, 0, 0.03);
    margin: 5px 0;
    border-radius: 4px;
    padding-left: 30px;
  }
  
  .menu_mm .submenu-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
  }
  
  .menu_mm .submenu-item:last-child {
    border-bottom: none;
  }
  
  .menu_mm .submenu-toggle {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Ocultar el toggle en móvil ya que usaremos el título */
  .menu_mm .submenu-toggle {
    display: none;
  }
}

/* Estilos para desktop */
@media (min-width: 992px) {
  .submenu-toggle {
    display: none;
  }
  
  .menu_mm .submenu {
    display: none !important;
  }
}
