/* ==========================================================
   GIOLABS - DROPDOWN ÚNICO CORREGIDO
   ========================================================== */

.nav-dropdown {
    position: relative;
}

/* Botón "Más" con diseño premium diferenciado */
.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #536a76;
    background: rgba(23, 76, 119, 0.04);
    border: 1.5px solid rgba(23, 76, 119, 0.1);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: inherit;
    white-space: nowrap;
}

.nav-dropdown-btn i {
    font-size: 10px;
    color: #16a6a1;
    transition: transform 0.3s ease;
}

.nav-dropdown-btn:hover {
    background: rgba(23, 76, 119, 0.08);
    border-color: rgba(23, 76, 119, 0.2);
    color: #174c77;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 76, 119, 0.08);
}

/* Estado ABIERTO del botón */
.nav-dropdown.open .nav-dropdown-btn {
    background: linear-gradient(135deg, #174c77, #1a5a8a);
    border-color: #174c77;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(23, 76, 119, 0.25);
}

.nav-dropdown.open .nav-dropdown-btn i {
    transform: rotate(180deg);
    color: #5eead4;
}

/* Menú desplegable OCULTO por defecto */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(15px) scale(0.95);
    min-width: 240px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(23, 76, 119, 0.08);
    border: 1px solid rgba(23, 76, 119, 0.06);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 100;
}

/* Solo visible cuando está abierto */
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Items del dropdown */
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #536a76;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

.nav-dropdown-menu a i {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

/* Colores por item */
.nav-dropdown-menu a:nth-child(1) i { background: rgba(23, 76, 119, 0.08); color: #174c77; }
.nav-dropdown-menu a:nth-child(2) i { background: rgba(22, 166, 161, 0.08); color: #16a6a1; }
.nav-dropdown-menu a:nth-child(3) i { background: rgba(245, 158, 11, 0.08); color: #f59e0b; }
.nav-dropdown-menu a:nth-child(4) i { background: rgba(139, 92, 246, 0.08); color: #8b5cf6; }
.nav-dropdown-menu a:nth-child(5) i { background: rgba(236, 72, 153, 0.08); color: #ec4899; }
.nav-dropdown-menu a:nth-child(6) i { background: rgba(74, 222, 128, 0.08); color: #22c55e; }

.nav-dropdown-menu a:hover {
    background: rgba(23, 76, 119, 0.05);
    color: #174c77;
    transform: translateX(5px);
}

.nav-dropdown-menu a:hover i {
    transform: scale(1.15) rotate(-5deg);
}

/* Separador entre items */
.nav-dropdown-menu a:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50px;
    right: 14px;
    height: 1px;
    background: rgba(23, 76, 119, 0.04);
}

/* Flecha */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-left: 1px solid rgba(23, 76, 119, 0.06);
    border-top: 1px solid rgba(23, 76, 119, 0.06);
}

/* Responsive */
@media (max-width: 860px) {
    .nav-dropdown-btn {
        width: 100%;
        justify-content: space-between;
        padding: 13px 16px;
        font-size: 14px;
    }
    
    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none;
        min-width: auto;
        background: transparent;
    }
    
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown-menu::before {
        display: none;
    }
}
/* ==========================================================
   FUERZA MÁXIMA - DROPDOWN CON !IMPORTANT
   ========================================================== */

/* Botón "Más" con diseño premium FORZADO */
.nav-dropdown-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #174c77 !important;
    background: #eaf6fb !important;
    border: 2px solid #174c77 !important;
    cursor: pointer !important;
    transition: all 0.35s ease !important;
    font-family: 'Inter', Arial, sans-serif !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(23, 76, 119, 0.1) !important;
}

.nav-dropdown-btn i {
    color: #16a6a1 !important;
    font-size: 11px !important;
}

.nav-dropdown-btn:hover {
    background: #174c77 !important;
    color: #ffffff !important;
    border-color: #174c77 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(23, 76, 119, 0.25) !important;
}

.nav-dropdown-btn:hover i {
    color: #5eead4 !important;
}

/* Estado abierto */
.nav-dropdown.open .nav-dropdown-btn {
    background: linear-gradient(135deg, #174c77, #1a5a8a) !important;
    color: #ffffff !important;
    border-color: #174c77 !important;
}

.nav-dropdown.open .nav-dropdown-btn i {
    transform: rotate(180deg) !important;
    color: #5eead4 !important;
}

/* Menú desplegable OCULTO */
.nav-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(15px) scale(0.95) !important;
    min-width: 250px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(23, 76, 119, 0.08) !important;
    padding: 10px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
    z-index: 9999 !important;
    display: block !important;
}

/* SOLO visible con .open */
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
}

/* Items */
.nav-dropdown-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #536a76 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.nav-dropdown-menu a i {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
}

/* Colores por item */
.nav-dropdown-menu a:nth-child(1) i { background: rgba(23, 76, 119, 0.1) !important; color: #174c77 !important; }
.nav-dropdown-menu a:nth-child(2) i { background: rgba(22, 166, 161, 0.1) !important; color: #16a6a1 !important; }
.nav-dropdown-menu a:nth-child(3) i { background: rgba(245, 158, 11, 0.1) !important; color: #f59e0b !important; }
.nav-dropdown-menu a:nth-child(4) i { background: rgba(139, 92, 246, 0.1) !important; color: #8b5cf6 !important; }
.nav-dropdown-menu a:nth-child(5) i { background: rgba(236, 72, 153, 0.1) !important; color: #ec4899 !important; }
.nav-dropdown-menu a:nth-child(6) i { background: rgba(74, 222, 128, 0.1) !important; color: #22c55e !important; }

.nav-dropdown-menu a:hover {
    background: rgba(23, 76, 119, 0.06) !important;
    color: #174c77 !important;
    transform: translateX(5px) !important;
}

.nav-dropdown-menu a:hover i {
    transform: scale(1.15) !important;
}

/* Flecha */
.nav-dropdown-menu::before {
    content: '' !important;
    position: absolute !important;
    top: -7px !important;
    left: 50% !important;
    transform: translateX(-50%) rotate(45deg) !important;
    width: 14px !important;
    height: 14px !important;
    background: #ffffff !important;
    border-left: 1px solid rgba(23, 76, 119, 0.08) !important;
    border-top: 1px solid rgba(23, 76, 119, 0.08) !important;
}

/* Responsive móvil */
@media (max-width: 860px) {
    .nav-dropdown-btn {
        width: 100% !important;
        justify-content: space-between !important;
        padding: 14px 16px !important;
        font-size: 14px !important;
    }
    
    .nav-dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 20px !important;
        display: none !important;
        min-width: auto !important;
        background: transparent !important;
    }
    
    .nav-dropdown.open .nav-dropdown-menu {
        display: block !important;
    }
    
    .nav-dropdown-menu::before {
        display: none !important;
    }
}
/* ==========================================================
   BOTÓN INICIAR SESIÓN - DISEÑO PREMIUM
   ========================================================== */

.nav-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #16a6a1, #0c827e);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(22, 166, 161, 0.3);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Efecto shine */
.nav-login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loginBtnShine 3s infinite;
    pointer-events: none;
}

@keyframes loginBtnShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Icono con animación */
.nav-login i {
    font-size: 14px;
    transition: transform 0.3s ease;
    animation: loginIconPulse 2.5s ease-in-out infinite;
}

@keyframes loginIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Hover */
.nav-login:hover {
    background: linear-gradient(135deg, #0c827e, #16a6a1);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 32px rgba(22, 166, 161, 0.4);
}

.nav-login:hover i {
    transform: translateX(3px);
    animation: none;
}

/* Active */
.nav-login:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 0 6px 16px rgba(22, 166, 161, 0.3);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
    .nav-login span {
        display: none;
    }
    
    .nav-login {
        padding: 10px 12px;
        border-radius: 10px;
    }
    
    .nav-login i {
        font-size: 15px;
    }
}

@media (max-width: 860px) {
    .nav-login {
        display: none; /* Oculto en móvil, se muestra en el menú desplegable */
    }
}