/* ===================================================================
   MÓDULO NAVIGATION - Navegación avanzada y submenús
   ================================================================= */

/* ===================================================================
   NAVEGACIÓN PRINCIPAL - SOLO DESKTOP
   ================================================================= */

@media (min-width: 771px) {

  .meloopets-mobile-menu-toggle {
    display: none;
  }
  
  body.meloopets-header .meloopets-main-navigation {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }
  
  body.meloopets-header .meloopets-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
    gap: 0;
  }

  body.meloopets-header .meloopets-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  /* ===================================================================
     ELEMENTOS DE NAVEGACIÓN PRINCIPALES
     ================================================================= */
  
  body.meloopets-header .meloopets-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
  }
  
  body.meloopets-header .meloopets-nav-item.has-submenu > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--accent-orange);
    margin-left: 8px;
    transition: transform var(--transition-normal);
  }
  
  body.meloopets-header .meloopets-nav-item.has-submenu:hover > a::after {
    transform: rotate(180deg);
  }
  
  /* ===================================================================
     ENLACES DE NAVEGACIÓN PRINCIPALES
     ================================================================= */
  
  body.meloopets-header .meloopets-nav-link {
    display: flex;
    align-items: center;
    height: 45px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: var(--font-family-primary);
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-normal);
    position: relative;
    white-space: nowrap;
    padding: 0px 12.5px;
    min-width: 100.09px;
    text-align: center;
    justify-content: center;
  }
  
  body.meloopets-header .meloopets-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    height: 36px;
    margin: 4.5px 0;
    border-radius: 4px;
    color: #FFFFFF;
  }
  
  /* ===================================================================
     SISTEMA DE SUBMENÚS
     ================================================================= */
  
  body.meloopets-header .meloopets-submenu {
    display: none;
    position: absolute;
    top: 100%;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    z-index: 1005;
    border-top: 3px solid var(--accent-orange);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.99));
  }
  
  body.meloopets-header .meloopets-nav-item:hover .meloopets-submenu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    animation: submenuSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  /* ===================================================================
     COLUMNAS DE SUBMENÚ
     ================================================================= */
  
  body.meloopets-header .meloopets-submenu-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.98));
    border: 1px solid rgba(233, 236, 239, 0.2);
    margin: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
  }

  body.meloopets-header .meloopets-nav-item:hover .meloopets-submenu-column {
    opacity: 1;
    transform: translateY(0);
  }

  /* Animación de entrada del submenú */
  @keyframes submenuSlideIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Animación de entrada para las columnas */
  @keyframes columnFadeIn {
    from {
      opacity: 0;
      transform: translateY(15px, scale(0.9));
    }
    to {
      opacity: 1;
      transform: translateY(0, scale(1));
    }
  }

  /* Hover en columnas del submenú */
  body.meloopets-header .meloopets-submenu-column:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 249, 250, 1));
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(242, 103, 34, 0.15);
  }
  
  /* ===================================================================
     TÍTULOS DE COLUMNA
     ================================================================= */
  
  body.meloopets-header .meloopets-submenu-title {
    color: #f26722;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    
    background: linear-gradient(135deg, rgba(242, 103, 34, 0.1), rgba(242, 103, 34, 0.05));
    border: 1px solid rgba(242, 103, 34, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  
  body.meloopets-header .meloopets-submenu-title a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
  }
  
  body.meloopets-header .meloopets-submenu-title:hover {
    background: linear-gradient(135deg, rgba(242, 103, 34, 0.15), rgba(242, 103, 34, 0.08));
  }
  
  body.meloopets-header .meloopets-submenu-title:hover a {
    color: #e55a1f;
  }
  
  body.meloopets-header .meloopets-submenu-title img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(52%) sepia(84%) saturate(506%) hue-rotate(344deg) brightness(104%) contrast(95%);
    transition: transform 0.3s ease;
  }
  
  body.meloopets-header .meloopets-submenu-title:hover img {
    transform: scale(1.2) rotate(8deg);
    filter: brightness(0) saturate(100%) invert(52%) sepia(84%) saturate(506%) hue-rotate(344deg) brightness(104%) contrast(95%) drop-shadow(0 2px 4px rgba(242, 103, 34, 0.3));
  }
  
  /* ===================================================================
     ENLACES DE SUBMENÚ
     ================================================================= */
  
  body.meloopets-header .meloopets-submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  body.meloopets-header .meloopets-submenu-list li {
    margin-bottom: 8px;
  }
  
  body.meloopets-header .meloopets-submenu-link ul{
    color: #3b251c;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 249, 250, 0.9));
    border: 1px solid rgba(233, 236, 239, 0.3);
    margin: 2px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    z-index: 2;
  }
  
  body.meloopets-header .meloopets-submenu-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    transform: translateX(8px) translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(242, 103, 34, 0.3);
    border-color: rgba(242, 103, 34, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: pulseGlow 2s infinite;
  }

  /* Efecto de brillo en hover */
  @keyframes pulseGlow {
    0%, 100% {
      box-shadow: 0 0 10px rgba(242, 103, 34, 0.3);
    }
    50% {
      box-shadow: 0 0 20px rgba(242, 103, 34, 0.5);
    }
  }
}