/* css/layout/navigation.css - Navegación principal SOLO DESKTOP */

/* =========================================
   NAVEGACIÓN PRINCIPAL
   ========================================= */

/* Barra de navegación fija */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Container de navegación */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Controls del lado derecho */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* =========================================
   MARCA/LOGO
   ========================================= */

/* Contenedor de marca */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-brand img {
    height: 45px;
    width: 45px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.2);
}

.nav-brand span {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d084, #00b36b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
}

.nav-brand:hover {
    transform: translateY(-1px);
}

.nav-brand:hover img {
    box-shadow: 0 6px 25px rgba(0, 208, 132, 0.3);
    transform: scale(1.05);
}

.nav-brand:hover span {
    filter: drop-shadow(0 2px 8px rgba(0, 208, 132, 0.4));
}

/* =========================================
   MENÚ DE NAVEGACIÓN DESKTOP
   ========================================= */

/* Lista de navegación */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Enlaces de navegación */
.nav-link {
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 8px;
    letter-spacing: 0.3px;
}

/* Hover de enlaces con efectos verdes */
.nav-link:hover {
    color: #00d084;
    transform: translateY(-1px);
}

/* Línea inferior animada con gradiente */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d084, #00b36b);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

/* =========================================
   DROPDOWN MENÚ
   ========================================= */

/* Contenedor dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.dropdown-toggle i {
    font-size: 12px;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Menú dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 320px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 208, 132, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 20px;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Enlaces del dropdown */
.dropdown-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: #2d3748;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    border: 1px solid transparent;
}

.dropdown-link:hover {
    background: rgba(0, 208, 132, 0.05);
    color: #00d084;
    transform: translateX(5px);
    border-color: rgba(0, 208, 132, 0.1);
}

.dropdown-link i {
    font-size: 20px;
    color: #00d084;
    width: 28px;
    text-align: center;
}

.dropdown-link div {
    flex: 1;
}

.dropdown-link strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 16px;
}

.dropdown-link span {
    font-size: 14px;
    color: #718096;
    line-height: 1.4;
}

/* =========================================
   BOTÓN DE ADMIN
   ========================================= */

.admin-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-full);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-link::after {
    display: none;
}

/* =========================================
   DROPDOWN ADMIN DESKTOP
   ========================================= */

.nav-item.dropdown {
    position: relative;
}

.nav-hamburger {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-hamburger:hover {
    background: #f8fafc;
    color: #059669;
    transform: translateY(-1px);
}

.nav-item .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: calc(-180px + 100%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 8px;
    min-width: 180px;
    width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

/* Flecha del dropdown */
.nav-item .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    color: #334155;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin: 2px 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.dropdown-item i {
    margin-right: 10px;
    width: 16px;
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.dropdown-item:hover i {
    opacity: 1;
    color: #059669;
}

/* =========================================
   TOGGLE MÓVIL - PLACEHOLDER
   ========================================= */

/* Toggle del menú móvil - estilos completos en mobile-navigation.css */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(0, 208, 132, 0.1);
}

/* =========================================
   ANIMACIONES
   ========================================= */

@keyframes gradient-shift {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

/* =========================================
   DESKTOP ESPECÍFICO - ASEGURAR OVERRIDE
   ========================================= */

/* =========================================
   DESKTOP ESPECÍFICO - OVERRIDES IMPORTANTES
   ========================================= */

@media (min-width: 769px) {
    /* Asegurar que el menú desktop funcione correctamente */
    .nav-menu {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        backdrop-filter: none !important;
        flex-direction: row !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        overflow: visible !important;
        right: auto !important;
        gap: 12px !important;
    }
    
    .nav-menu li {
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: none !important;
        opacity: 1 !important;
        transform: none !important;
        list-style: none;
    }
    
    .nav-link {
        padding: 10px 8px !important;
        color: #2d3748 !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        display: inline-block !important;
        margin: 0 !important;
        width: auto !important;
        text-align: left !important;
        letter-spacing: 0.3px !important;
        text-decoration: none !important;
    }
    
    .nav-link:hover {
        color: #00d084 !important;
        padding-left: 0 !important;
        transform: translateY(-1px) !important;
    }
    
    /* Dropdown específico desktop */
    .dropdown-toggle {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .dropdown-toggle i {
        font-size: 12px !important;
        color: #718096 !important;
        transition: all 0.3s ease !important;
    }
    
    .dropdown:hover .dropdown-toggle i {
        transform: rotate(180deg) !important;
        color: #00d084 !important;
    }
    
    /* Ocultar elementos móviles completamente */
    .mobile-toggle,
    .mobile-overlay,
    .mobile-header {
        display: none !important;
        visibility: hidden !important;
    }
}

/* =========================================
   ANIMACIONES Y EFECTOS
   ========================================= */

@keyframes gradient-shift {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

/* Smooth scroll para los enlaces internos */
html {
    scroll-behavior: smooth;
}

/* Ajuste del body para compensar navbar fixed */
body {
    padding-top: 80px;
}
